[ncl-talk] plotting of 1dim var to 2dim

Geeta Geeta geetag54 at yahoo.com
Sun Nov 20 09:30:03 MST 2016


Hi all. I am using orbital data. One of the variables that I am interested in is Reflectivity (Z) which is 3 dim (Nscan,Npix,Nlevel). Nscan =0,9247, Npix    = 0, 48Nlevel  = 0,79. 
I have found out the maximum value of Z at each pixel ie. Max Z is the maximum value amongst 80 levels.  This variable in my code is named as max_Z. 
Now this variable is one dimensional, I need a 2 dim plot. I am attaching one of the sample plot of Z at level 64. 
I got this error.             453152 valuesNumber of Dimensions: 2Dimensions and sizes: [9248] x [49]Coordinates: Number Of Attributes: 1  _FillValue : -9999
Variable: Z_fnl_le170_removdType: doubleTotal Size: 3625216 bytes            453152 valuesNumber of Dimensions: 2Dimensions and sizes: [9248] x [49]Coordinates: Number Of Attributes: 1  _FillValue : -9999(0)  (0) min=0   max=52.05fatal:Variable (max_Z) has (1) dimensions can not write to dimension (1)fatal:["Execute.c":8578]:Execute: Error occurred at or near line 109 in file 2a25.080324.proj.v1.ncl

aditya at agniilap:~/geeta/ncl/ReadHDF-2A2
How to go about making 2 dim plot. (0)     NS  9247   20max_Z is =    0(0)     NS  9247   21max_Z is =    0(0)     NS  9247   22max_Z is =    0(0)     NS  9247   23max_Z is =    0(0)     NS  9247   24max_Z is =    0(0)     NS  9247   25max_Z is =    0(0)     NS  9247   26max_Z is =    0(0)     NS  9247   27max_Z is =    0(0)     NS  9247   28max_Z is =    0(0)     NS  9247   29max_Z is =    0(0)     NS  9247   30max_Z is =    0(0)     NS  9247   31max_Z is =    0(0)     NS  9247   32max_Z is =    0(0)     NS  9247   33max_Z is =    0(0)     NS  9247   34max_Z is =    0(0)     NS  9247   35max_Z is =    0(0)     NS  9247   36max_Z is =    0(0)     NS  9247   37max_Z is =    0(0)     NS  9247   38max_Z is =    0(0)     NS  9247   39max_Z is =    0(0)     NS  9247   40max_Z is =    0(0)     NS  9247   41max_Z is =    0(0)     NS  9247   42max_Z is =    0(0)     NS  9247   43max_Z is =    0(0)     NS  9247   44max_Z is =    0(0)     NS  9247   45max_Z is =    0(0)     NS  9247   46max_Z is =    0(0)     NS  9247   47max_Z is =    0(0)     NS  9247   48max_Z is =    0(0)     Error: scalar_field: If the input data is 1-dimensional, you must set sfXArray and sfYArray to 1-dimensional arrays of the same length.warning:create: Bad HLU id passed to create, ignoring it^M
It would be very kind of you to suggest. I am attaching the output when I run this code on my system. Kindly suggest  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161120/316210d0/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpatialPlot2014.000013.png
Type: image/png
Size: 39587 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161120/316210d0/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2a25.080324.proj.v1.ncl
Type: application/octet-stream
Size: 11288 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161120/316210d0/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.gz
Type: application/x-gzip
Size: 1265770 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161120/316210d0/attachment-0001.gz 


More information about the ncl-talk mailing list