Functions for Plant growth related modules, e.g., PG_EPIC. More...
Functions | |
void | GetNPShapeParameter (FLTPT fr1, FLTPT fr2, FLTPT fr3, FLTPT *shape1, FLTPT *shape2) |
Get N/P shape parameter, See readplant.f of SWAT. | |
void | GetScurveShapeParameter (FLTPT x_mid, FLTPT x_end, FLTPT y_mid, FLTPT y_end, FLTPT *shape1, FLTPT *shape2) |
Computes shape parameters shape1 and shape2 for the S curve. More... | |
FLTPT | NPBiomassFraction (FLTPT x1, FLTPT x2, FLTPT x3, FLTPT fr_phu) |
Biomass fraction. | |
FLTPT | GetNPFraction (FLTPT fr1, FLTPT fr3, FLTPT shape1, FLTPT shape2, FLTPT fr_phu) |
calculate the fraction of nitrogen/phosphorus in the plant biomass More... | |
FLTPT | DoHeatUnitAccumulation (FLTPT potential_heat_unit, FLTPT t_min, FLTPT t_max, FLTPT t_base) |
Heat unit accumulation. | |
FLTPT | RadiationUseEfficiencyAdjustByVPD (FLTPT vpd, FLTPT rad_use_eff_dec_rate_with_vpd) |
the adjusted radiation-use efficiency by vapor pressure deficit | |
FLTPT | GetNormalization (FLTPT distribution) |
Normalization. | |
bool | IsTree (const int classification) |
Is tree or not. | |
bool | IsAnnual (const int classification) |
Is annual plant or not. | |
bool | IsLegume (const int classification) |
Is legume or not. | |
bool | IsPerennial (const int classification) |
Is perennial plant or not. | |
bool | IsCoolSeasonAnnual (const int classification) |
Is cool seanon annual plant or not. | |
bool | IsGrain (const int classification) |
Is grain or not. | |
bool | IsPlant (const int lu_id) |
Is plant or not. | |
void | CalPlantStressByLimitedNP (FLTPT u1, FLTPT u2, FLTPT *uu) |
Calculates the plant stress factor caused by limited supply of nitrogen or phosphorus. More... | |
Functions for Plant growth related modules, e.g., PG_EPIC.
void CalPlantStressByLimitedNP | ( | FLTPT | u1, |
FLTPT | u2, | ||
FLTPT * | uu | ||
) |
Calculates the plant stress factor caused by limited supply of nitrogen or phosphorus.
From ntus.f of SWAT, rev 637
FLTPT GetNPFraction | ( | FLTPT | fr1, |
FLTPT | fr3, | ||
FLTPT | shape1, | ||
FLTPT | shape2, | ||
FLTPT | fr_phu | ||
) |
calculate the fraction of nitrogen/phosphorus in the plant biomass
Plant nitrogen/phosphorus equation, p300 5:2.3.1/p305 5:2.3.19
void GetScurveShapeParameter | ( | FLTPT | x_mid, |
FLTPT | x_end, | ||
FLTPT | y_mid, | ||
FLTPT | y_end, | ||
FLTPT * | shape1, | ||
FLTPT * | shape2 | ||
) |
Computes shape parameters shape1 and shape2 for the S curve.
See ascrv.f of SWAT
The equation \(x=\frac{y}{y+exp(S_1+S_2^y)}\) give two \((x,y)\) points along the curve.