<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>Its solved <br>Thank you<br><br><br><br>On Jun 13, 2017 4:15:21 PM, Dennis Shea wrote:
<br><blockquote class="felamimail-body-blockquote"><div dir="ltr"><div><div><div>Please look at NCL functions:<br><br><b><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_monthly_values.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_monthly_values.shtml</a><br><br></b></div><br></div>Also, read the Description section. The CDO (Climate Data Operators) have a command line tool for doing thios.<br><br></div>Good Luck<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 7:35 AM, Sri Nandini <span dir="ltr"><<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>></span> wrote:<br><blockquote class="felamimail-body-blockquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>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></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div>
</blockquote><br></body></html>