[GRASS-dev] i.sentinel.import problems

Hi Martin,

I'm trying i.sentinel.* module and I got problems with i.sentinel.import
I downloaded 3 scene with i.sentinel.download

i.sentinel.download -l settings=/tmp/settings_sentinel
start=2017-01-10 end=2017-01-13 order=desc clouds=0
3 Sentinel product(s) found
860d118d-c117-4472-8b51-654d6784a40a 2017-01-12T16:16:21Z 0% S2MSI1C
c2eaa8d0-eebe-4b4d-b18b-669a2172b02f 2017-01-12T16:16:21Z 0% S2MSI1C
a3d9b19c-2262-4f88-b107-07ee09e217d3 2017-01-12T16:16:21Z 0% S2MSI1C

and after I run

i.sentinel.import -cr input=/tmp/ pattern='B[02|03|04|08|8A|11|12]'

I got two problems:
- all bands are imported
g.list rast map=. pattern=*_B*
T17SLT_20170112T161621_B01
T17SLT_20170112T161621_B02
T17SLT_20170112T161621_B03
T17SLT_20170112T161621_B04
T17SLT_20170112T161621_B05
T17SLT_20170112T161621_B06
T17SLT_20170112T161621_B07
T17SLT_20170112T161621_B08
T17SLT_20170112T161621_B09
T17SLT_20170112T161621_B10
T17SLT_20170112T161621_B11
T17SLT_20170112T161621_B12
T17SLT_20170112T161621_B8A
T17SNT_20170112T161621_B01
T17SNT_20170112T161621_B02
T17SNT_20170112T161621_B03
T17SNT_20170112T161621_B04
T17SNT_20170112T161621_B05
T17SNT_20170112T161621_B06
T17SNT_20170112T161621_B07
T17SNT_20170112T161621_B08
T17SNT_20170112T161621_B09
T17SNT_20170112T161621_B10
T17SNT_20170112T161621_B11
T17SNT_20170112T161621_B12
T17SNT_20170112T161621_B8A
T17SNU_20170112T161621_B01
T17SNU_20170112T161621_B02
T17SNU_20170112T161621_B03
T17SNU_20170112T161621_B04
T17SNU_20170112T161621_B05
T17SNU_20170112T161621_B06
T17SNU_20170112T161621_B07
T17SNU_20170112T161621_B08
T17SNU_20170112T161621_B09
T17SNU_20170112T161621_B10
T17SNU_20170112T161621_B11
T17SNU_20170112T161621_B12
T17SNU_20170112T161621_B8A

- a problem with the cloud mask

Reprojecting <T17SLT_20170112T161621_B07>...
ERROR: No OGR layers available
ERROR: Unable to import
       </tmp/S2A_MSIL1C_20170112T161621_N0204_R140_T17SNU_20170112T161622.SAFE/GRANULE/L1C_T17SNU_A008145_20170112T161622/QI_DATA/MSK_CLOUDS_B00.gml>
ERROR: No OGR layers available
ERROR: Unable to import
       </tmp/S2A_MSIL1C_20170112T161621_N0204_R140_T17SNT_20170112T161622.SAFE/GRANULE/L1C_T17SNT_A008145_20170112T161622/QI_DATA/MSK_CLOUDS_B00.gml>
ERROR: No OGR layers available
ERROR: Unable to import
       </tmp/S2A_MSIL1C_20170112T161621_N0204_R140_T17SLT_20170112T161622.SAFE/GRANULE/L1C_T17SLT_A008145_20170112T161622/QI_DATA/MSK_CLOUDS_B00.gml>
Exception OSError: OSError(2, 'No such file or directory') in <bound
method SentinelImporter.__del__ of <__main__.SentinelImporter object
at 0x7f1e3f7af0d0>> ignored

probably because the clouds are 0%

--
ciao
Luca

www.lucadelu.org

Hi Luca,

út 21. 8. 2018 v 12:12 odesílatel Luca Delucchi <lucadeluge@gmail.com> napsal:

i.sentinel.import -cr input=/tmp/ pattern='B[02|03|04|08|8A|11|12]'

please try

i.sentinel.import -cr input=/tmp/ pattern='B(02|03|04|08|8A|11|12)'

Fixed in r73130.

[...]

Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi Luca,

út 21. 8. 2018 v 12:12 odesílatel Luca Delucchi <lucadeluge@gmail.com> napsal:

- a problem with the cloud mask

fixed in r73131. A new info message is printed.

No clouds layer found in
</home/martin/geodata/sentinel/data/S2A_MSIL2A_20180628T115401_N0208_R023_T29UMU_20180628T125228.SAFE/GRANULE/L2A_T29UMU_A015750_20180628T115400/QI_DATA/MSK_CLOUDS_B00.gml>.
Import skipped

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On Tue, 21 Aug 2018 at 18:34, Martin Landa <landa.martin@gmail.com> wrote:

Hi Luca,

Hi Martin,

please try

i.sentinel.import -cr input=/tmp/ pattern='B(02|03|04|08|8A|11|12)'

Fixed in r73130.

it works thanks!

[...]

Martin

--
ciao
Luca

www.lucadelu.org

On Tue, 21 Aug 2018 at 18:59, Martin Landa <landa.martin@gmail.com> wrote:

Hi Luca,

Hi Markus,

fixed in r73131. A new info message is printed.

No clouds layer found in
</home/martin/geodata/sentinel/data/S2A_MSIL2A_20180628T115401_N0208_R023_T29UMU_20180628T125228.SAFE/GRANULE/L2A_T29UMU_A015750_20180628T115400/QI_DATA/MSK_CLOUDS_B00.gml>.
Import skipped

also this works, thanks

Ma

--
ciao
Luca

www.lucadelu.org