<div dir="ltr"><div><div><div><div><div><div>Did you look at the size of your file??<br><br>259200  2015161_highQc_aot550_eps.dat<br></div>^^^^^^^<br><br></div>float or integer are 4 bytes<br><br></div>4*180*360 = 259200     so **one** float or integer variable<br></div><div><br></div>You are using<br><br>   setfileoption(&quot;bin&quot;,&quot;readbyteorder&quot;,&quot;littleendian&quot;)<br><br>   var1 = cbinread(&quot;./EPS_HQ/2015161_highQc_aot550_eps.dat&quot;,(/2,180,360/),&quot;float&quot;)<br>   var2 = cbinread(&quot;./EPS_HQ/2015161_highQc_aot550_eps.dat&quot;,(/2,180,360/),&quot;integer&quot;)<br><br></div>For two integer or float variables the size should be:  259200 + 259200 = 518400<br><br></div><div>At the very least, you should have been getting an NCL error message about wrong size.<br><br></div><div><br></div><br><div><br><br><div><div><br><div><div><div><br><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 12:32 PM, Debasish Hazra <span dir="ltr">&lt;<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I am trying to read binary data with ncl (v6.3) but not sure whether it is reading it right. Also, it does not produce any plots. Attached are the script presently working on and sample data. Any help on this is well appreciated.<br><br></div>Thanks.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Debasish.<br></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>