mdekauwe / GDAY

GDAY simulates carbon, nitrogen & water dynamics
14 stars 31 forks source link

Sub-daily dynamics #2

Closed mdekauwe closed 8 years ago

mdekauwe commented 8 years ago
  1. Add new flag "sub-daily", if called we look for 30min data (or if not found we call a weather generator?)
  2. read 30 minute data.
  3. add routine to determine direct/diffuse component of PAR
  4. add internal day loop over (48 time steps), if sun is up call new photosynthesis routine.
  5. add new photosynthesis routine, leaf energy balance, resolve Ci, VPD, etc. For the moment keep the SW as a bucket.
  6. Once the sun has gone down, skip out of sub-daily loop.
  7. Sum daily C, water.
  8. Join standard part of code and move C, N around the plant.
mdekauwe commented 8 years ago

Outstanding things to do:

  1. Need sunlit/shaded loop
  2. Convert Anleaf, gs, transpiration fluxes to consistent units to match code
  3. Call water balance
  4. sum C & water fluxes.

Check it works :)