[GRASS-user] Header information for Radiometric Correction

Markus Neteler neteler at osgeo.org
Mon May 31 14:43:16 EDT 2010


Hi Katrin,

On Mon, May 31, 2010 at 3:53 PM, katrin eggert
<katrineggert1980 at gmail.com> wrote:
> Greetings all
> At http://www.grassbook.org/examples_menu3rd.php  There is a function to
> import a Landsat image with metadata info.
> I went
> at ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20000331.ETM-EarthSat/
> and I downloeaded landsat image but I didn't find any met file that is
> required at:
> METASTRING="`grep
> \"SPACECRAFT_ID\|SENSOR_ID\|ACQUISITION_DATE\|WRS_PATH\|WRS_ROW\|SUN_AZIMUTH\|SUN_ELEVATION\|QA_PERCENT_MISSING_DATA\|CLOUD_COVER\|CPF_FILE_NAME\|LMAX_BAND\|LMIN_BAND\|QCALMAX_BAND\|QCALMIN_BAND\"
> *.met| grep -v '^$'
> What am I doing wrong?

Nothing :) The files in the indicated FTP directory are in a different
file format.
If you look at the .hdr files therein, you'll find the metadata easily. They are
in ASCII format, too.

> I need to import Landsat-7 image with all that information...

r.in.gdal should be able to import these data without problems.

> Even at NC_SPM landsat dataset, onlyu 2002 has Metadata information. 1987
> doesn't have that.

Unfortunately various formats are used... But luckily most (all?) are understood
by GDAL, so r.in.gdal should do the job. You can also obtain metadata
information
with
 gdalinfo filename

Hope this helps,

Markus


More information about the grass-user mailing list