I have deleted the
Dec05 case due to these errors, and I want to create a new case with your new instructions with the name
Dec13, I want to run the below scripts.
Do you think it's true?
in addition, I want to run my model for one year, so I want to have a NetCDF that includes monthly data for one year instead of 12 separated monthly NETCDFs, so I added
hist_mfit=12 and
hist_nhtfrq=0 for the name list.
:
cd /glade/work/jteymoori
mkdir Dec13
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_newcase --case ~/Dec13 --mach cheyenne --res CLM_USRDAT --compset COMPSET=2000_DATM%GSWP3v1_CLM50%FATES_SICE_SOCN_RTM_SGLC_SWAV --run-unsupported --project UCNN0040
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
ctsm/tools/site_and_regional/subset_data_regional:
module load nco
cd /glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/surfdata_united_states_hist_16pfts_Irrig_CMIP6_simyr2000_c231213.nc landmask.nc
ncrename -v PFTDATA_MASK,landmask landmask.nc
ncks -v PFTDATA_MASK /glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/surfdata_united_states_hist_16pfts_Irrig_CMIP6_simyr2000_c231213.nc landmask.nc
ncrename -v PFTDATA_MASK,mod_lnd_props landmask.nc
ncks --rgr infer --rgr scrip=scrip.nc landmask.nc foo.nc
The following line should use the updated version found
in Discussion 1919:
/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
cd Dec05
module load python
./xmlchange NTASKS=-4
./xmlchange NTASKS_PER_INST=44
./xmlchange JOB_WALLCLOCK_TIME=12:00:00
./xmlchange JOB_QUEUE=regular
./xmlchange PIO_TYPENAME=pnetcdf
./xmlchange STOP_OPTION=nyears
./xmlchange STOP_N=1
./xmlchange LND_NX=47
./xmlchange LND_NY=26
./xmlchange ATM_NX=47
./xmlchange ATM_NY=26
./case.setup
vi user_nl_clm
fsurdat = '/glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/surfdata_united_states_hist_16pfts_Irrig_CMIP6_simyr2000_c231213.nc'
hist_mfit=12
hist_nhtfrq=0
Esc
:wq
Update lines in env_run.xml:
./xmlchange LND_DOMAIN_MESH='/glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/lnd_mesh.nc'
./xmlchange ATM_DOMAIN_MESH='/glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/lnd_mesh.nc'
./xmlchange MASK_MESH='/glade/work/jteymoori/CTSM/tools/site_and_regional/subset_data_regional/mask_mesh.nc'
./case.build
./case.submit