#!/bin/bash
#MSUB -r nctime
#MSUB -n 32
#MSUB -T 86400
#MSUB -q skylake
#MSUB -A devcmip6
#MSUB -o nctime.out
#MSUB -e nctime.out
#MSUB -m work

module load datadir/gencmip6
export PATH=$GENCMIP6_ALL_CCCWORKDIR/miniconda/bin:$PATH
source activate cmip6

SIMULATION=/ccc/work/cont003/gencmip6/p86denv/IGCM_OUT/IPSLCM6/PROD/historical/CM61-LR-hist-03.1990/CMIP6/
CARD_FILES=/ccc/cont003/home/gencmip6/p86denv/CMIP6.INTEL2017.IPSLCM6.1.3-LR/modipsl/config/IPSLCM6/CM61-LR-hist-03.1990
LOGDIR=/ccc/work/cont003/gencmip6/p86denv/IGCM_OUT/IPSLCM6/PROD/historical/CM61-LR-hist-03.1990

nctxck $SIMULATION --card $CARD_FILES --set-inc Esubhr:subhrPt=15m --exclude-file ".*_Odec_.*" --exclude-file ".*-clim\.nc" --ignore-errors 002 -l $LOGDIR --max-processes 32

source deactivate
