Skip to content

Create a script to create custom parameter files needed for our testmods to reduce maintence #3034

@slevis-lmwg

Description

@slevis-lmwg

We have two /testmods using custom paramfiles, and I'm adding a third in #1654:

ciso_cwd_hr/user_nl_clm:paramfile = '$DIN_LOC_ROOT/lnd/clm2/paramdata/ctsm60_ciso_cwd_hr_params.c250311.nc'
clm60_monthly_matrixcn_soilCN30/user_nl_clm:paramfile = '$DIN_LOC_ROOT/lnd/clm2/paramdata/ctsm60_params_cn30.c250311.nc'
leafcn_t_evolving/user_nl_clm:paramfile = '$DIN_LOC_ROOT/lnd/clm2/paramdata/ctsm60_ceta450_cn30_co2_slope30.c250326.nc'

@ekluzek and @slevis-lmwg agreed (2025/3/26) to reduce file maintenance by consolidating our custom paramfiles into one.

@slevis-lmwg already generated and will use the consolidated paramfile in #1654 (file above dated c250326).

Replacing the other two custom paramfiles with the consolidated file needs to wait for an answer-changing PR (and/or paramfile-updating PR), so I'm posting this issue as a reminder.

UPDATE:

In the 4/3/2025 CTSM SE meeting we decided that a better way forward would be to create a script that creates the parameter files needed for testing. This would even be useful for creating a single file. But, if you have a script for one, you might as well run it three times to create three different files. @slevis-lmwg and I thought that the options were different enough that we wouldn't see interactions if one of the tests fails. But, clearly it's better if you don't even need to think about it. And having a script could also encourage us to add new tests that change something important in parameter files that needs testing.

Definition of Done:

  • Spend some time to think about how this should be done (I think this should be python using xarray?)
  • Make some notes on that
  • Create the script and add it to one of the testmod directories that need it
  • The other testmods should note in their README file about it's usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    size: smalltest: aux_clmPass aux_clm suite before mergingtestingadditions or changes to tests

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions