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

Markus Neteler neteler at osgeo.org
Tue May 7 13:14:31 PDT 2013


On Tue, May 7, 2013 at 6:23 PM, Ludovico Nicotina
<Ludovico.Nicotina at rms.com> wrote:
> 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

I guess you hit the file size barrier on a 32bit system:

2^31
[1] 2147483648

you:
     2287631200 which is more.

...
> Any suggestion on the origin of this error?

Please tell us
- which GRASS GIS version
- which operating system
- was large file support compiled into GRASS GIS if not on 64bit

Then it may be easier to suggest a solution.

Please note:
http://grasswiki.osgeo.org/wiki/GRASS_GIS_Performance#Large_raster_data_processing

Markus


More information about the grass-user mailing list