[ncl-talk] areal_avg for masked data

Geeta Geeta geetag54 at yahoo.com
Fri May 13 04:50:03 MDT 2016


Hi all. 
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. 
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 
1999           7,                   0.5000,-----------------,-9999.90039062    
  (DATE      MONTH    ,  1.0000,                 ,
                                         ,  1.5000,                 ,
                                         ,  2.0000,                 ,
                                         ,  2.5000,                 ,
                                         ,  3.0000,                 ,
                                         ,  3.5000,                 ,
                                         ,  4.0000,                 ,
                                         ,  4.5000,                 ,
                                         ,  5.0000,                 ,
                                         ,  5.5000,                 ,
                                        ,  6.0000,                                                        (layers)                        (areal Average Value)
I am unable to proceed further>>>>. Attaching my script and the figures and output file. when I run this, I get areal_ave = -9999. for all the layers...umber Of Attributes: 10
  longitude :    degrees_east
  latitude :    degrees_north
  comments :    Unknown1 variable comment
  long_name :    latent heat (C/hr)
  units :    
  grid_name :    grid-1
  grid_type :    linear
  time_statistic :    instantaneous
  missing_value :    -9999.9
  _FillValue :    -9999.9


Variable: date_final
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:    [1]
Coordinates: 
(0)    1999    7


Variable: area_avg
Type: float
Total Size: 4 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:    [1]
Coordinates: 
Number Of Attributes: 1
  _FillValue :    -9999.9
(0)    -9999.9

Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160513/f0a64f6f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask_areaav.000001.png
Type: image/png
Size: 167656 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160513/f0a64f6f/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask_areaav.000002.png
Type: image/png
Size: 34455 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160513/f0a64f6f/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask_n_areaav.ncl
Type: application/octet-stream
Size: 7752 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160513/f0a64f6f/attachment-0001.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: area_avg.f1.txt
Url: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160513/f0a64f6f/attachment-0001.txt 


More information about the ncl-talk mailing list