How do I create a single-point run with the NUOPC (default) coupler? #1833
-
We get this question a lot: I am trying to set up a case for a specific latitude and longitude. I want to use GSWP3 climate data, how do I set this up? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
We now have a method for subsetting domain, surface, and DATM data (and soon meshes - for regional cases) which you can use to set up single-point cases. We recently went over how to do this at the 2022 CTSM Tutorial - that notebook can be found here. But see below for some general instructions. General InstructionsSubsetting the dataFor single-point cases with NUOPC, you need to subset a surface dataset and (optionally) DATM data. The python script to subset this data can be found in the CTSM repository at tools/site_and_regional/subset_data. Note that you will need to have a python environment set up that includes the packages scipy, xarray, and numpy. If you have conda or miniconda installed, you can create a conda environment for this and other CTSM python tools using the script To subset surface and DATM data for a single point, use the command:
You can also have the script subset landuse data. See the help ( Also note that this script defaults to subsetting specific (default) surface, domain, and landuse files and GSWP3 DATM data, and can currently only be run as-is on Cheyenne. To update the files and file locations, you will need to modify the files and/or directories in the The Creating the caseWith the default NUOPC compiler, you can use the user mods directory set up in the previous subset data step to tell CIME/CTSM where your subset files are located. Navigate to the CTSM cime/scripts directory to create the case:
Following this, you should be able to update any other case-specific parameters you want to change (e.g.,
|
Beta Was this translation helpful? Give feedback.
-
I tried this using ctsm5.1.dev118: ./subset_data point --lat 40.0 --lon 270.0 --site SITE_TEST --create-surface --create-datm --datm-syr 2000 --datm-eyr 2000 --create-user-mods --outdir /glade/scratch/oleson/SITE_TEST It completed without errors. However, the time dimension in the Solar file appears to be wrong (truncated), e.g., ncdump -v time /glade/scratch/oleson/SITE_TEST/datmdata/clmforc.GSWP3.c2011.0.5x0.5.Solr.SITE_TEST.2000-01.nc time = 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, Is this a known problem? |
Beta Was this translation helpful? Give feedback.
-
Working with ctsm5.3.012 now and needed to set |
Beta Was this translation helpful? Give feedback.
We now have a method for subsetting domain, surface, and DATM data (and soon meshes - for regional cases) which you can use to set up single-point cases.
We recently went over how to do this at the 2022 CTSM Tutorial - that notebook can be found here. But see below for some general instructions.
General Instructions
Subsetting the data
For single-point cases with NUOPC, you need to subset a surface dataset and (optionally) DATM data. The python script to subset this data can be found in the CTSM repository at tools/site_and_regional/subset_data.
Note that you will need to have a python environment set up that includes the packages scipy, xarray, and numpy. If you have conda or miniconda …