Fixes to some histaux atm2med xml values#626
Conversation
These two CO2 fields were both being output to both file4 (3-hourly) and file5 (daily). Based on comments from Keith Lindsay, I'm keeping prognostic CO2 just on the 3-hourly file and diagnostic CO2 just on the daily file: "The suffix prog in co2prog indicates that it represents CO2 that has been prognostically computed. In CAM, it comes from a tracer/constituent that is advected and has surface fluxes from the surface BGC components. It typically has high frequency temporal variability, e.g., a diurnal cycle over land. That is why it is in a 3-hourly stream for datm, you want to represent this variability. In contrast, co2diag is a diagnostic (not prognostic) quantity that is either a constant or a smoothly varying function of time, such as 1%/year increase or monthly or annual timeseries read from a file. So daily resolution is sufficient to represent it."
Daily sounds more than sufficient temporal resolution based on discussion in ESCOMP/CTSM#1844
My sense from the description and file name is that this file is intended to be daily but was accidentally set to 3-hourly. It was changed from daily to 3-hourly in ESCOMP#378 and I think that may have been a mistake, but I'll confirm that. (That PR fixed the description of file5 to say that it is daily, but at the same time changed the output frequency to 3-hourly instead of daily.)
|
In addition to reviews from @mvertens and @ekluzek , I'd also welcome reviews from:
Also: I think the changes here may need corresponding changes in CDEPS to get the fields from the right files in cplhist-forced cases. In particular, I noticed that currently CDEPS expects co2diag from the 3-hourly file; that will need to be changed to get co2diag from the daily file. I think other changes will be needed, too, though I haven't looked closely to figure out exactly what. This is a little tricky because I guess we'll want to keep CDEPS as is while we're still pointing to older cplhist data, and then change it once we're ready to point to newer cplhist data. @ekluzek and @wwieder - would this fit in with the plans for ESCOMP/CTSM#1844? |
|
Yes, I think this makes sense to have daily NDEP from CPL_HIST. From conversations with @olyson it seems like this is what was previously done. My only question was on timing, specifically if we'd be able to use this for CESM3 spinup, which may be starting soon? |
@billsacks It would be very helpful to maintain the ability to use 'nhours', so I will define a test of that, |
The accidental change to 'hourly' was part of expanding the capabilities from 'daily', |
|
Thanks for your feedback, @wwieder and @kdraeder . @wwieder - as @kdraeder says, all of the changes in this PR could also be changed via user_nl settings. That said, I'm happy to merge it once it's officially approved. But, if you haven't already, it could be worth doing a more careful review to see if any other changes to these cplhist fields before starting the CESM3 spinup where you're going to want to produce them. It may be worth going so far as to do a short run that produces cplhist output and then verify that a datm cplhist-forced run works with that output (and ideally produces the same climate)... I think that was done in the past, but things have changed since then and I'm not sure how recently this has been carefully reviewed. |
|
Regarding daily vs. hourly/3hourly ndep, I thought we had decided on daily, but I see this issue that has not been closed: Although I personally think daily is fine... |
|
Thanks for the pointer to that issue, @olyson ! I'll add a note that this PR will close that issue. |
|
I tend to agree with @billsacks that we should perform another verification test on CPLHIST mode. I had done one in April 2023 with cesm2_3_alpha12c using a coupled case and an uncoupled case that I ran and compared them. We identified several issues at that time and resolved them satisfactorily (mainly with SourceMods and namelist changes). I then did another verification in June 2023 using cesm2_3_alpha14a using an AMWG coupled case and an uncoupled case that I ran and compared those as well, results were satisfactory: But, these were done almost 3 years ago. To do the validation, I added a set of history fields to the model and to the diagnostics package. Those fields appear to be present in the latest model version (I probably initiated a PR for that), but the fields added to the diagnostics package were for the version in the CESM postprocessing tool. these fields are not present in the older diagnostics package I'm currently running (and will be retired soon). I suggest it makes more sense to add these fields to the LDF. |
|
Thanks for this careful look @olyson can we start another verification test on CPLHIST mode with the current code base?
|
Yep, we can discuss further tomorrow at our liaison meeting.
Yep. |
|
Example of F-case followed by I-case using coupler history: |
Description of changes
There are three separate but related changes here to the histaux atm2med files:
(1) Put Sa_co2prog and Sa_co2diag on a single file each: These two CO2 fields were both being output to both file4 (3-hourly) and file5 (daily). Based on discussion with @mvertens and @klindsay28 I'm keeping prognostic CO2 just on the 3-hourly file and diagnostic CO2 just on the daily file.
(2) Add Faxa_ndep to histaux_atm2med file 5 (daily) (see also ESCOMP/CTSM#1844)
(3) Change atm2med file5 to actually be daily rather than 3-hourly: My sense from the description and file name is that this file is intended to be daily but was accidentally set to 3-hourly. It was changed from daily to 3-hourly in #378 and I think that may have been a mistake, but I'd like to get confirmation of that from @kdraeder and/or @mvertens .
Specific notes
Contributors other than yourself, if any:
CMEPS Issues Fixed (include github issue #):
Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial) No - bfb
Any User Interface Changes (namelist or namelist defaults changes)? Changes some defaults related to atm2med histaux files.
Testing performed
No testing done yet!