Repository navigation
Change data streams to use xmlvariables from hardcoded years (no behavior changes, more flexibility) - #3
Merged
Conversation
The JRA55 (IAF, 1p4_2018, 1p5_2023) and CORE2 IAF datm streams, the matching drof IAF and JRA streams, drof GLOFAS, dice ssmi_iaf and docn interannual hardcoded stream_year_align/first/last. A case could not choose its forcing years, and every year of data was expanded into the stream file list and the input data list. Point these streams at DATM_YR_*, new DROF_YR_* and DICE_YR_* variables, and SSTICE_YEAR_* (docn), the same way the land forcing modes already use DATM_YR_*. The compset defaults equal the old hardcoded values, so default stream output is unchanged. Setting the variables now aligns the data and narrows the file list. Repeat-year, normal-year, ERA5 and the aerosol, deposition, ozone and CO2 time series streams are unchanged.
manishvenu
marked this pull request as ready for review
October 29, 2026 18:29
manishvenu
added a commit
to CROCODILE-CESM/CrocoDash
that referenced
this pull request
Oct 30, 2026
With CDEPS reading the interannual JRA, CORE2 IAF and GLOFAS stream years from <COMP>_YR_ALIGN/_START/_END (CROCODILE-CESM/CDEPS#3), a new DATM configurator sets DATM's and Runoff sets DROF's: the run's years plus one either side for the time interpolation, kept inside the years the compset's defaults give for the data. CDEPS then lists only those years' files. StreamYears, cdeps_streams.py and the user_nl_*_streams blocks are gone. Needs a CESM whose CDEPS has that change: without it DROF_YR_* doesn't exist, and the JRA streams ignore DATM_YR_*.
This was referenced Nov 7, 2026
alperaltuntas
left a comment
There was a problem hiding this comment.
This looks great! Just a nit below. Once that's addressed, feel free to merge this. Can we also submit a PR to the main fork of CDEPS soon?
testing: pr_mom.derecho, all b4b
The docn.rst entries called the variables SSTICE_YR_* and said they were only used in prescribed mode. Use the real SSTICE_YEAR_* names, add interannual mode, and render the taxmode quotes as plain quotes.
alperaltuntas
approved these changes
Nov 11, 2026
manishvenu
added a commit
to CROCODILE-CESM/CESM
that referenced
this pull request
Nov 28, 2026
ESCOMP cdeps1.0.113 (the version cesm3_0_alpha11e/f use) plus CROCODILE-CESM/CDEPS#3: the interannual JRA, CORE2 IAF and GLOFAS streams read their years from DATM_YR_*/DROF_YR_*/DICE_YR_*, which CrocoDash ESCOMP#326 sets from the run dates. cdeps1.0.105+ stops at startup when a data component's NX*NY isn't its mesh size; CrocoDash ESCOMP#326 sets ATM/LND/ROF/WAV NX/NY for that.
manishvenu
added a commit
to CROCODILE-CESM/CESM
that referenced
this pull request
Nov 30, 2026
The stream-years change (CROCODILE-CESM/CDEPS#3) is upstream as ESCOMP/CDEPS#459, tagged cdeps1.0.114 (cdeps1.0.113 + #459). Its tree is identical to cdeps1_0_113.crocodile_003, so builds and runs are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The JRA, CORE2 IAF and GLOFAS data streams had their years hardcoded, so a case couldn't choose its forcing years, and every year of data went into the input data list. We made the data stream years settable through xml variables, the way the land forcing streams already use
DATM_YR_*. Setting them also narrows the file list to just those years.DATM uses the existing
DATM_YR_*. DROF and DICE get newDROF_YR_*andDICE_YR_*variables, and we added similar functionality to docn: itsinterannualmode now readsSSTICE_YEAR_*. The defaults match the old hardcoded years, so nothing changes unless you set them.