CTSM tools for analysis of CTSM history files -- or for creation or modification of CTSM input files.
I. General directory structure NOW IN THE USER'S GUIDE
II. Notes on building and running the tools:
mksurfdata_esmf has a cime configure and CMake based build using the following files:
gen_mksurfdata_build ---- Build mksurfdata_esmf
src/CMakeLists.txt ------ Tells CMake how to build the source code
Makefile ---------------- GNU makefile to link the program together
cmake ------------------- CMake macros for finding libraries
Tools with copies of files from other directories include a README.filecopies.md for more information.
Tools may have files with the directory name followed by .namelist to provide sample namelists, such as
<directory>.namelist ---- Namelist to create a global file
These files are also used by the test scripts to test the tools (see the
README.testing.md) file.
Note
Be sure to change the path of the datasets referenced by these namelists to point to where you have exported your CESM inputdata datasets.
III. Process sequence to create input datasets needed to run CTSM
1. Create ESMF MESH grid files (if needed)
a. For standard resolutions these files will already be created. (done)
b. Run `tools/site_and_regional/subset_data point` to create single-point datasets
This creates just the fsurdat file as MESH files are NOT needed for single-point cases.
c. Run `tools/site_and_regional/subset_data region` to create regional datasets subset from a global dataset
This creates both the fsurdat file and MESH file needed to run.
d. General custom grid
You'll need to convert or create MESH grid files on your own (using scripts
or other tools) for the general case where you have an unstructured grid, or
a grid that is not regular in latitude and longitude, and that grid is custom
and not merely subset from one of the global grids.
2. Create surface datasets with mksurfdata_esmf on Derecho
(See mksurfdata_esmf/README.md for more help on doing this)
- gen_mksurfdata_build to build
- gen_mksurfdata_namelist to build the namelist
- gen_mksurfdata_jobscript_single to build a batch script to run on Derecho
- Submit the batch script just created above
- This step uses the results of step (1) entered into the XML database.
- If datasets were NOT entered into the XML database, set the resolution
by entering the mesh file using the options: --model-mesh --model-mesh-nx --model-mesh-ny
Example: for 0.9x1.25 resolution for 1850
# On Derecho
cd mksurfdata_esmf
./gen_mksurfdata_build
./gen_mksurfdata_namelist --res 0.9x1.25 --start-year 1850 --end-year 1850
./gen_mksurfdata_jobscript_single --number-of-nodes 2 --tasks-per-node 128 --namelist-file target.namelist
qsub mksurfdata_jobscript_single.sh3. Add new files to XML data or using user_nl_clm (optional)
See notes on doing this in step (1) above.
IV. Notes on which input datasets are needed for CTSM
global or regional grids
- need fsurdata
- need mesh files in env_run.xml ATM_DOMAIN_MESH and LND_DOMAIN_MESH
single-point grids
- Just need fsurdata