[GRASSLIST:1241] import Landsat7 ETM+ xxx...xxx...bx0.l1g File (HDF4)

Alip.Yasin s01k154 at shako.sk.tsukuba.ac.jp
Tue Sep 16 02:04:04 EDT 2003


Dear GRASS Users

Firstly Thanks to Mr. Andrey Kiselev and Mr. Markus Neteler for their
support to me.

I had problem with importing a Landsat7 file into GRASS.
   my PC System: Linux; GRASS 5.0.2 (April 2003); GDAL 1.1.9;
   importing file: Landsat7 ETM+; Format: EOS-HDF;
When I type command:
  GRASS:/>gdalinfo L7114029_02920010925_hdf.L1g
   Driver: HDF4/Hierarchical Data Format Release 4
   Size is 512,512
   Coordinate System is
   Subdatasets:
          SUBDATASET_1_NAME=HDF4_SDS:UNKNOWN:
"L71146029_02920010925_hdf.L1g":0
          SUBDATASET_1_DESC=[7261x8161] [L71146029-02920010925.B10 (8_bit
unsigned integer)]
            ........
   Corner Coordinates:
     Upper Left (0.0, 0.0)
    .............
     Center (256.0,256.0)

And when I type command:
  GRASS:/>gdal -config --formats
there was a lot of other data formats, but not include format HDF4.
And when I tried to import file L71146029_02920010925_hdf.L1g  use command:
   GRASS:/>r.in.gdal input=L71146029_02920010925_hdf.L1g output=test1
it said:
   Segmentation Fault.
Please, tell me, what cause this problem, and how could I import my Landsat7
HDF4 data into GRASS?

Heartfully Thanks

Ghalip Yasin
Tsukuba University, Japan
s01k154 at shako.sk.tsukuba.ac.jp


> On Sat, Sep 13, 2003 at 05:09:24PM +0900, Alip.Yasin wrote:
> > And after that I tried to import Landsat7 ETM+
> > l71146029_02920010925_b10.l1g,
> > using r.in.gdal command.
> > And it's said that [ Error 4, not recognized as a supported file ].
> > But I learned that GDAL can handle with HDF.
> > So I wonder why I could't import Landsat7 etm+ into GRASS.
> > Is my data which named  l71146029_02920010925_b10.l1g was not a HDF,
> > because, I thought, the extensions was '"l1g" not "hdf".
> > How could I inroduce the "xxx...xxx...xxx.l1g" into GRASS?
> > (my installed GDAL verstion was gdal1.1.9)
>
> Your Lansat is probably in FAST format. To read FAST dataset using GDAL
> you should give to r.in.gdal name of the header file. Read here for more
> information:




More information about the grass-user mailing list