Calculating timmean and timmax simultaneously
Added by Jed Kaplan 1 day ago
I have a file tmp1.nc
that has a single variable with a 3-hourly timestep.
I would like to calculate the daily mean and daily maximum of the variable in this file and merge the results into a single file, all in one processing step. Based on examples I found on this forum, I tried:
cdo merge -chname,iceflux,iceflux_mean -daymean tmp1.nc -chname,iceflux_max -daymax tmp1.nc tmp2.nc
but this fails with:
cdo(3) chname (Abort): Odd number of input arguments!
logical seemed to me to try this:
cdo merge [-chname,iceflux,iceflux_mean -daymean tmp1.nc] [-chname,iceflux_max -daymax tmp1.nc] tmp2.nc
but that fails with
cdo(1) daymean: Open failed on >tmp1.nc]< No such file or directory
Thanks for your help to find the correct way to do this!
Jed