<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style></head><body>Hello<br><br>Im using daily data (for evaporation) and would like to convert/calculate monthly values to plot my annual cycle.<br>The evaporation data is from 1979-2010 in daily format.<br>My script is:<br><br>; ==============================================================<br>; Open the file: Read only the user specified period first observations then model<br>; ==============================================================<br>f = addfile("ERAIL_SF_SRO_SSRO_TP_E_1979_2010.nc", "r") ;<br>;***********************************************************<br>; Read time and create required yyyyddd <br>;***********************************************************<br> time = f->time ; time:units = "hours since 1-1-1 00:00:0.0" <br> TIME = cd_calendar(time, 0) ; type float <br> year = toint( TIME(:,0) )<br> month = toint( TIME(:,1) )<br> day = toint( TIME(:,2) ) <br> ddd = day_of_year(year, month, day) <br> yyyyddd = year*1000 + ddd ; needed for input<br>;***********************************************************<br>; Read data: short2flt <br>;*********************************************************** <br> e0 = short2flt( f->e(:,:,:) ) ; convert to float <br> printVarSummary( e0 ) <br>;***********************************************************<br>; Compute daily climatology: raw and then 'smoothed' <br>;***********************************************************<br> EClmDay = clmDayTLL(e0, yyyyddd) ; daily climatology at each grid point <br> printVarSummary(EClmDay) <br> printVarSummary(EClmDay) ; (time, lat,lon) <br><br><br>and the output is:<br><br>Variable: e0<br>Type: float<br>Total Size: 233385984 bytes<br> 58346496 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 11688] x [latitude | 64] x [longitude | 78]<br>Coordinates: <br> time: [692520..973008]<br> latitude: [64..32.5]<br> longitude: [30..68.5]<br>Number Of Attributes: 7<br> units : m of water equivalent<br> long_name : Evaporation<br> standard_name : lwe_thickness_of_water_evaporation_amount<br> _FillValue_original : -32767<br> _FillValue : -32767<br> missing_value_original : -32767<br> missing_value : -32767<br><br>Variable: EClmDay<br>Type: float<br>Total Size: 7308288 bytes<br> 1827072 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [year_day | 366] x [latitude | 64] x [longitude | 78]<br>Coordinates: <br> year_day: [1..366]<br> latitude: [64..32.5]<br> longitude: [30..68.5]<br>Number Of Attributes: 4<br> long_name : Daily Climatology: Evaporation<br> units : m of water equivalent<br> information : Raw daily averages across all years<br> smoothing : None<br><br>Would really appreciate any advice<br></body></html>