ecohydro / maize-Toff

Repo for modeling analysis of of maize yield variability and tradeoffs between yield and crop failure.
4 stars 2 forks source link

Add initial conditions calculator as a subclass of model #45

Closed Ntkrell closed 4 years ago

Ntkrell commented 4 years ago

We need a function that quickly calculates the initial condition for each soil type and each climatology.

Right now we have functions for this in both the notebook notebooks/results.ipynb and the script scripts/initialconditions.py but it doesn't run very quickly and may be incorrect.

Ntkrell commented 4 years ago

Something to confirm with Kelly. Is this the order of events of what the model should do when it is run:

  1. Subclass Model to find initial conditions for given soil, climate
  2. Select the s0 for given soil, climate
  3. Run whatever is needed to find results (4?). Do sensitivity analysis to see if changes to the IC changes the results?