Subtract daily field mean from time series
Added by Frosi Ma almost 6 years ago
Hello,
I have a 3h global surface pressure time series.
I want to do
cdo sub ifile.nc -fldmean ifile.nc ofile.nc
to calculate the 3h anomaly to the 3h field mean.
The result is an error:
cdo(2) sub (Abort): Grid size of the input parameters do not match!
Which confuses me because
cdo sub ifile.nc -timmean ifile.nc ofile.nc
is working without causing any problems.
Can somebody please help me with that?
Kind regards
Frosi
Replies (2)
RE: Subtract daily field mean from time series - Added by Ralf Mueller almost 6 years ago
fldmean has only a single gridpoint, so you cannot substract it directly. us enlarge
for putting the value on the original grid
cdo sub ifile.nc -enlarge,ifile.nc -fldmean ifile.nc ofile.nc
hth
ralf
RE: Subtract daily field mean from time series - Added by Frosi Ma almost 6 years ago
Thank you very much! :-)