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

dstgrid="gpcp_prec_atm_grid_1980-2020.nc"
hadi=/nird/datapeak/NS9039K/data/external/observation/HadleyCentre/HadISST1/HadISST_sst.nc
cdo  -remapcon,$dstgrid ../i02_super_ensmean/sst_superensmean_JJA.nc sst_superensmean_atm_grid_JJA.nc
cdo  -remapcon,$dstgrid -seasmean -selseason,JJA ../i02_super_ensmean/amip_tos.nc amip_tos_atm_grid_JJA.nc
cdo  -remapcon,$dstgrid -seasmean -selseason,JJA -selyear,1980/2020 $hadi HadISST_sst_atm_grid_JJA_1980-2020.nc


