On Wednesday 15 of May 2013 21:35:41 Nikos Alexandris wrote:
..
Works with any MTL file now, i.e. with both the
LE71610762013070PFS00_MTL.txt and the old(er)
LE71610762013070PFS00_MTLold.txt Landsat metadata files.
I slightly modified the import_landsat.py script in the GRASS-Wiki:
Nikos
Wouldn't a dedicated import script for Landsat products be useful? Like
r.in.aster for example -- though, maybe it would be better called
i.landsat.import?
see also r.in.modis
I think r.in.* is the correct pattern to follow.
regards,
Hamish
Pietro wrote:
I know the following is a pure python question -- still, can someone shed
some
light on why is there such a difference between
if 'DATE_ACQUIRED' or 'ACQUISITION_DATE' in line:
and
if 'DATE_ACQUIRED' in line or 'ACQUISITION_DATE' in line:
?
Your
Pietro wrote:
I know the following is a pure python question -- still, can someone
shed some light on why is there such a difference between
if 'DATE_ACQUIRED' or 'ACQUISITION_DATE' in line:
and
if 'DATE_ACQUIRED' in line or 'ACQUISITION_DATE' in line:
?
Nikos Alexandris wrote:
whose creation is the the import_landsat.py script featured in
http://grasswiki.osgeo.org/wiki/LANDSAT#Automated_data_import?
This question is still valid :-). If my 2 proposed changes don't do something
seriously wrong, I would like to update the script in the wiki.
Hi Nikos,
On Tue, May 14, 2013 at 1:25 PM, Nikos Alexandris
n...@nikosalexandris.net wrote:
I know the following is a pure python question -- still, can someone shed some
light on why is there such a difference between
if 'DATE_ACQUIRED' or 'ACQUISITION_DATE' in line:
and
if
Hi Pietro,
thank you for taking the time to clarify this -- Perfect!
Note to self: use parentheses in complex if statements (and not only!).
Nikos
--%---
On Tuesday 14 of May 2013 14:43:55 Pietro wrote:
Hi Nikos,
On Tue, May 14, 2013 at 1:25 PM, Nikos Alexandris
Dear list,
whose creation is the the import_landsat.py script featured in
http://grasswiki.osgeo.org/wiki/LANDSAT#Automated_data_import?
I would like to expand it a bit in copying the respective metadata (*MTL.txt)
files over to the (respective) cell_misc directory? I guess that using the