[ncl-talk] reading binary data

Dennis Shea shea at ucar.edu
Tue May 10 14:21:30 MDT 2016


Did you look at the size of your file??

259200  2015161_highQc_aot550_eps.dat
^^^^^^^

float or integer are 4 bytes

4*180*360 = 259200     so **one** float or integer variable

You are using

   setfileoption("bin","readbyteorder","littleendian")

   var1 =
cbinread("./EPS_HQ/2015161_highQc_aot550_eps.dat",(/2,180,360/),"float")
   var2 =
cbinread("./EPS_HQ/2015161_highQc_aot550_eps.dat",(/2,180,360/),"integer")

For two integer or float variables the size should be:  259200 + 259200 =
518400

At the very least, you should have been getting an NCL error message about
wrong size.









On Tue, May 10, 2016 at 12:32 PM, Debasish Hazra <debasish.hazra5 at gmail.com>
wrote:

> Hi,
>
> 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.
>
> Thanks.
> Debasish.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160510/9974ca4f/attachment.html 


More information about the ncl-talk mailing list