LDF#

Land Diagnostics Framework

Background#

The Land Diagnostics Framework (LDF) is based on the Atmosphere Diagnostics Framework (ADF). The LDF currently sits as a branch on the ADF. Features of this package are:

  • Creation of single-variable time series and climatologies

  • Pairwise comparisons of two land model cases that include:

    • Summary tables of global means

    • Global timeseries plots of annual means

    • Global Lat-Lon plots of annual and seasonal means

    • Polar view plots of annual and seasonal means

    • Regional climatology and timeseries plots (these include some observations)

  • Web site generation

Users can define their test and baseline cases, time ranges, and variables to analyze.

The plotting works on structured (f09) and unstructured (ne30) grids. At this time both test and baseline cases must be at the same resolution.

Learning Goals#

  • Clone the ADF repository

  • Run ADF

  • Look at the diagnostic plots

Clone ADF#

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 (this is a one-time task).

cd /glade/work/$USER
git clone https://github.com/NCAR/ADF.git

This gets the main branch.

Then

cd ADF
git fetch origin  # <-- makes other branches available
git checkout -b ldf-native-grid-merge-main origin/ldf-native-grid-merge-main

Now you should be on the ldf branch

Create the necessary conda environment for ADF#

module load conda
conda env create -f env/conda_environment.yaml  

This is a one-time setup step. Next time you work here, load conda and activate the environment

Launch an Interactive Casper job#

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

qsub -I -X  -l select=1:ncpus=8:mem=64GB -A UCGD0011 -q casper@casper-pbs -l walltime=02:00:00

Load environments & submit#

Load modules and activate your conda environment.

module load nco
module load conda
conda activate adf_v1.0.6

Copy and edit the run-time configuration yaml file.

cp config_clm_tutorial_example.yaml your_config_file.yaml

Edit your_config_file.yaml to replace the user with your username.

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

./run_adf_diag your_config_file.yaml

Download the plotting directory to your laptop. Replace $USER with your username.

scp -r $USER@derecho.hpc.ucar.edu:/glade/derecho/scratch/$USER/LDF_example/plots/ctsm5.4.CMIP7_ciso_ctsm5.3.075_f09_124_HIST_1994_2023_vs_ctsm53n04ctsm52028_f09_hist_1994_2023/ .