This project analyzes how rainfall and streamflow affect nitrate concentrations in surface water using real environmental data.
- Merge and clean daily data from three sources: rainfall, streamflow, and nitrate concentration
- Compute daily nitrate loads based on flow and concentration
- Perform correlation analysis and visualize relationships
- Export clean, publication-ready figures and correlation matrix
- Save results in Excel and PDF formats
climate_nutrient_modeling/
├── assets/
│ ├── rainfall_daily.csv
│ ├── flowrate.csv
│ └── nitrate.csv
├── script.py # Main analysis script
├── correl_matrix.xlsx # Excel export of correlation matrix
├── Initial_visualization.pdf
├── Nitrate_load.pdf
├── Nitrate_Vs_Rainfall.pdf
├── requirements.txt
└── README.md
- Clone the repository:
git clone https://github.com/your-username/climate-nutrient-modeling.git
cd climate-nutrient-modeling- Install dependencies:
pip install -r requirements.txt- Run the script:
python script.pyMIT License
Piya Mohasin
Zhang Y. and Collins A. (2024). Processed high resolution rainfall, flow rate, sediment and nitrate concentration data [Data set]. Rothamsted Research. https://doi.org/10.23637/17dquvlt