#!/bin/bash

## Just run code in recipes, use it carefully
## example: use cdo to make cache file. Since cdo is quicker than ncl.
#;DIAG_NORCPM; RUNTHESECODES: echo '    no codes run here.'

infile=/cluster/projects/nn9039k/people/pgchiu/ingo_NorCPM1/NorCPM1-CMIP6/tos_input4MIPs_SSTsAndSeaIce_CMIP_PCMDI-AMIP-1-1-8_gn_187001-202112.nc
var=tos
yb=1872
ye=1874
griddes=GRIDDES
outfile=amip_tos.nc

cdo -s -O -selname,${var} -selyear,${yb}/${ye} ${infile} ${outfile}_tmp.nc
rm -f ${outfile}_tmp.nc


