public class SoilHelper extends Object
| Constructor and Description |
|---|
SoilHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getGrowthFactor(String mid,
String pp,
String k,
String m)
soil factors which decline exponentially between PP and RD (units depend
on variable, same units as M (Maximum value, will use default value 1)
|
static HashMap<String,ArrayList<String>> |
getIcnDistribution(HashMap data,
String icin)
Given a total inorganic N amount for the soil profile, this function
distributes the N over the soil layers assuming a constant concentration
of NO3 (90%) and NH4 (10%)
|
static HashMap<String,ArrayList<String>> |
getRootDistribution(HashMap data,
String var,
String m,
String pp,
String rd)
Calculate root growth factor (0-1) for each soil layer
|
protected static ArrayList |
getSoilLayer(HashMap data)
Get soil layer data array from data holder.
|
static HashMap<String,ArrayList<String>> |
getSoilValsFromOthPara(HashMap data,
String calcMethod,
ArrayList<String> calcVars)
Calculate the soil layer variables based on other soil parameters.
|
static ArrayList<HashMap<String,String>> |
splittingSoillayer(HashMap data,
boolean isICLayer)
Splitting the original soil layers into homogeneous layers with soil
thicknesses which do not exceed limits of drainage models.
|
public static HashMap<String,ArrayList<String>> getRootDistribution(HashMap data, String var, String m, String pp, String rd)
data - The data mapvar - The variable name that will be used for storing the resultm - Maximum value in the top PP cm of soil (units depend on
variable)pp - depth of top of curve (pivot point) (cm)rd - maximum rooting depth (cm), or depth at which the value is 2%
of the maximum valueArrayList of root distribution for each layer
of given soilpublic static HashMap<String,ArrayList<String>> getIcnDistribution(HashMap data, String icin)
data - The data seticin - Total soil N over the profile (kg[N]/ha)ArrayList Corresponded to
ICN_TOT, ICNO3 ICNH4 for each layer of given soilprotected static String getGrowthFactor(String mid, String pp, String k, String m)
mid - The mid point value between two layerspp - depth of top soil, or pivot point of curve (cm)k - exponential decay ratem - Maximum value in the top PP cm of soil (units depend onprotected static ArrayList getSoilLayer(HashMap data)
data - The experiment data holderpublic static ArrayList<HashMap<String,String>> splittingSoillayer(HashMap data, boolean isICLayer)
data - The experiment data holderpublic static HashMap<String,ArrayList<String>> getSoilValsFromOthPara(HashMap data, String calcMethod, ArrayList<String> calcVars)
data - The data setcalcMethod - The name of calculation methodcalcVars - The list of variables which will be applied with calculationCopyright © 2014. All Rights Reserved.