Skip to content

Change data streams to use xmlvariables from hardcoded years (no behavior changes, more flexibility) - #3

Merged
manishvenu merged 2 commits into
mainfrom
interannual-stream-years
Nov 11, 2026
Merged

manishvenu merged 2 commits into
mainfrom
interannual-stream-years

Conversation

@manishvenu

@manishvenu manishvenu commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

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 new DROF_YR_* and DICE_YR_* variables, and we added similar functionality to docn: its interannual mode now reads SSTICE_YEAR_*. The defaults match the old hardcoded years, so nothing changes unless you set them.

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 manishvenu closed this Oct 28, 2026
@manishvenu manishvenu reopened this Oct 28, 2026
@manishvenu manishvenu changed the title Read interannual ocean forcing stream years from xml variables Change data streams to use xmlvariables from hardcoded years (no behavior changes, more flexibility) Oct 28, 2026
@manishvenu
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_*.
@manishvenu manishvenu added the enhancement New feature or request label Nov 3, 2026

@alperaltuntas alperaltuntas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread docn/cime_config/config_component.xml Resolved
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.
@manishvenu
manishvenu merged commit 3af06b4 into main Nov 11, 2026
1 check passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants