ODP: [GRASS-user] MOLA data elevation problem

Maciej Sieczka tutey at o2.pl
Wed Feb 7 11:14:11 EST 2007


Maciej Tomaszczyk wrote:
> Dear Laurent
> 
> There is in r.in.bin a -s flag(high bit means negative value) but when i used it, effect was the same.

That's because (after the manual) "The  -s flag is used for importing
signed one byte data (range -128 - 127)."

It would be very useful to have it extended to support 2 and 4 byte data.

Maciek

P.S.

Note that r.in.gdal supports bil format too, via EHdr driver. The bil
raster has to accompanied with an appropriate hdr file. Look into the
r.in.srtm script for an example. If the header file contains a
"PIXELTYPE SIGNEDINT" tag the data will be treated as a signed integer.




More information about the grass-user mailing list