Skip to content

Commit

Permalink
include description and checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
elpamart authored and alexeh committed Oct 9, 2023
1 parent cb2866d commit 0044c73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd63dfeebf87434f7d0a79b04ca228f618c987bdb70a1760eca165cf6cf48a4e nutrient_load_reduction.shp
12 changes: 8 additions & 4 deletions data/preprocessing/nutrient_load_reduction/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ def check_and_reproject_to_4326(gdf):

return gdf

# Calculation of the required Load Reduction.
# This equation is applied to only the basin-specific limiting nutrient as identified by McDowell et al. (2020)
# The global concentration thresholds values for Total N (0.70 mg-N/L) and Total P (0.046 mg-P/L) represent acceptable levels of algal growth.
# More information can be found on the LandGriffon v2.0 methodology
def calculate_perc_reduction(row):
"""
Calculation of the required Load Reduction.
This equation is applied to only the basin-specific limiting nutrient as identified by McDowell et al. (2020)
The global concentration thresholds values for Total N (0.70 mg-N/L) and Total P (0.046 mg-P/L) represent acceptable levels of algal growth.
More information can be found on the LandGriffon v2.0 methodology
"""
if row['Cases_v2_1'] == 4 and row['TP_con_V2_']:
return ((row['TP_con_V2_'] - 0.046) / row['TP_con_V2_']) * 100
elif row['Cases_v2_1'] == 2 and row['TN_con_V2_']:
Expand Down

0 comments on commit 0044c73

Please sign in to comment.