@@ -314,7 +314,7 @@ def rna(
314
314
AWn : xr .DataArray ,
315
315
AWa : xr .DataArray
316
316
) -> xr .DataArray :
317
- """Calculate rna (mg-N/ug-Chla).
317
+ """Calculate rna (mg-N/ug-Chla) using Redfield ratios .
318
318
319
319
Args:
320
320
AWn: Nitrogen Weight (mg)
@@ -328,7 +328,7 @@ def rpa(
328
328
AWp : xr .DataArray ,
329
329
AWa : xr .DataArray
330
330
) -> xr .DataArray :
331
- """Calculate rpa (mg-P/ug-Chla).
331
+ """Calculate rpa (mg-P/ug-Chla) using Redfield ratios .
332
332
333
333
Args:
334
334
AWp: Phosphorus Weight (mg)
@@ -343,7 +343,7 @@ def rca(
343
343
AWc : xr .DataArray ,
344
344
AWa : xr .DataArray
345
345
) -> xr .DataArray :
346
- """Calculate rca (mg-C/ug-Chla).
346
+ """Calculate rca (mg-C/ug-Chla) using Redfield ratios .
347
347
348
348
Args:
349
349
AWc: Carbon Weight (mg)
@@ -357,7 +357,7 @@ def rda(
357
357
AWd : xr .DataArray ,
358
358
AWa : xr .DataArray
359
359
) -> xr .DataArray :
360
- """Calculate rda (mg-D/ug-Chla).
360
+ """Calculate rda (mg-D/ug-Chla) using Redfield ratios .
361
361
362
362
Args:
363
363
AWd: Dry Algal Weight (mg)
@@ -743,7 +743,7 @@ def rnb(
743
743
BWn : xr .DataArray ,
744
744
BWd : xr .DataArray
745
745
) -> xr .DataArray :
746
- """Calculate rnb (mg-N/mg-D).
746
+ """Calculate rnb (mg-N/mg-D) using Redfield ratios .
747
747
748
748
Args:
749
749
BWn: Benthic algae nitrogen (unitless)
@@ -757,7 +757,7 @@ def rpb(
757
757
BWp : xr .DataArray ,
758
758
BWd : xr .DataArray
759
759
) -> xr .DataArray :
760
- """Calculate rpd: Benthic algae phosphorus to dry weight ratio (mg-P/mg-D).
760
+ """Calculate rpd: Benthic algae phosphorus to dry weight ratio (mg-P/mg-D) using Redfield ratios .
761
761
762
762
Args:
763
763
BWp: Benthic algae phosphorus (mg-P)
@@ -771,7 +771,7 @@ def rcb(
771
771
BWc : xr .DataArray ,
772
772
BWd : xr .DataArray
773
773
) -> xr .DataArray :
774
- """Calculate rcb: Benthic algae carbon to dry weight ratio (mg-C/mg-D).
774
+ """Calculate rcb: Benthic algae carbon to dry weight ratio (mg-C/mg-D) using Redfield ratios .
775
775
776
776
Args:
777
777
BWc: Benthic algae carbon (mg-C)
@@ -785,7 +785,7 @@ def rab(
785
785
BWa : xr .DataArray ,
786
786
BWd : xr .DataArray
787
787
) -> xr .DataArray :
788
- """Calculate rab: Benthic algae chlorophyll-a to dry weight ratio (ug-Chla-a/mg-D).
788
+ """Calculate rab: Benthic algae chlorophyll-a to dry weight ratio (ug-Chla-a/mg-D) using Redfield ratios .
789
789
790
790
Args:
791
791
BWa: Benthic algae chlorophyll-a (ug-Chla-a)
@@ -906,7 +906,8 @@ def FNb(
906
906
907
907
default = FNb_orig
908
908
)
909
-
909
+
910
+
910
911
return FNb
911
912
912
913
@@ -1012,7 +1013,7 @@ def mub(
1012
1013
1013
1014
default = 0
1014
1015
)
1015
-
1016
+
1016
1017
return mub
1017
1018
1018
1019
@@ -1100,7 +1101,7 @@ def Chlb(
1100
1101
Ab : xr .DataArray ,
1101
1102
1102
1103
) -> xr .DataArray :
1103
- """Calculate chlorophyll-a concentration (mg-Chla/m^2)
1104
+ """Calculate chlorophyll-a concentration (mg-Chla/m^2) using Redfield ratios
1104
1105
1105
1106
Args:
1106
1107
rab: Balgae Chla to Dry ratio (mg-D/ug-Chla)
@@ -1434,7 +1435,7 @@ def NH4_Nitrification(
1434
1435
knit_tc: Nitrification rate ammonia decay NH4 to NO3 temperature correction (1/d).
1435
1436
NH4: Ammonium concentration (mg-N/L),
1436
1437
"""
1437
-
1438
+ print ( "NH4_Nitrification" , NH4_Nitrification )
1438
1439
return xr .where (use_NH4 ,NitrificationInhibition * knit_tc * NH4 ,0 )
1439
1440
1440
1441
@@ -1484,7 +1485,6 @@ def NH4_ApGrowth(
1484
1485
ApGrowth: Algal growth rate (ug-Chla/L/d),
1485
1486
ApUptakeFr_NH4: Fraction of actual xr.DataArraying algal uptake from ammonia pool
1486
1487
"""
1487
-
1488
1488
return xr .where (use_Algae , ApUptakeFr_NH4 * rna * ApGrowth , 0.0 )
1489
1489
1490
1490
def NH4_AbRespiration (
@@ -1709,7 +1709,6 @@ def dNO3dt(
1709
1709
1710
1710
"""
1711
1711
1712
-
1713
1712
return xr .where (use_NO3 , NH4_Nitrification - NO3_Denit - NO3_BedDenit - NO3_ApGrowth - NO3_AbGrowth ,0 )
1714
1713
1715
1714
@@ -1948,8 +1947,6 @@ def DIPfromBed(
1948
1947
"""
1949
1948
return rpo4_tc / depth
1950
1949
1951
- #TODO calcuate fdp?
1952
-
1953
1950
def TIP_Settling (
1954
1951
vs : xr .DataArray ,
1955
1952
depth : xr .DataArray ,
0 commit comments