Option to not cycle met drivers for CO2, plus multiple minor bug fixes #391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR allows cycling met drivers but using actual year CO2. It also fixes multiple minor bugs in the code.
Description
This change allows increasing CO2 whilst cycling meteorological drivers, which can be useful in factorial experiments. If CO2 is provided in a separate set of met drivers containing only CO2, the code will look for files from the actual simulation year as opposed to cycling the years. This will be activated only for CO2, and only if the files outside the main meteorological cycle are found. Otherwise, the code falls back to the default (i.e., cycling all the meteorological variables and CO2).
I also implemented a series of minor bug fixes / minor improvements:
avg_monthly_pcpg
is nowavg_monthly_accp
so it is clear that is accumulated precipitation, not precipitation rate).Collaborators
Motivation and Context
Types of changes
Checklist:
Testing :