[GRASS-user] problem importing hdf files in grass

Michaël Rabotin michaelrabotin at gmail.com
Thu Mar 13 13:23:58 EDT 2008


Hi Everybody,
I've got some problems to import hdf file in grass 6.2.3 on ubuntu
I've got hdf file with AST05, AST07,AST08 and AST09 format
for each bands of these hdf file with a little shell script, I imported in
grass with following commands:

#gdalinfo to have the band name:
gdalinfo $INPUTHDF$i |grep "SUBDATASET_[0-9]*_NAME"|cut -d"=" -f2|grep
"Band"> /tmp/bast2

#gdalwarp to project the band
gdalwarp -s_srs '+proj=utm +zone=31 +datum=WGS84' -t_srs '+proj=utm +zone=31
+datum=WGS84' -order 3 $j /tmp/band"$jj" 2>/dev/null

#and r.in;gdal to import
r.in.gdal -o -e input=/tmp/band"$jj" output=band"$jj" 2>/dev/null

Everything is correct for the AST05,AST07 and AST09 file.
But for my AST08, the image is very deformed and the rows and columns number
aren't corrects (usually AST05 and AST08 have the same number of row and
column, but not my grass rasters).

Does anybody have the same problem with importing ast08 hdf file?
Is anybody know if the AST08 format is specific ? And if the import protocol
for ast08 is different then the others ast formats ?

Thanks

Mick
-- 
M.
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? enlev?e...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080313/f86482da/attachment.html


More information about the grass-user mailing list