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

Hamish hamish_b at yahoo.com
Tue May 7 14:12:58 PDT 2013

Ludovico wrote:
> 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 
> WARNING: File Size -2007336096 ... Total Bytes 2287631200
> ERROR: Bytes do not match file size 256
> 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?

what version of GRASS are you using? That overflow should have
been fixed just after 6.4.1 was released.

> Is there any limit on the file size for importing binaries
> into GRASS?

there shouldn't be, other than what the operating system is
limited by.


More information about the grass-user mailing list