[GRASS-user] ERROR: Bytes do not match file size with r.in.bin (but file size is correct!!)

Ludovico Nicotina Ludovico.Nicotina at rms.com
Tue May 7 09:23:47 PDT 2013

Dear list members,

I get this error while running the following command:

r.in.bin -f input=inputfile.bin output=outputmap bytes=4 n=51:05:20.4N s=41:21:50.4N w=5:08:31.2W e=9:33:36E r=19450 c=29404 anull=-9999.0 --overwrite

The file inputfile.bin is a binary grid written by a fortran program, with real*4 values. When I run the command I get the following error message:

WARNING: File Size -2007336096 ... Total Bytes 2287631200
ERROR: Bytes do not match file size
Note the minus sign in front of the first value given for the files size in the warning message. Important to notice also that when I do an ls -l on the binary input file I get the correct size (19450x29404x4):

-rw-rw-r-- 1 user group 2287631200 May  7 15:05 inputfile.bin

Any suggestion on the origin of this error? Is there any limit on the file size for importing binaries into GRASS? I am able to run exactly the same code on another region (which implies that the inputfile.bin is smaller 1.9GB vs the 2.2GB for this one) so I'm wondering if it's a metter of size and if there is any workaround.

Thanks in advance for whatever assistance you might provide.


This message and any attachments contain information that may be RMS Inc. confidential and/or privileged. If you are not the intended recipient (or authorized to receive for the intended recipient), and have received this message in error, any use, disclosure or distribution is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the e-mail and permanently deleting the message from your computer and/or storage system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130507/b1b514c7/attachment-0001.html>

More information about the grass-user mailing list