ILAMB.ModelResult.ModelResult.derivedVariable¶
- ModelResult.derivedVariable(variable_name, expression, lats=None, lons=None, initial_time=- 1e+20, final_time=1e+20, convert_calendar=True)[source]¶
Creates a variable from an algebraic expression of variables in the model results.
- Parameters
variable_name (str) – name of the variable to create
expression (str) – an algebraic expression describing how to combine model outputs
initial_time (float, optional) – include model results occurring after this time
final_time (float, optional) – include model results occurring before this time
lats (numpy.ndarray, optional) – a 1D array of latitude locations at which to extract information
lons (numpy.ndarray, optional) – a 1D array of longitude locations at which to extract information
- Returns
var – the new variable
- Return type