#!/bin/bash
#     keyword :: canesm_netcdf_conv
# description :: convert canesm timeseries the cmorized netcdf data
set -a
. betapath2  # sets path for new package (required until old package is retired)

#  * ........................... Parmsub Parameters ............................

 runid="runid"; year="yyyy"; year_rtdiag_start="yyyy"; month_rtdiag_start="mm"; crawork="crawork";

 # pycmor settings
 ncconv_cmmt=""; pycmor_env="py2_cmor_v1"; 
 ncconv_exptab_repo="git@gitlab.science.gc.ca:CanESM/cmip6_experiments.git";
 ncconv_exptab="${CCRNSRC}/cmip6_experiments/cmip6_experiment.txt"; ncconv_tabs2conv="";
 add_cccma_vars=1

 # experiment info
 source_id=""; activity_id=""; experiment_id=""; subexperiment_id="";
 override_activity_id=""; override_experiment_id=""; override_subexperiment_id=""; override_source_id="";
 variant_label=""; parent_branch_time=""; parent_runid=""; 
 run_start_time="yyyy:mm"; run_stop_time="yyyy:mm";

 username="username"; user="USER"; nqsprfx=""; nqsext="_${runid}_${year}";
 lopgm="lopgm"; stime="10800"; memory1="32gb";

#  * ............................ Condef Parameters ............................

 noprint=on
 nextjob=on
 debug=off

#  * ............................. Deck Definition .............................
jobname=netcdf-conv; time=$stime ; memory=$memory1
.   comjcl.cdk
cat > Execute_Script <<'end_of_script'

# CSS, Aug 2019

# source script
. ${CCRNSRC}/CanESM/CanDIAG/diag4/ncconv.sh

end_of_script

. endjcl.cdk
#end_of_job
