<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.&nbsp;</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).&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Nscan =0,9247,&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Npix &nbsp; &nbsp;= 0, 48</span></div><div id="yui_3_16_0_ym19_1_1479630463985_9288" dir="ltr"><span>Nlevel &nbsp;= 0,79.&nbsp;</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. &nbsp;This variable in my code is named as max_Z.&nbsp;</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.&nbsp;</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.&nbsp;</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_12741">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</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">&nbsp; _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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</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">&nbsp; _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>&nbsp;</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 &nbsp; 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.&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21233">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 20max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21234">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 21max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21235">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 22max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21236">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 23max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21237">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 24max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21238">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 25max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21239">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 26max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21240">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 27max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21241">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 28max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21242">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 29max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21243">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 30max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21244">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 31max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21245">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 32max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21246">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 33max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21247">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 34max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21248">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 35max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21249">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 36max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21250">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 37max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21251">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 38max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21252">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 39max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21253">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 40max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21254">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 41max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21255">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 42max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21256">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 43max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21257">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 44max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21258">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 45max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21259">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 46max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21260">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 47max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21261">(0) &nbsp; &nbsp; NS &nbsp;9247 &nbsp; 48max_Z is = &nbsp; &nbsp;0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_21262">(0) &nbsp; &nbsp; 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.&nbsp;</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>&nbsp;</span></div><div></div><div id="yui_3_16_0_ym19_1_1479630463985_9395">&nbsp;</div></div></body></html>