[ncl-talk] Warning sign while reading binary file

Debasish Hazra debasish.hazra5 at gmail.com
Thu Oct 4 14:49:51 MDT 2018


Thanks Rick. If I read them as 4*720*1440, I am not getting any error
messages. So there are 4 records in that file



On Thu, Oct 4, 2018 at 4:27 PM Rick Brownrigg <brownrig at ucar.edu> wrote:

> 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/b52dd906/attachment.html>


More information about the ncl-talk mailing list