Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-06-30 Thread Hamish
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 __

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-06-30 Thread Nikos Alexandris
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:

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-15 Thread Nikos Alexandris
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

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-15 Thread Glynn Clements
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:

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-14 Thread Nikos Alexandris
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 > > z wrote: > > I kno

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-14 Thread Pietro
Hi Nikos, On Tue, May 14, 2013 at 1:25 PM, Nikos Alexandris 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 lin

Re: [GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-14 Thread Nikos Alexandris
Nikos Alexandris wrote: > whose creation is the the import_landsat.py script featured in > ? 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

[GRASS-dev] Copying Landsat MTL file(s) inside the cell_misc directory -- Python scripting

2013-05-11 Thread Nikos Alexandris
Dear list, whose creation is the the import_landsat.py script featured in ? 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 "s