Skip to content
Snippets Groups Projects
  1. Mar 14, 2025
  2. Jan 13, 2025
    • Marco Matthies's avatar
      Improve isharvestable() function for ALMaSS crop model · a4b51e21
      Marco Matthies authored
      The data/crops/almass/crop_data_general.csv file now stores a column
      `phase_before_harvest` to indicate in which growing phase the plant
      can be harvested.  This is `marchfirst` for most crops, and `sow` for
      maize.
      
      In theory, with the current setup there could be a problem for
      peas/beans if they are planted after March, 1 (the planting dates are
      15 February to 15 March).  Planted before March 1st, the last growth
      phase before harvest would be `marchfirst`.  But if planted after
      March 1st, the last growth phase before harvest would be `sow`.  The
      GDD curves for this crop only exist for `sow`, so probably planting
      before March 1st should not be allowed for this crop.
      a4b51e21
  3. Dec 17, 2024
  4. Dec 10, 2024
  5. Dec 06, 2024
  6. Dec 05, 2024
  7. Dec 04, 2024
  8. Dec 02, 2024
  9. Nov 07, 2024
  10. Nov 06, 2024
  11. Nov 05, 2024
    • Marco Matthies's avatar
      ALMaSS: allow choosing highnutrientcurve when calling sow! · b077630d
      Marco Matthies authored
      `sow!(::ALMaSS.CropState, ...)` calls `setphase!`, which needs to know
      which growth curve to use.  Some crop types (e.g. "permanent
      set-aside") do not have a lownutrientgrowthcurve, which then causes an
      error when `setphase!` tries to access the `missing` growth curve.
      
      The highnutrientgrowthcurve would only be chosen when the cropstate
      had `fertilising` in its events.  As the events for a cropstate are
      now `empty!`ied in `sow!`, it's not possible to set the `fertilising`
      event before calling `sow!`.
      
      This previously didn't cause a bug, as the logic for which growth
      curve to choose was the wrong way around, choosing the
      highnutrientgrowth curve when no `fertilising` event was set for the
      cropstate.
      b077630d
    • Marco Matthies's avatar
      ALMaSS: fix logic when choosing low or high nutrient growth curves · dbc4e94b
      Marco Matthies authored
      Previously, we chose the lownutrientgrowth curve when the was a
      `fertiliser` event for the cropstate, otherwise the highnutrientgrowth
      curve.
      
      It should be the other way around.
      dbc4e94b
    • Marco Matthies's avatar
      Merge port of ALMaSS vegetation code · 262d27bd
      Marco Matthies authored
      The code seems to work for crop plants but currently doesn't yet work
      for non-crop plants such as "permanent set-aside", which grow to
      enourmous height and do not get reset at the end of the year.  I think
      this is due to different treatment of the growth phase transitions for
      these plants.
      262d27bd
    • Marco Matthies's avatar
      SimpleCrop: fix docstring · 5b47aa93
      Marco Matthies authored
      5b47aa93
    • Marco Matthies's avatar
      c8538b0a
  12. Sep 18, 2024
  13. Sep 06, 2024
Loading