[GRASSLIST:1270] Segmentaion fault; Bytes do not match Filesize [importing Landsat7 ETM+ (HDF4)]

Alip.Yasin s01k154 at shako.sk.tsukuba.ac.jp
Wed Sep 17 07:20:33 EDT 2003


Dear GRASS Users
Dear Andrey Kiselev
Dear Nishida Kenrou

Thank you very much for your advice.
For import my Landsat7 data I tried command:
     >gdalinfo myfilename_hdf.l1g
and
     >gdalinfo nyfilename_mtl.l1g
it goes pretty well and I got a lot of information which contained in these
files.
But when it comes to commands( I tried in X,Y & Lon.Lan coordinates, and got
the same error message):
     >r.in.gdal input=myfilename_hdf.l1g output=name1
     >r.in.gdal input=HDF4_SDS:UNKNOWN:"myfilename_hdf.l1g":0 output=name1
all it said  were:
       Segmentaion Fault;
to commands:
     >r.in.bin input=myfilename_hdf.l1g output=name1 bytes=1 north=5048400
south=4830600 east=747000 west=502200 r=217800 c=244800
it said:
          Bytes do not match Filesize.
          Filesize 65535 ... Total Bytes 1777832448
          Try bytes=0 or adjusting input parameteres.
So, after this I tried every combination of parameteres which I could
thought, but all were the same result.
Please, any advice about how could I go out of this wood.

Heartfully thanks
Ghalip Yasin (Alipu Yasen)
Tsukuba University, Japan
s01k154 at shako.sk.tsukuba.ac.jp



> On Tue, Sep 16, 2003 at 03:04:04PM +0900, Alip.Yasin wrote:
> > 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;
>
> Alip,
>
> The following assertions are controversal:
>
> > 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)]
>
> and
>
> > And when I type command:
> >   GRASS:/>gdal -config --formats
> > there was a lot of other data formats, but not include format HDF4.
>
> If you don't have hdf4 compiled in, you will not see report for HDF4
> dataset.
>
> Note, that you should use
>
>  $ r.in.gdal input=HDF4_SDS:UNKNOWN:"L71146029_02920010925_hdf.L1g":0
>
> command to import the first band into GRASS. Read HDF4 help page for
> details:
>
>   http://www.remotesensing.org/gdal/frmt_hdf4.html
>
>   Andrey
>
> --
> Andrey V. Kiselev
> Home phone:  +7 812 5274898  ICQ# 26871517
>
>




More information about the grass-user mailing list