[ncl-talk] Warning sign while reading binary file
Rick Brownrigg
brownrig at ucar.edu
Thu Oct 4 14:26:57 MDT 2018
So the requested read size is 2 x 760 x1140 * sizeof(float) = 8294400 bytes
-- so that part of the error message checks out.
However, I down loaded one of the files, and it was 16588800 bytes --
exactly twice the number of bytes read. Perhaps there are actually 4 time
slices in the file (or whatever the leftmost dimension is). It would make
sense that you get the correct plot, because the rightmost dimensions would
vary the fastest as one stepped through the file.
Rick
On Thu, Oct 4, 2018 at 2:13 PM Debasish Hazra <debasish.hazra5 at gmail.com>
wrote:
> Hi,
>
> I am getting following warning sign when trying to read binary file in NCL
> (6.5) :
>
> warning:cbinread: The size implied by the dimension arrays is less that
> the size of the file.
> Only the first 8294400 contiguous bytes of the file will be read in.
> Note dimensions and values may not be aligned properly
>
> But I am able to generate the right figure. Any suggestion how to overcome
> this "warning message". Attached is ncl script and data uploaded at ftp
> site.
>
> 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/20181004/5c3da1d7/attachment.html>
More information about the ncl-talk
mailing list