-
Notifications
You must be signed in to change notification settings - Fork 92
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
Updates to fire history variables #640
Conversation
This looks good to me. Regression testing underway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: jkshuman <[email protected]>
I like this PR, good stuff. One thing to note. When you use flushval = 0.0, like here: https://github.com/NGEET/fates/pull/640/files#diff-682b3e29ce096fa74f8fa95ff48735c4R4122 You are zero'ing literally every column, and will potentially include some zeros from non-fates columns. In the next refactor of the history variables, we will automatically flush non-fates columns to the ignore value. If you want to be assured that you are not including zero's from non-fates columns in your average, flush to the ignore value, and make sure to pre-zero any column level diagnostics that are tallied up over patches and cohorts. |
All expected PASS:
Confirmed all DIFFs due to changed fire variables. Test didn't include most recent commit, but I think we can ignore that given the changes were to |
A bunch of updates to fire-related history variables, including moving all of the ones that had been on the patch structure off of it, fixing the fire carbon loss variable to not be zero'd out before history writing, and adding some further diagnostics.
Description:
Sort of a grab bag of changes, but all related to outputting fire behavior information to the history fields:
Fire_Closs
was just passing zeros, because the structure it is on was getting zeroed before the history call. I also added another variable,FIRE_FLUX
, which has the PARTEH ELEMENT dimension, so that when we start adding nutrients we can keep track of fire-related N and P losses too. Its possible that we could thus deleteFire_Closs
as redundant to the carbon index ofFIRE_FLUX
but I haven't done that here.FIRE_INTENSITY_AREA_PRODUCT
,FIRE_ROS_AREA_PRODUCT
, andFIRE_TFC_ROS_AREA_PRODUCT
. I don't love that, but it seemed safer than calling them averages, since they are not actually average quantities, but needed to calculate the averages.AREA_BURNT_BY_PATCH_AGE
,FIRE_INTENSITY_BY_PATCH_AGE
, andSUM_FUEL_BY_PATCH_AGE
. The fuel-pool-structured variable is the fraction of fuel combusted, which I output as in (3) above, as multiplied by burned area so that one can calculate burned-area-weighted means of this.Collaborators:
changes based on discussions with @jkshuman, @rgknox
Expectation of Answer Changes:
Expected changes only to the history variables that I've messed with in some way. I'm not totally sure that I understand why changing the _pa variables to use the site-level weighting leads to greater than roundoff changes, but I think maybe it has to do with patches where the canopy isn't closed not having been weighted properly in the old system (which is part of the reason why we want to get rid of that).
Checklist:
Test Results:
none as yet.
CTSM (or) E3SM (specify which) test hash-tag:
CTSM (or) E3SM (specify which) baseline hash-tag:
FATES baseline hash-tag:
Test Output: