Project

General

Profile

monmean vs monavg

Added by Sara Rauscher about 12 years ago

Hello
I am calculating monthly means from 3 hourly data. From the CDO documentation I understood that monmean calculates a monthly average, and if data are missing the sample size is reduced, whereas monavg would return a missing value. However, I find the same behavior from monmean and monavg - if a time slice has missing data, that month is set to missing data. How can I get the true "mean" behavior? I am using version 1.4.7.
thanks
sara


Replies (7)

RE: monmean vs monavg - Added by Uwe Schulzweida about 12 years ago

Hallo Sara,

monmean and monavg should give different results on timeseries with missing data. Please attach an example file, if the result of both operators is the same with your data.

Cheers, Uwe

RE: monmean vs monavg - Added by Ping Yang over 11 years ago

Hi,

Today I tried the monmean and monavg for the same file, I didn't found any different between the results(do you want me to upload the file?). Are these two function the same?

By the way, Is there a good plotting tool for the CDO result?

Thanks,

Ping

RE: monmean vs monavg - Added by Uwe Schulzweida over 11 years ago

Hi Ping,

the result of monmean and monavg is the same if your dataset has no missing values.

Regards,
Uwe

RE: monmean vs monavg - Added by Babette Tchonang over 5 years ago

Hi Uwe,
what is the best to use between monmean and monavg?

RE: monmean vs monavg - Added by Uwe Schulzweida over 5 years ago

Hi Babette, I prefer to use monmean.

RE: monmean vs monavg - Added by Kiswendsida GUIGMA over 4 years ago

Hello Uwe,

I am neither able to make any difference between mean and avg over different input files.
Basically I am calculating ensemble means using ensmean and ensavg. Both give the same output although the input files contain missing values. Any thought on that?

PS
Here is my code

cdo ensmean tmax_monthly_04_Lead_15.nc tmax_monthly_05_Lead_15.nc tmax_monthly_06_Lead_15.nc tmax_seasonal_AMJ_cdo1_Lead_15.nc

cdo ensavg tmax_monthly_04_Lead_15.nc tmax_monthly_05_Lead_15.nc tmax_monthly_06_Lead_15.nc tmax_seasonal_AMJ_cdo2_Lead_15.nc

Attached are the input files

RE: monmean vs monavg - Added by Uwe Schulzweida over 4 years ago

This is definitely a bug in ensavg. We will fix this problem in the next CDO release 1.9.8.
Thanks for this example!
Uwe

    (1-7/7)