Land#

This notebook is an introduction to analyzing CLM land model results from a global simulation. It uses results from a case similar to the ones you have been running in the Tutorial, but run for longer in order to provide more output. We’ve prestaged model results from this simulation and another simulation using a different model configuration in a shared directory. This way you can get started on analyzing simulation results and compare differences caused by model structure.

Learning Goals#

  • Read in global CLM data

  • Make basic spatial plots

  • Make basic timeseries plots

Running LDF (Land Diagnostic Framework) from the ADF (Atmosphere Diagnostic Framework)#

Navigate to where you want to house the ADF root directory. For this example we will put the ADF in your /work drive on glade. Then clone the code and checkout the branch that we want you to use today (one-time tasks).

cd /glade/work/{user}
git clone https://github.com/NCAR/ADF.git  # <-- gets the main branch
cd ADF
git fetch origin  # <-- makes other branches available
git checkout -b ldf-native-grid-merge-main origin/ldf-native-grid-merge-main

Since creating climatology files and other calculations can be quite intensive, run the ADF on a Casper compute node. Run this command from Capser’s terminal:

qsub -I -X  -l select=1:ncpus=4:mem=64GB -A <account_num> -q casper@casper-pbs -l walltime=02:00:00

Load conda, create the conda environment needed by ADF to run, and then activate that environment.

module load conda
conda env create -n adf_v1.06 -f env/conda_environment.yaml  # one-time; next time you work here, load conda and activate the environment
conda activate adf_v1.0.6

Copy and edit the run-time configuration yaml file.

cp config_clm_???.yaml your_config_file.yaml

Run the executable script run_adf_diag pointing it to the run-time configuration yaml file.

./run_adf_diag your_config_file.yaml