<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"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></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'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 "little-endian"; 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'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>
<<a href="mailto:debasish.hazra5@gmail.com">debasish.hazra5@gmail.com</a>> wrote:<br>
> Once again, strange problem encountered with reading binary in NCL (6.21). A<br>
> week back, David Brown (@ncl) helped with a script that read a particular<br>
> binary file. However, After modifying a little, I could read similar<br>
> dataset (npp_aot550_edr_gridded_0.25_20130727.high.bin) with NCL, but looks<br>
> like something is going wrong either with griddng or colorbar. Colorbar<br>
> should be between 0 to 1, but it seems to be over 3 at some unusual places.<br>
> Data has been uploaded in ftp and a trial script, data read help has been<br>
> attached.<br>
><br>
> Any help is appreciated.<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> ncl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
</blockquote></div></div>