-
Notifications
You must be signed in to change notification settings - Fork 214
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
For datm cplhist cases, get topo from cplhist file #1407
Comments
CESM-Development#99 is now #1529 |
Add mapping file designations for ne120_oRRS18v3_ICG grid This PR adds mapping file designations for the high-res ne120np4_oRRS18to6v3_ICG grid. [BFB] [NML]
@JeremyFyke this may affect JG runs. |
@lvankampenhout has gotten this to work with case-specific mods. Now we need to get this working out-of-the-box. Key aspects to Leo's mods are: (1) user_datm.streams.txt.topo.cplhist:
Note that the -10800 matches what's used in datm.streams.txt.CPLHIST3HrWx.Solar, but not in the other streams ... I'm not sure what's right here. It probably doesn't matter for the typically time-invariant topo stream, but we should still do the right thing in the final version. Update: Regarding this -10800, Leo says:
(2) user_nl_datm has:
(3) In env_run.xml, DATM_TOPO is set to none rather than 'observed'... I'm not sure if Leo did this explicitly, and whether this is actually required? I'd think this is not wanted in the out-of-the-box implementation. Update: Regarding DATM_TOPO, Leo says:
|
I am wondering if an easy solution arises here (at least for a 'typical' JG/BG' run) because by default, the previous B(G) simulation outputs topography to the ha2x3h files. So, if DATM_TOPO='none', and the following 'topo' line is added to cime/src/components/data_comps/datm/cime_config/namelist_definition_datm.xml:
I wonder if it will pick up the model-based topography correctly? I am testing this out now in my current JG iteration. Thoughts welcome. |
@JeremyFyke let me know if you get that working out-of-the-box. Originally we wanted a solution that would also work for older cpl hist files, but I don't know if that's still a requirement, so knowing what's needed without worrying about backwards compatibility would be great. |
@billsacks Probably a dumb question, but: what would be the failsafe way to know that the topography is getting read in/used correctly? |
Not a dumb question at all! I think you can do this by checking CLM's history field |
@billsacks After setting DATM_TOPO to 'none', no datm.streams.txt.topo.* appears in the run directory. Yet in viewing the ATM_TOPO field in clm2 history, there is a reasonable looking global smoothed topography present. So unless this sneaking in from some other source (clm restart?) it seems like it is being read correctly via streams. A direct diff of ATM_TOPO and the ha2x3h files is difficult, because topo is changing in these files as GrIS evolves. But I'll try to keep an eye on this as the JG/BG proceeds. |
refactor CPLHIST mode and add DATM CPLHIST topo capability This PR has several features: 1) unifies the CPLHIST naming convention across the components by adding the following new xml variables in DATM, DLND and DOCN `DATM_CPLHIST_DOMAIN_FILE, DLND_CPLHIST_DOMAIN_FILE, DROF_CPLHIST_DOMAIN_FILE` These new xml variables are the full pathname for domain file for datm, dlnd and drof when the corresponding data model mode is set to CPLHIST. NOTE: if any of these xml variables set to 'null', then domain information is read in from the first coupler history file in the target stream. NOTE: it is assumed that when `DXXX_CPLHIST_DOMAIN_FILE='null'` that the first coupler stream file that is pointed to contains the domain information for that stream. NOTE: This is the default mode that should be used when the data model `DXXX_MODE is CPLHIST`. 2) puts in new capability for DATM CPLHIST mode to read in topo data 3) replaces % formatting in the data models with new .format() 4) address issue #1877 5) replaced `xxx_mode (e.g. atm_mode) `variables in dxxx_comp_mod.F90 and dxxx_shr_mod.F90 with `datamode `- to reduce confusion. Additional testing: Verified that using this CIME branch to replace cime/ in cesm2_0_alpha07d, the following cases ran successfully on cheyenne with data that was already there: ``` 1850_DATM%CPLHIST_CLM50%BGC_SICE_SOCN_MOSART_CISM2%NOEVOLVE_SWAV (f09_f09_mg17) the following xmlchanges neededed to be made: ./xmlchange DATM_CPLHIST_DOMAIN_FILE=null ./xmlchange DATM_CPLHIST_DIR=/glade/p/cesm/bgcwg_dev/forcing/b.e20.B1850.f09_g17.pi_control.all.179.cplhist/cpl/hist.mon ./xmlchange DATM_CPLHIST_CASE=b.e20.B1850.f09_g17.pi_control.all.179.cplhist ./xmlchange DATM_CPLHIST_YR_ALIGN=1 ./xmlchange DATM_CPLHIST_YR_START=37 ./xmlchange DATM_CPLHIST_YR_END=37 ``` ``` 1850_DATM%CPLHIST_SLND_CICE_POP2%ECO_DROF%CPLHIST_SGLC_WW3 (f09_g17) the following xmlchange commands needed to be run: ./xmlchange DATM_CPLHIST_DOMAIN_FILE=null ./xmlchange DATM_CPLHIST_DIR=/glade/p/cesm/bgcwg_dev/forcing/b.e20.B1850.f09_g17.pi_control.all.179.cplhist/cpl/hist.mon ./xmlchange DATM_CPLHIST_CASE=b.e20.B1850.f09_g17.pi_control.all.179.cplhist ./xmlchange DATM_CPLHIST_YR_ALIGN=1 ./xmlchange DATM_CPLHIST_YR_START=37 ./xmlchange DATM_CPLHIST_YR_END=37 ./xmlchange DROF_CPLHIST_DOMAIN_FILE=null ./xmlchange DROF_CPLHIST_DIR=/glade/p/cesm/bgcwg_dev/forcing/b.e20.B1850.f09_g17.pi_control.all.179.cplhist/cpl/hist.mon ./xmlchange DROF_CPLHIST_CASE=b.e20.B1850.f09_g17.pi_control.all.179.cplhist ./xmlchange DROF_CPLHIST_YR_ALIGN=1 ./xmlchange DROF_CPLHIST_YR_START=37 ./xmlchange DROF_CPLHIST_YR_END=37 ``` ``` 1850_SATM_DLND%SCPL_SICE_SOCN_SROF_CISM2%EVOLVE_SWAV (f09_g16_gl20) no xmlchange commands were needed since in this case we have DLND_CPLHIST_DOMAIN_FILE" value="$LND_DOMAIN_PATH/$LND_DOMAIN_FILE" which is obtained from the config_grids.xml file ``` Test suite: scripts_regression_tests Test baseline: did not compare against baselines Test namelist changes: None Test status: should be bfb Fixes #1877 Fixes #1407 User interface changes?: added new xml variables discussed above Update gh-pages html (Y/N)?: Y Code review: Jim Edwards, Bill Sacks
Add mapping file designations for ne120_oRRS18v3_ICG grid This PR adds mapping file designations for the high-res ne120np4_oRRS18to6v3_ICG grid. [BFB] [NML]
Add mapping file designations for ne120_oRRS18v3_ICG grid This PR adds mapping file designations for the high-res ne120np4_oRRS18to6v3_ICG grid. [BFB] [NML]
Currently, datm always gets the topo stream (atmosphere topographic height) from a particular topo dataset. However, for cplhist cases, we really want to get the topo field from the cplhist file.
Changes to write the topo field to the cplhist file are already in place. So this requires extending the logic in datm's namelist / streams file generation to get the topo field from the correct place.
I think this is related to CESM-Development#99
One tricky part of this is how to support backwards compatibility for old cplhist files. When we talked about it in Nov, 2015, @ekluzek suggested: We could have an xml variable that says where to look for topo when running cpl hist. By default it will look on the cplhist files themselves. But the user can change this xml variable to make it look on the static file that is used for other datm cases.
The text was updated successfully, but these errors were encountered: