Difference between revisions of "CESM Guide"
(Add initial CESM instructions.)
(Detail perl module and expected output.)
|Line 56:||Line 56:|
The CESM scripts require perl's
The CESM scripts require perl's module, so load a recent perl module which has that installed:
module initadd perl/5.24.1
module initadd perl/5.24.1
|Line 65:||Line 65:|
If all is well, you should see a usage message.
If all is well, you should see a usage message .
Revision as of 18:44, 8 February 2018
|This page is a work in progress.|
|Community Earth System Model (CESM)|
|Help|| user guide|
From Wikipedia :
The Community Earth System Model (CESM) is a fully coupled numerical simulation of the Earth system consisting of atmospheric, ocean, ice, land surface, carbon cycle, and other components. CESM includes a climate model providing state-of-art simulations of the Earth's past, present, and future. It is the successor of the Community Climate System Model (CCSM), specifically version 4 (CCSMv4), which provided the initial atmospheric component for CESM. Strong ensemble forecasting capabilities, CESM-LE (CESM-Large Ensemble), were developed at the onset to control for error and biases across different model runs (realizations). Simulations from the Earth's surface through the thermosphere are generated utilizing the Whole Atmosphere Community Climate Model (WACCM). CESM1 was released in 2010 with primary development by the Climate and Global Dynamics Division (CGD) of the National Center for Atmospheric Research (NCAR), and significant funding by the National Science Foundation (NSF) and the Department of Energy (DoE).
Setting up CESM
There is no module for CESM because it does not support cluster-wide installation. CESM will try to compile and download files on an as-needed basis. Therefore, you need to perform a few steps to get CESM setup for yourself:
Check for the latest available version using the
svn list command:
# Output from the command: cesm1_0_6/ cesm1_1_x_LENS_tags/ cesm1_2_1/ cesm1_2_2/ cesm1_2_2_1/ cesm1_2_2_CAMChem/
At the time of writing, version 126.96.36.199 highlighted above is the latest. The downloaded files can get quite large, therefore install cesm in the scratch directory:
mkdir -p /scratch/$USER && cd /scratch/$USER svn checkout --username guestuser --password friendly --non-interactive https://svn-ccsm-models.cgd.ucar.edu/cesm1/release_tags/cesm1_2_2_1
Sometimes the downloads can hang or pause for a long time.
Whenever this happens, cancel by holding
Control + C keys and rerun the above
svn checkout command.
In a few minutes, all the files should have downloaded.
Many of the perl commands rely on a
CCSMROOT environmental variable, so add that to your
~/.bashrc file, and add the scripts directory to your
echo -e '\n# CESM settings:' >> ~/.bashrc echo 'export CCSMROOT=/scratch/$USER/cesm1_2_2_1' >> ~/.bashrc echo 'export PATH=$PATH:$CCSMROOT/scripts' >> ~/.bashrc source ~/.bashrc
The CESM scripts require perl's XML::LibXML module, so load a recent perl module which has that installed:
module initadd perl/5.24.1 module load perl/5.24.1
Now test the
If all is well, you should see a usage message instead of a perl warning.