Run output manager¶
-
class
tradssat.mgrs.
DSSATResults
(folder)[source]¶ Facilitates the reading of DSSAT results. Instead of having to read each output file individually, you can simply point this class to a DSSAT run output folder containing the output files and it will find the desired variables for you.
-
get_final_value
(var, trt)[source]¶ Returns a variable’s final value. Faster than
get_value()
if the variable is available in Summary.OUT.Parameters: - var (str) – The variable name.
- trt (int) – The treatment number of interest.
Returns: The variable’s final value.
Return type: str | float | int
-
get_value
(var, trt, t=None, at='YEAR DOY', run=None)[source]¶ Returns the value (point or time-series) of a variable from a DSSAT run.
Parameters: - var (str) – The variable name.
- trt (int) – The treatment number of interest.
- t (str | int) – The time at which one wants the results. If
None
, results will be given for all time steps. - at (str) – Must be one of
DAS
(days after start),DAP
(days after planting), orYEAR DOY
(year, day of year; default). Only used ift
is notNone
.
Returns: The value of the variable.
Return type: np.ndarray
-