Project

General

Profile

Problems with ydaysub and simple processing

Added by Nathanael Harwood almost 6 years ago

Hi CDO peeps,

Getting stuck on some simple processing, I'm trying to:
  1. spatial average
  2. calculate daily anomalies from multi-year monthly averages (I need a 1981-2010 monthly mean eventually)
cdo -fldmean -sellonlatbox,-80,-10,70,90 test.nc 1.nc

Works fine but
cdo ydaysub 1.nc -ymonavg 1.nc anomaly.nc

Returns 'Day of year 1 not found (date=19790101)'

The dataset starts on 1979-01-01 (I've uploaded just the 1st month here called 'test.nc' because of file restriction). Any ideas why this is happening?

Thanks,
NH

test.nc (1.26 MB) test.nc

Replies (1)

RE: Problems with ydaysub and simple processing - Added by Uwe Schulzweida almost 6 years ago

You have to replace ydaysub by ymonsub:

cdo -b F32 ymonsub 1.nc -ymonavg 1.nc anomaly.nc

    (1-1/1)