<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px"><div dir="ltr" id="yui_3_16_0_1_1415941430844_7248"><span>Hi. <br></span></div><div id="yui_3_16_0_1_1415941430844_7264" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7263">i want to clarify a doubt regarding the computation of average rainfall for a domain say, 9-22N/74-87E. <br></span></div><div id="yui_3_16_0_1_1415941430844_7265" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1415941430844_7340" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7339">for this I am using following script. <br></span></div><div id="yui_3_16_0_1_1415941430844_7337" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7338">begin<br style="" class="">fili = "model24_2011060100.nc" ; file<br style="" class="">;***************************************************************<br style="" class=""> <br style="" class="">f = addfile (fili, "r")<br style="" class=""> <br style="" class="">data=f->APCP_24(:,:)<br style="" class="">printVarSummary(data)<br style="" class=""> <br style="" class="">rf_averg=wgt_areaave(data,1.0,1.0,0)<br style="" class="">print(rf_averg)<br style="" class=""><br style="" class="">So NCL gives me the areaaverf of 6.40mm. <br></span></div><div id="yui_3_16_0_1_1415941430844_12081" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7338">OUTPUT:--------------------------------------------------<br></span></div><div id="yui_3_16_0_1_1415941430844_12070" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7338">bash-3.2$ ncl mdlrf.ncl<br style="" class=""> Copyright (C) 1995-2007 - All Rights Reserved<br style="" class=""> University Corporation for Atmospheric Research<br style="" class=""> NCAR Command Language Version 5.0.0<br style="" class=""> The use of this software is governed by a License Agreement.<br style="" class=""> See http://www.ncl.ucar.edu/ for more details.<br style="" class=""> <br style="" class=""> <br style="" class="">Variable: data<br style="" class="">Type: float<br style="" class="">Total Size: 106276 bytes<br style="" class=""> 26569 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes: [lat | 163] x [lon | 163]<br style="" class="">Coordinates:<br style="" class="">Number Of Attributes: 12<br style="" class=""> name : APCP<br style="" class=""> long_name : Total precipitation<br style="" class=""> level : A24<br style="" class=""> units : kg/m^2<br style="" class=""> grib_code : 61<br style="" class=""> _FillValue : -9999<br style="" class=""> init_time : 20110601_000000<br style="" class=""> init_time_ut : 1306886400<br style="" class=""> valid_time : 20110602_030000<br style="" class=""> valid_time_ut : 1306983600<br style="" class=""> accum_time : 240000<br style="" class=""> accum_time_sec : 86400<br style="" class=""> <br style="" class=""> <br style="" class="">Variable: rf_averg<br style="" class="">Type: float<br style="" class="">Total Size: 4 bytes<br style="" class=""> 1 values<br style="" class="">Number of Dimensions: 1<br style="" class="">Dimensions and sizes: [1]<br style="" class="">Coordinates:<br style="" class="">Number Of Attributes: 1<br style="" class=""> _FillValue : -9999<br style="" class="">(0) 6.400823<br style="" class="">bash-3.2$<br style="" class=""></span></div><div id="yui_3_16_0_1_1415941430844_12073" dir="ltr"><br><span id="yui_3_16_0_1_1415941430844_7338"></span></div><div id="yui_3_16_0_1_1415941430844_12074" dir="ltr"><br><span id="yui_3_16_0_1_1415941430844_7338"></span></div><div id="yui_3_16_0_1_1415941430844_12075" dir="ltr"><span id="yui_3_16_0_1_1415941430844_7338">I have two questions pertaining to this. <br></span></div><div id="yui_3_16_0_1_1415941430844_12076" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">1. is the usage of the function </span><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">wgt_areaave Correct. <br></span></div><div id="yui_3_16_0_1_1415941430844_12094" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">2. when I calculate the areal average using the function aave of grads <br></span></div><div id="yui_3_16_0_1_1415941430844_12120" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">ga-> define x1= APCPsfc.1-APCPsfc.2<br style="" class="">Define memory allocation size = 106928 bytes<br style="" class="">ga-> d aave(x1,lon=74,lon=87,lat=9,lat=22)<br style="" class="">Result value = 6.68369<br style="" class=""></span></div><div id="yui_3_16_0_1_1415941430844_12104" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">There is discrepancy in the results. <br></span></div><div id="yui_3_16_0_1_1415941430844_12103" dir="ltr"><br><span style="" class="" id="yui_3_16_0_1_1415941430844_7338"></span></div><div id="yui_3_16_0_1_1415941430844_12102" dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">kindly guide me towards right direction. </span></div><div dir="ltr"><span style="" class="" id="yui_3_16_0_1_1415941430844_7338">Geeta<br></span></div><div id="yui_3_16_0_1_1415941430844_7247"> </div></div></body></html>