-
Notifications
You must be signed in to change notification settings - Fork 10
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
Megan fates pr follow up #100
base: noresm
Are you sure you want to change the base?
Megan fates pr follow up #100
Conversation
@mvdebolskiy - thanks for this. If testing has not been done on a PR it should be in draft status. I think that is the case with this PR. Could you please change that. |
Few questions:
This means ci_pa will be -999 when hlm_use_sp is turned on and not nocomp? |
0ec43dc
to
7f42386
Compare
So, SP is actually a subset of NOCOMP. It is impossible to use SP if NOCOMP is false. NOCOMP is really a flga that says 'the vegetation fraction remains the same and there is one PFT per patch' both of which are prerequisites for SP. This is set somewhere in the COMPSET logic that I don't understand, but if you specify a FATES-SP compset it will set NOCOMP as true. (I just double checked...) |
|
||
|
||
! Get local pft types: | ||
! this has to be done earlier, so if use_fates, we locally know what is not bare ground |
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.
Oh right, yes, good point...
On the sun and shade leaf leaf_ci,FATES distinguishes these, but it does so at the level of the vertical leaf layers (each of which has a shade and sun portion) so the averaging across them happens here So the values for sun and shade ci coming from FATES are the same, but I have kept this distinction to minimize the intrusiveness of the changes (this happens several times in the FATES coupling, fo canopy conductance and for photosynthesis as well). Also just to confirm, yes, SP mode runs photosynthesis, (and gas exhcnage, surface temperature, hydrology, snow, etc.) It just doesn't do anything with the carbon it assimilates and so LAI is prescribed from the satellite data (the point neing to isolate how well the gs exchange etc. performs when LAI is -not wrong-. |
The main issue with passing th leaf_ci is that at the moment I have taken the top leaf ci to drive MEGAN. I am going to do some testing (one these changes are intergrated as they will change answers for the better) to see whether different sorts of vertical averaging have a large or small impact on the output. Finding the full anopy average ci is quite complex as it involves scaling to the cohort level and then averaging the cohort values etc. These calculations are all int he most expensive part of the code and wold likely add a non-trivial cost. We discussed this in the FATES meeting and decided that it wasn't necessarily clear it was worth it, given the uncertainty in how the MEGAN interprets the Ci in the first place. Also, the observed isoprene-Ci relationship on which this is based was strong but observed over a massive range of Ci (150-1200ppm) (Fig 3 in https://www.researchgate.net/profile/Greg-Barron-Gafford/publication/228696525_Effect_of_CO2_concentration_and_vapour_pressure_deficit_on_isoprene_emission_from_leaves_of_Populus_deltoides_during_drought/links/0912f5089ac51a0d03000000/Effect-of-CO2-concentration-and-vapour-pressure-deficit-on-isoprene-emission-from-leaves-of-Populus-deltoides-during-drought.pdf ) |
I think these changes are good, for the record. |
@rosiealice I've fixed the issue with -999 being sent. I've put the assignment of bad values inside the CanopyFluxes, which was iterating with shrinking patch filter, while the assignment was for the whole array within the patch bounds. Added CISUN/CISHA history fields and extra output to FatesColdMeganSatPhen test (so you can look up the inactive history variables). I'll look into the output to see if intercellular CO2 pressure is getting much higher than the atmospheric CO2 (is this possible in IRL?). |
Relevant fates issues: NGEET/fates#852 |
Follow-up PR to refactor #99