Main folder for the algorithm:
/cluster/projects/nn9039k/people/dalaiden/nudging/combine_HF_LFThe first thing we need to do is to cat the daily files into a monthly files, using this tool:
/cluster/projects/nn9039k/people/dalaiden/NorCPM/tools/cat_daily_cam_files.shThen, the main script to generate HF_clim and LF_clim is compute_HF_plus_clim.sh. This script calls the python script make_highres_variability_and_clim.py and cat_HF_all-vars_final_files.py.
Several inputs are needed, which are given in compute_HF_plus_clim.sh:
# Parameters
period_full="1961-1990" # The period we want to export the high-frequency variability
period_clim="1961-1990" # The period for the climatology
indir_simu="/cluster/work/users/dalaiden/archive" # Simulation folder
case_id="past500y.hist.001" # Case ID
outdir="/cluster/work/users/dalaiden/nudging_work" # Folder for the outputs
ncpus=9
#----------------------This script will generate HF_clim and LF_clim; one file per month including these two variables.
#SBATCH --account=nn9039k --job-name=HF
#SBATCH --partition=preproc
#SBATCH --time=04:00:00
#SBATCH --ntasks=9
#SBATCH --mem-per-cpu=23G
#SBATCH --error=HF_log_%j
#SBATCH --output=HF_out_%j2h30 for 30 years.
Script: job_make_spline_monthy_reanalysis.sh which calls make_spline_monthy_reanalysis.py
Basically here, we remove the monthly climatology and interpolate the monthly anomalies at 6-hourly resolution
#SBATCH --account=nn9039k --job-name=spline_rea
#SBATCH --partition=preproc
#SBATCH --time=24:00:00
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=40G
#SBATCH --error=spline_rea_log_%j
#SBATCH --output=spline_rea_out_%jFor one member, 60 years: 2:40.
Script: generate_fnudging_rea.sh.
We sum everything.
#SBATCH --account=nn9039k --job-name=HF_nudging
#SBATCH --partition=preproc
#SBATCH --time=24:00:00
#SBATCH --ntasks=1 --cpus-per-task=1
#SBATCH --mem-per-cpu=3G
#SBATCH --error=HF_log_%j
#SBATCH --output=HF_out_%jFor one member, one year: 8 minutes.
