Based on this tutorial by Sam Levis created (
Setting up (high-res sparse) regional-grid CTSM simulations · ESCOMP/CTSM · Discussion #1919), I followed step-by-step
Instructions for running regional CTSM-FATES at regular 1-degree resolution.
I did these below work:
cd /glade/work/jteymoori
mkdir cases
git clone
GitHub - ESCOMP/CTSM: Community Terrestrial Systems Model (includes the Community Land Model of CESM)
cd CTSM
./manage_externals/checkout_externals
cd /CTSM/cime/scripts
module load python
Create case:
./create_newcase --case ~/oct05 --mach cheyenne --res CLM_USRDAT --compset COMPSET=2000_DATM%GSWP3v1_CLM50%FATES_SICE_SOCN_RTM_SGLC_SWAV --mpilib mpi-serial --run-unsupported --project UCNN0040
B) Generate fsurdat file
Cd CTSM/tools/site_and_regional
pip install numpy
pip install xarray
./subset_data region --lat1 24.5 --lat2 49.4 --lon1 235 --lon2 294 --reg united_states --create-surface
C) Generate mesh files
ctsm/tools/site_and_regional/subset_data_regional:
module load nco
ncks --rgr infer --rgr scrip=scrip.nc surfdata_united_states_hist_16pfts_Irrig_CMIP6_simyr2000_c231005.nc foo.nc
/glade/u/apps/ch/opt/esmf-netcdf/8.0.0/intel/19.0.5/bin/bing/Linux.intel.64.mpiuni.default/ESMF_Scrip2Unstruct scrip.nc lnd_mesh.nc 0
ncap2 -s 'elementMask(:)=0' lnd_mesh.nc mask_mesh.nc
D) Run the CTSM
cd oct05
./xmlchange NTASKS = -4
./xmlchange NTASKS_PER_INST = 144
./xmlchange JOB_WALLCLOCK_TIME = 12:00:00
./xmlchange JOB_QUEUE = regular
./xmlchange PIO_TYPENAME = pnetcdf
./case.setup
Add line to user_nl_clm:
fsurdat = ‘subset_data_regional/surfdata_united_states_hist_16pfts_Irrig_CMIP6_simyr2000_c231004.nc’
In the last line that I colored it with blue, I faced this error:
If 'fsurdat' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf fsurdat
How can I solved this error?