<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_1479630463985_9288"><span id="yui_3_16_0_ym19_1_1479630463985_9476">Hi all. </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>I am using orbital data. One of the variables that I am interested in is Reflectivity (Z) which is 3 dim (Nscan,Npix,Nlevel). </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Nscan =0,9247, </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Npix = 0, 48</span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Nlevel = 0,79. </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>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. </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>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. </span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>I got this error. </span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12741"> 453152 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12742">Number of Dimensions: 2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12743">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12744">        </span>[9248] x [49]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12745">Coordinates: </div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12746">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12747"> _FillValue :<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12748">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12749"><br id="yui_3_16_0_ym19_1_1479630463985_12750"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12751">Variable: Z_fnl_le170_removd</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12752">Type: double</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12753">Total Size: 3625216 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12754"> 453152 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12755">Number of Dimensions: 2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12756">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12757">        </span>[9248] x [49]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12758">Coordinates: </div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12759">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12760"> _FillValue :<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12761">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12762">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12763">        </span> </div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12764">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_12765">        </span>min=0 max=52.05</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12766">fatal:Variable (max_Z) has (1) dimensions can not write to dimension (1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12767">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 109 in file 2a25.080324.proj.v1.ncl</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12768"><br id="yui_3_16_0_ym19_1_1479630463985_12769"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12768"><br></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12770">aditya@agniilap:~/geeta/ncl/ReadHDF-2A2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12770"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12770">How to go about making 2 dim plot. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21233">(0) NS 9247 20max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21234">(0) NS 9247 21max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21235">(0) NS 9247 22max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21236">(0) NS 9247 23max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21237">(0) NS 9247 24max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21238">(0) NS 9247 25max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21239">(0) NS 9247 26max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21240">(0) NS 9247 27max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21241">(0) NS 9247 28max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21242">(0) NS 9247 29max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21243">(0) NS 9247 30max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21244">(0) NS 9247 31max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21245">(0) NS 9247 32max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21246">(0) NS 9247 33max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21247">(0) NS 9247 34max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21248">(0) NS 9247 35max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21249">(0) NS 9247 36max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21250">(0) NS 9247 37max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21251">(0) NS 9247 38max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21252">(0) NS 9247 39max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21253">(0) NS 9247 40max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21254">(0) NS 9247 41max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21255">(0) NS 9247 42max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21256">(0) NS 9247 43max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21257">(0) NS 9247 44max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21258">(0) NS 9247 45max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21259">(0) NS 9247 46max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21260">(0) NS 9247 47max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21261">(0) NS 9247 48max_Z is = 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21262">(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.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21263">warning:create: Bad HLU id passed to create, ignoring it</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21264">^M</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21265"><br id="yui_3_16_0_ym19_1_1479630463985_21266"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12770">It would be very kind of you to suggest. </div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span id="yui_3_16_0_ym19_1_1479630463985_19404">I am attaching the output when I run this code on my system. Kindly suggest</span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span> </span></div><div></div><div id="yui_3_16_0_ym19_1_1479630463985_9395"> </div></div></body></html>