I am using GRASS 7.0.svn (SVN Revision: 53972) in Windows 7 64-bit, trying to generate cloud masks for Landsat5 and 7 images acquired from USGS.
For some reason i.landsat.toar gives me "Failed to identify satellite" error when I try to run it with the metadata file loaded. I'm able to load the contents of the metadata file to the viewer of the application, but apparently the tool can't find the required information.
In the case above I've loaded the file * _MTLold.txt. If *_MTL.txt file is loaded, I got the following messages:
WARNING: Unable to recognize satellite platform [0]
ERROR: Failed to identify satellite
Product date is 2012-10-09.
I am using GRASS 7.0.svn (SVN Revision: 53972) in Windows 7 64-bit, trying to generate cloud masks for Landsat5 and 7 images acquired from USGS.
For some reason i.landsat.toar gives me "Failed to identify satellite" error when I try to run it with the metadata file loaded. I'm able to load the contents of the metadata file to the viewer of the application, but apparently the tool can't find the required information.
In the case above I've loaded the file * _MTLold.txt. If *_MTL.txt file is loaded, I got the following messages:
WARNING: Unable to recognize satellite platform [0]
ERROR: Failed to identify satellite
Product date is 2012-10-09.
I've noticed that the MTL files have some form of binary info at the end (last line). This keeps several text editors from opening these files. When I open them in vi and erase the last line, everything is fine. I don't know where that line comes from.
Maybe that's what's keeping the module from reading them correctly ?
thanks for your input!
I thought of this myself. Removed the binary bit from the files and used them text-only versions without success.
It has to do something with the structure of the metadata files, as Jorge Tizado pointed it out for me.
Greets,
Andras
-----Original Message-----
From: Moritz Lennert [mailto:mlennert@club.worldonline.be]
Sent: 11. joulukuuta 2012 11:57
To: Balázs András (METLA)
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] i.landsat.toar unable to read metadata file
On 04/12/12 08:05, Balázs András (METLA) wrote:
Hi,
I am using GRASS 7.0.svn (SVN Revision: 53972) in Windows 7 64-bit, trying to generate cloud masks for Landsat5 and 7 images acquired from USGS.
For some reason i.landsat.toar gives me "Failed to identify satellite" error when I try to run it with the metadata file loaded. I'm able to load the contents of the metadata file to the viewer of the application, but apparently the tool can't find the required information.
In the case above I've loaded the file * _MTLold.txt. If *_MTL.txt file is loaded, I got the following messages:
WARNING: Unable to recognize satellite platform [0]
ERROR: Failed to identify satellite
Product date is 2012-10-09.
I've noticed that the MTL files have some form of binary info at the end (last line). This keeps several text editors from opening these files.
When I open them in vi and erase the last line, everything is fine. I don't know where that line comes from.
Maybe that's what's keeping the module from reading them correctly ?
I thought of this myself. Removed the binary bit from the files and used
them text-only versions without success. It has to do something with the
structure of the metadata files, as Jorge Tizado pointed it out for me.
Same problem here, using GRASS 6.4.3svn (2012). And it doesn't work by using
the *MTLold.txt file(s) as well.
---------- Forwarded message ----------
From: E. Jorge Tizado <ej.tizado@unileon.es>
Date: Mon, Dec 10, 2012 at 11:43 AM
Subject: Re: Fwd: [GRASS-user] i.landsat.toar unable to read metadata file
To: Markus Neteler <neteler@osgeo.org>
Hi Markus,
The Andras problem is solved!
The problem arises in another new! change of the 'standard' metadata
file MTL.txt; now use LANDSAT_7 instead of Landsat7 as spacecraft_id
I modify the code to avoid this problem with other users;
I attach the file landsat_met.c for replacement in SVN servers (grass6
and grass_trunk)
Best
Jorge
Hi Jorge,
do you have a possibility to help this user?
thanks
Markus
--
+---------------------------------------------------------+
| Dr. E. Jorge Tizado
| Dpto. Biodiversidad y Gestión Ambiental: Zoología
| Universidad de León - Campus de Ponferrada
| E-24400 Ponferrada (León, España)
+---------------------------------------------------------+
| tfno.: 987 442 018 - 696 138 405
| e-mail: ej.tizado@unileon.es
| web: http://www3.unileon.es/personal/wwdbajtm/index.php
+---------------------------------------------------------+
(Apologies for not replying to the latest e-mail in this thread -- posting
from another machine with no access to past threads)
I tested the modified landsat_met.c code, provided by E. Jorge Tizado. It
works! Yet, it fails somewhere else, e.g.:
--%<---
# get toar
i.landsat.toar input_prefix=${BASE} output_prefix=${BASE}_toar
metfile=${BASE}_MTL.txt
ERROR: Unknown production date (defined by 'product_date')
--->%--
It seems there are several modifications to the MET content structure.
Fortunately (?) two MET files are provided *currently* (at least I have seen
this in several L[MTE][457] scenes.
For example, an LT5 packed scene contains:
..
LT51810332008141MTI00_MTL.txt
LT51810332008141MTI00_MTLold.txt
..