Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a cohort and community structure for representing plant demography. #132

Open
Tracked by #120
davidorme opened this issue Oct 16, 2023 · 0 comments
Open
Tracked by #120

Comments

@davidorme
Copy link
Collaborator

davidorme commented Oct 16, 2023

The Cohort represents the individual cohorts of different plant functional types in a size-based demographic model and the Community represents a collection of cohorts of different sizes and PFTs within an area.

These two are very tightly linked and having a clear but efficient way to store the data and then calculate rapidly across many cohorts means they need to be designed together. The most computationally efficient way to do this may be to hold the cohorts as an axis within arrays of community structure - most (if not all) of the calculations can be carried in parallel. The immediate things to be wary of there are:

  • A set of community arrays will (ultimately - once death and recruitment are added!) be constantly changing along the cohort dimension as new cohorts are recruited. That might be less efficient than simply managing a list of Cohort objects.
  • Some information is will be repeated and need indexing correctly. For example, if the community has an array giving the wood density (a PFT trait) across each cohort, this needs to be unpacked from the PFT description. Having a Cohort object with an attached PFT class is cleaner than having to having to maintain arrays of PFT attributes to align with the cohorts.

But - this effort might be substantially faster than having to repeatedly unpack and pack cohort objects into community arrays for calculations?

@davidorme davidorme changed the title A cohort based structure - this is not intended to provide an individual or fully spatial implementation. Generate a cohort and community structure for representing plant demography. Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant