Closed kcaylor closed 3 years ago
Playing around with the model just now, I was happy to see that we can:output.to_csv('filename.csv')
I think that would be a straightforward way to run many simulations and output to a file with a naming convention to signify what climate.rainfall
input was used.
Having a directory of simulation output files would be easy to churn through.
What do you think @kcaylor ?
Alternatively, this could be a good use case for introducing xarray (http://xarray.pydata.org/en/stable/)
List of objects...
model_list =[]
for param_value in list_of_params:
The
Model
object represents a single simulation, andModel.output()
returns a single pandasDataFrame
with columns for each simulated variable and rows for each day of simulation. We need to be able to run many simulations (with differentclimate.rainfall
realizations) in order to get ensemble information on crop performance and water balance within a stochastic climate.What is the strategy to aggregate multiple runs of a
model
with different climates?