[Thread Prev][Thread Next][Index]

[ferret_users] monthly average from daily data




Hello ferreters,

I had posted a problem in the previous mail, which was as below:

I have daily data in a netcdf file with time axis from 2000-2005, but I want to get the monthly average from daily data and plot it.
Anybody with some tips for me?

Now I tried to do that with the following coding in a .jnl file, but it gives the yearly average rather than monthly. Can anyone suggest me what changes should I need to make to get monthly average instead of yearly? I mainly don't understand the part : DAYS1900(X[i=2000:2003:1],1,1) ????? what are these 1s??

The .jnl file looks like;
!----------------------------------------------------------------------------------------------------------------------------------------------
use COLUMBIA.nc
DEFINE AXIS/EDGES/T0=1-jan-1900/UNITS=days tann2000_03 = DAYS1900(X[i=2000:2003:1],1,1)
set mode metafile

plot columbia[t=1-jan-2000:31-dec-2002]
PLOT/over columbia[gt=tann2000_03@ave]

cancel mode metafile
spawn gksm2ps -l cps -p portrait -o tmp.ps metafile.plt
spawn rm meta*plt

----------------------------------------------------------------------------------------------------

Thanks !
Yadu







On Thu, Apr 24, 2008 at 6:02 PM, yadu pokhrel <yadupokhrel@xxxxxxxxx> wrote:
Dear ferret users,

I have daily data in a netcdf file with time axis from 2000-2005, but I want to get the monthly average from daily data and plot it.
Anybody with some tips for me?


Thanks a lot in advance.

Yadu


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement