#!/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'
ofile='obs_tos_clim12.nc'
yb=1981
ye=2010
cdo -O -s -ymonavg -selyear,${yb}/${ye} $infile $ofile


