#!/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.'

## HadISST data file
lonlatbox=-60,-20,10,60
outfile=HadISST_NAtl_ts.nc
test -f $outfile && exit 0
var=sst
ifn="/projects/NS9039K/shared/HadISST/HadISST_sst.nc"
ifn="HadISST_with_model_grid_ano.nc"
cdo --reduce_dim \
    -fldmean  \
    -sellonlatbox,${lonlatbox}  \
    -select,name=${var} \
    ${ifn} \
    ${outfile}


