<div dir="ltr">Thanks Dave again. It solved the problem.<br><br> <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 6:17 PM, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Debasish,<br>
<br>
This file may contain similar information compared to the file you<br>
sent previously, but it is formatted quite differently and therefore<br>
you need to program the script to read it differently. There is<br>
nothing wrong with NCL 6.2.1&#39;s behavior with respect to this file. If<br>
you read the document that you sent along with your code it gives you<br>
the information you need to know: the file is &quot;little-endian&quot;; it has<br>
two fields, the first is float data with the missing values set to<br>
-9999.0, the second is an integer. Since you can only read data of a<br>
single type using NCL&#39;s binary input routines, you need to read the<br>
data twice; first as a float, and second as an integer. In the first<br>
case you should keep only the first half of the data and in the second<br>
only the second half.<br>
<br>
I am attaching a a modified version of your script that reads this<br>
data as specified above, along with a png file that shows both these<br>
fields plotted.<br>
 -dave<br>
<div><div class="h5"><br>
<br>
On Fri, Dec 12, 2014 at 2:40 PM, Debasish Hazra<br>
&lt;<a href="mailto:debasish.hazra5@gmail.com">debasish.hazra5@gmail.com</a>&gt; wrote:<br>
&gt; Once again, strange problem encountered with reading binary in NCL (6.21). A<br>
&gt; week back, David Brown (@ncl)  helped with a script that read a particular<br>
&gt; binary  file. However, After modifying a little, I could read similar<br>
&gt; dataset (npp_aot550_edr_gridded_0.25_20130727.high.bin) with NCL, but looks<br>
&gt; like something is going wrong either with griddng or colorbar. Colorbar<br>
&gt; should be between  0 to 1, but it seems to be over 3 at some unusual places.<br>
&gt; Data has been uploaded in ftp and a trial script, data read help has been<br>
&gt; attached.<br>
&gt;<br>
&gt;  Any help is appreciated.<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;<br>
</blockquote></div></div>