GRTcode is a radiative transfer modeling tool used for IRF (Instantaneous Radiative Forcing) calculations and climate diagnostics. This repository provides the core codebase, workflows for running experiments, and example datasets.
git clone https://github.com/NOAA-GFDL/GRTCODE.git
cd GRTCODETo compile the GRTcode executables:
./GRTworkflow/build.sh -p ./💡 If you omit the optional
-p <path>argument, the script will only report the status of the pre-built executables.
./download-test-data
unzip grtcode-dataThis will download and extract example spectral datasets needed for test runs.
./GRTworkflow/run-rfmip-irf.sh -p <path_to_GRTcode> <experiment_number>Example (to run experiment 1):
./GRTworkflow/run-rfmip-irf.sh -p ./ 1./GRTworkflow/run-era5.sh -p ./ <year>Example:
./GRTworkflow/run-era5.sh -p ./ 2010To run a series of experiments over multiple years:
- Open and edit the submission script:
vim ./GRTworkflow/submit.sh-
Modify the paths for
runscriptand executables accordingly. -
Example loop inside
submit.sh:
for year in $(seq 2010 2010); do
for exp in "${exps[@]}"; do
cmd="$runscript -p /ncrc/home1/Jing.Feng/scripts/grtcode $year $era5_data $data_dir/${exp}.nc ${exp}"
echo "Running: $cmd"
eval "$cmd"
done
doneTo submit the batch job:
./GRTworkflow/submit.shNavigate to the era5-tools directory and run:
cd era5-tools
python3 download_2021to2025.pyEdit the script to modify years and output directory as needed.
module load cray-python/3.11.5
pip install xarray glob os argparse netCDF4