[GRASS-user] Importing a binary file: (a) why isn't the
command logged in the maps history? (b) why is the resolution of the
imported map slightly different than expected?
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Tue Mar 18 10:24:49 EDT 2008
On Tue, 2008-03-18 at 11:04 -0300, Daniel Victoria wrote:
> Could it be a cell center / corner issue? Normally header information
> gives cell corners...
> Cheers
> Daniel
Daniel,
You are the Man! Correct!
1. gdalinfo /home/nik/grassdb/tmp/glc2000/Binary/GLC_EU_V2.bil -noct
Driver: EHdr/ESRI .hdr Labelled
Files: /home/nik/grassdb/tmp/glc2000/Binary/GLC_EU_V2.bil
/home/nik/grassdb/tmp/glc2000/Binary/GLC_EU_V2.hdr
/home/nik/grassdb/tmp/glc2000/Binary/GLC_EU_V2.stx
/home/nik/grassdb/tmp/glc2000/Binary/GLC_EU_V2.clr
Size is 8064, 4256
Coordinate System is `'
Origin = (-25.995536206400001,71.995535723208150)
Pixel Size = (0.008928570000000,-0.008928570000000)
Corner Coordinates:
Upper Left ( -25.9955362, 71.9955357)
Lower Left ( -25.9955362, 33.9955418)
Upper Right ( 46.0044523, 71.9955357)
Lower Right ( 46.0044523, 33.9955418)
Center ( 10.0044580, 52.9955388)
Band 1 Block=8064x1 Type=Byte, ColorInterp=Palette
Min=0.000 Max=23.000
Minimum=0.000, Maximum=23.000, Mean=16.000, StdDev=5.800
Color Table (RGB with 256 entries)
(Compare gdalinfo report with corner coordinates given in the file
projection_information.hdr )
2. cat projection_information.hdr
[...]
UL_X_COORDINATE: -25.99107192
UL_Y_COORDINATE: 71.99107144
LR_X_COORDINATE: 45.99998799
LR_Y_COORDINATE: 34.00000609
[...]
3. r.in.bin in=GLC_EU_V2.bil out=glc2000_eu_test north=71.9955357
south=33.9955418 west=-25.9955362 east=46.0044523 rows=4256 cols=8064
4. r.info glc2000_eu_test -s
nsres=0:00:32.142852
ewres=0:00:32.142852
[ Youuuuuuuhohooohohooh........ !!!!]
More information about the grass-user
mailing list