<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1463119485156_13505"><span id="yui_3_16_0_ym19_1_1463119485156_13511">Hi all. <br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463119485156_13512"><span id="yui_3_16_0_ym19_1_1463119485156_13511">I have Global data of latent heat at 12 different levels. I have to compute the areal average of each layer , for one sector and only over the Ocean area. Accordingly, I masked the land area and plotted the data for each layer. <br></span></div><div id="yui_3_16_0_ym19_1_1463119485156_13693" dir="ltr"><span id="yui_3_16_0_ym19_1_1463119485156_13511">It is plotted fine, but when I try to take the areal average of a particular layer and particular sector over the ocean, I run into problems. My output shows me <br></span></div><div id="yui_3_16_0_ym19_1_1463119485156_13646" dir="ltr"><span id="yui_3_16_0_ym19_1_1463119485156_13511">1999 7, 0.5000,-----------------,-9999.90039062 <br id="yui_3_16_0_ym19_1_1463119485156_13635"> (DATE MONTH , 1.0000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13636"> , 1.5000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13637"> , 2.0000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13638"> , 2.5000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13639"> , 3.0000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13640"> , 3.5000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13641"> , 4.0000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13642"> , 4.5000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13643"> , 5.0000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13644"> , 5.5000, ,<br id="yui_3_16_0_ym19_1_1463119485156_13645"> , 6.0000, </span></div><div id="yui_3_16_0_ym19_1_1463119485156_13558"><div id="yui_3_16_0_ym19_1_1463119485156_13785" dir="ltr"> (layers) (areal Average Value)</div><div id="yui_3_16_0_ym19_1_1463119485156_13854" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463119485156_13786" dir="ltr">I am unable to proceed further>>>>. Attaching my script and the figures and output file. </div><div id="yui_3_16_0_ym19_1_1463119485156_14159" dir="ltr">when I run this, I get areal_ave = -9999. for all the layers...</div><div id="yui_3_16_0_ym19_1_1463119485156_14170" dir="ltr">umber Of Attributes: 10<br id="yui_3_16_0_ym19_1_1463119485156_14262"> longitude : degrees_east<br id="yui_3_16_0_ym19_1_1463119485156_14263"> latitude : degrees_north<br id="yui_3_16_0_ym19_1_1463119485156_14264"> comments : Unknown1 variable comment<br id="yui_3_16_0_ym19_1_1463119485156_14265"> long_name : latent heat (C/hr)<br id="yui_3_16_0_ym19_1_1463119485156_14266"> units : <br id="yui_3_16_0_ym19_1_1463119485156_14267"> grid_name : grid-1<br id="yui_3_16_0_ym19_1_1463119485156_14268"> grid_type : linear<br id="yui_3_16_0_ym19_1_1463119485156_14269"> time_statistic : instantaneous<br id="yui_3_16_0_ym19_1_1463119485156_14270"> missing_value : -9999.9<br id="yui_3_16_0_ym19_1_1463119485156_14271"> _FillValue : -9999.9<br id="yui_3_16_0_ym19_1_1463119485156_14272"><br id="yui_3_16_0_ym19_1_1463119485156_14273"><br id="yui_3_16_0_ym19_1_1463119485156_14274">Variable: date_final<br id="yui_3_16_0_ym19_1_1463119485156_14275">Type: string<br id="yui_3_16_0_ym19_1_1463119485156_14276">Total Size: 8 bytes<br id="yui_3_16_0_ym19_1_1463119485156_14277"> 1 values<br id="yui_3_16_0_ym19_1_1463119485156_14278">Number of Dimensions: 1<br id="yui_3_16_0_ym19_1_1463119485156_14279">Dimensions and sizes: [1]<br id="yui_3_16_0_ym19_1_1463119485156_14280">Coordinates: <br id="yui_3_16_0_ym19_1_1463119485156_14281">(0) 1999 7<br id="yui_3_16_0_ym19_1_1463119485156_14282"><br id="yui_3_16_0_ym19_1_1463119485156_14283"><br id="yui_3_16_0_ym19_1_1463119485156_14284">Variable: area_avg<br id="yui_3_16_0_ym19_1_1463119485156_14285">Type: float<br id="yui_3_16_0_ym19_1_1463119485156_14286">Total Size: 4 bytes<br id="yui_3_16_0_ym19_1_1463119485156_14287"> 1 values<br id="yui_3_16_0_ym19_1_1463119485156_14288">Number of Dimensions: 1<br id="yui_3_16_0_ym19_1_1463119485156_14289">Dimensions and sizes: [1]<br id="yui_3_16_0_ym19_1_1463119485156_14290">Coordinates: <br id="yui_3_16_0_ym19_1_1463119485156_14291">Number Of Attributes: 1<br id="yui_3_16_0_ym19_1_1463119485156_14292"> _FillValue : -9999.9<br id="yui_3_16_0_ym19_1_1463119485156_14293">(0) -9999.9<br id="yui_3_16_0_ym19_1_1463119485156_14294"><br></div></div><div id="yui_3_16_0_ym19_1_1463119485156_13534" class="signature">Geeta.</div></div></body></html>