<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 tabindex="0" style="outline: none 0px; display: table; width: 844px; box-sizing: border-box; padding-top: 12px; padding-left: 0px; font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1479630463985_30597"><div style="display: table-cell; width: auto; word-wrap: break-word; word-break: break-word;" id="yui_3_16_0_ym19_1_1479630463985_30598"><div id="yui_3_16_0_ym19_1_1479630463985_30599"><div id="yui_3_16_0_ym19_1_1479630463985_30600"><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1479630463985_30601"><div id="yui_3_16_0_ym19_1_1479630463985_30602"><span id="yui_3_16_0_ym19_1_1479630463985_30603">Hi all.&nbsp;</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30604"><span id="yui_3_16_0_ym19_1_1479630463985_30605">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 dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30606"><span id="yui_3_16_0_ym19_1_1479630463985_30607">Nscan =0,9247,&nbsp;</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30608">Npix &nbsp; &nbsp;= 0, 48</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30609"><span id="yui_3_16_0_ym19_1_1479630463985_30610">Nlevel &nbsp;= 0,79.&nbsp;</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30611"><br id="yui_3_16_0_ym19_1_1479630463985_30612"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30613"><span id="yui_3_16_0_ym19_1_1479630463985_30614">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 dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30615"><br id="yui_3_16_0_ym19_1_1479630463985_30616"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30617">Now this variable is one dimensional, I need a 2 dim plot (attaching one of the sample plot of Z at level 64).&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30618"><br id="yui_3_16_0_ym19_1_1479630463985_30619"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30620">I got this error.&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30621">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 453152 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30622">Number of Dimensions: 2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30623">Dimensions and sizes:<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30624">        </span>[9248] x [49]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30625">Coordinates:&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30626">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30627">&nbsp; _FillValue :<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30628">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30629"><br id="yui_3_16_0_ym19_1_1479630463985_30630"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30631">Variable: Z_fnl_le170_removd</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30632">Type: double</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30633">Total Size: 3625216 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30634">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 453152 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30635">Number of Dimensions: 2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30636">Dimensions and sizes:<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30637">        </span>[9248] x [49]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30638">Coordinates:&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30639">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30640">&nbsp; _FillValue :<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30641">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30642">(0)<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30643">        </span>&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30644">(0)<span style="white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1479630463985_30645">        </span>min=0 &nbsp; max=52.05</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30646">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_30647">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_30648"><br id="yui_3_16_0_ym19_1_1479630463985_30649"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30650"><br id="yui_3_16_0_ym19_1_1479630463985_30651"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30652"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30653">aditya@agniilap:~/geeta/ncl/ReadHDF-2A2</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30654"><br id="yui_3_16_0_ym19_1_1479630463985_30655"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30656">How to go about making 2 dim plot.&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30657">(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_30658">(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_30659">(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_30660">(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_30661">(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_30662">(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_30663">(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_30664">(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_30665">(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_30666">(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_30667">(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_30668">(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_30669">(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_30670">(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_30671">(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_30672">(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_30673">(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_30674">(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_30675">(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_30676">(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_30677">(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_30678">(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_30679">(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_30680">(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_30681">(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_30682">(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_30683">(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_30684">(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_30685">(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_30686">(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_30687">warning:create: Bad HLU id passed to create, ignoring it</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30688">^M</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30689"><br id="yui_3_16_0_ym19_1_1479630463985_30690"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30691">It would be very kind of you to suggest.&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1479630463985_30692"><span id="yui_3_16_0_ym19_1_1479630463985_30693">I am attaching the output when I run this code on my system. Kindly suggest</span></div></div></div></div></div></div><div style="margin-top: 30px; font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1479630463985_30697"><div id="yui_3_16_0_ym19_1_1479630463985_30698"><div id="yui_3_16_0_ym19_1_1479630463985_30699"><div style="width: 844px; border-top-width: 0px; border-top-color: rgb(236, 236, 236);" id="yui_3_16_0_ym19_1_1479630463985_30700"><ul role="menu" id="yui_3_16_0_ym19_1_1479630463985_30710"><li role="presentation" tabindex="0" aria-label="3 Attachments" style="margin-right: 10px; padding-right: 10px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(210, 210, 210);" id="yui_3_16_0_ym19_1_1479630463985_30702"><br></li><li tabindex="0" aria-selected="false" role="presentation" data-id="1" data-type="image" title="SpatialPlot2014.000013.png (38.7 KB)" aria-label="SpatialPlot2014.000013.png" style="background-image: url(https://thumbp10-sg3.mail.yahoo.com/tn?sid=2786232916&amp;mid=AFTFCmoAAB%2FTWDHPiwwZqLvzu6Y&amp;midoffset=2_0_0_3_170217&amp;partid=2&amp;f=1901&amp;fid=Draft&amp;ymreqid=bb465376-2dd3-db24-0175-580179010000&amp;m=ThumbnailService);" id="yui_3_16_0_ym19_1_1479630463985_30711"><div id="yui_3_16_0_ym19_1_1479630463985_30718"><br></div></li></ul><div style="padding-bottom: 0px;" id="yui_3_16_0_ym19_1_1479630463985_30709"></div></div></div></div></div><div></div><div id="yui_3_16_0_ym19_1_1479630463985_30746">&nbsp;</div><div class="signature" id="yui_3_16_0_ym19_1_1479630463985_30747">Geeta.</div></div></body></html>