-
Notifications
You must be signed in to change notification settings - Fork 321
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
Documentation need for generic single point with nuopc #1565
Comments
Thanks @wwieder! I am working on adding the relevant commands/file updates for using subset climate data with NUOPC. @ekluzek the |
OK, I wasn't sure about this myself. But, I looked into how it's done for the NEON data and we should be able to copy how it does it. The header for the NEON data looks likes this... <stream_info name="NEON.NIWO">
<taxmode>cycle</taxmode>
<tintalgo>linear</tintalgo>
<readmode>single</readmode>
<mapalgo>none</mapalgo>
<dtlimit>1.5</dtlimit>
<year_first>2018</year_first>
<year_last>2018</year_last>
<year_align>2018</year_align>
<vectors>null</vectors>
<meshfile>none</meshfile>
<lev_dimname>null</lev_dimname> So mapalgo is none, meshfile is none, and there's only one point of data. If all of those are true we shouldn't need a meshfile for the datm part of this. For regional cases with more than one datapoint for datm we would need to provide a meshfile. |
So @adrifoster yes you should set meshfile to something besides blank, you should set it to "none" and also set mapalgo to "none". |
for what it's worth, setting up this single point run was super simple after creating the surface dataset, but it's just using the global datm data /glade/work/wwieder/ctsm/ctsm5.1_N-K_test/cime/scripts/RandomBoreal_0c |
@ekluzek I tried setting
|
@adrifoster OK thanks for pointing that out. This sounds like a problem in CDEPS. Let me look into this a bit, I can probably give you a workaround for it. But, we'll likely need to get a change in CDEPS to fix this. Since it allows none for NEON it obviously can work this way. |
@adrifoster I realized there are two cases here. One for when you are pointing to a site with tower data, and one when you are pointing to forcing data with a single point extracted out. In the first case you should set DATM_MDOE=1PT which should get you everything you want other than filenames. In the later case you want to explicitly change mapalgo=none, and meshfile to none, but leave the others alone. |
Here is the script I have been using to create single-point cases - a lot of this can go in the user_mods, but perhaps some of it is redundant or out of date with NUOPC?
|
I created CDEPS issues for this discussion: |
@adrifoster in looking at the above script there are some things that I think are important here. For it to be a supported script it should be in python and based off of the run_neon script. And the two scripts should possibly share some infrastructure. You are setting some things I don't think you need to, such as PE settings. And some things are set by the compset, so possibly the choice of compset should be how they are set rather than by overridden explicitly. Also by the way to set NTASKS the same for all you can do... ./xmlchange NTASKS=1 and that will set all components to 1 task. I'd also set the wallclock limit by using the argument to create_newcase rather than through xmlchange. Because it's cleaner and because it won't also change the time for the st_archive script. |
Hey Erik,
This is just my own personal script based on scripts that others have sent
me so I was not planning on having this be in the subset_data script,
obviously many things should be set by the individual user.
But good to know on the PE settings - I think you said to set these as a
precaution but I will remove them in the future.
…On Wed, Dec 8, 2021 at 9:51 AM Erik Kluzek ***@***.***> wrote:
@adrifoster <https://github.com/adrifoster> in looking at the above
script there are some things that I think are important here.
#1565 (comment)
<#1565 (comment)>
For it to be a supported script it should be in python and based off of
the run_neon script. And the two scripts should possibly share some
infrastructure.
You are setting some things I don't think you need to, such as PE
settings. And some things are set by the compset, so possibly the choice of
compset should be how they are set rather than by overridden explicitly.
Also by the way to set NTASKS the same for all you can do...
./xmlchange NTASKS=1
and that will set all components to 1 task.
I'd also set the wallclock limit by using the argument to create_newcase
rather than through xmlchange. Because it's cleaner and because it won't
also change the time for the st_archive script.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1565 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADE42ISWAP6W73I7VAZKUUDUP6EHPANCNFSM5JBZLF7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Here's the discussion on single point simulations that's @adrifoster put together. |
From @ekluzek:
For future reference, the "PTCLM chapter" referred to there can be restored by checking out a version of CTSM before the merge of whatever PR ends up resolving #2769. E.g., |
Here are the steps needed to create and run a single point case with nupoc.
Users will have to crease a surface dataset first and then make a few manual changes (mainly to shell_commands).
NOTE the mods to user_nl_mosart seem like an (unnecessary?) gotcha
Erik's example case is here:
/glade/work/erik/ctsm_worktrees/branch1/cime/scripts/cases/RandomBoreal_0
With create_newcase command:
./create_newcase --case cases/RandomBoreal_0 --compset I2000Clm51Bgc --res CLM_USRDAT --driver nuopc --user-mods-dirs newton_krylov_spinup --mpilib mpi-serial --run-unsupported
(note I used the mpi-serial library for MPI because it's just a single point case)
I did these xml commands (added them to shell_commands)
NOTE: CASESTR is not required, but makes sure a few things are set with something besides UNSET
Added this to user_nl_clm
fsurdat = '/glade/scratch/wwieder/single_point/surfdata_hist_16pfts_Irrig_CMIP6_simyr2000_RandomBoreal_c210823.nc'
and this to user_nl_mosart
frivinp_rtm = '/dev/null'
(This is something that is required with latest updates in externals, when MOSART_MODE=null (i.e. when compset has MOSART rather than SROF). This is a little glitch that we should fix in CTSM so you don't have to do this (There's a MOSART issue about this)
Originally posted by @ekluzek in #1457 (comment)
Definition of Done:
The text was updated successfully, but these errors were encountered: