<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sorry, I am on it.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Fra:</b> grass-dev <grass-dev-bounces@lists.osgeo.org> på vegne av GRASS GIS <trac@osgeo.org><br>
<b>Sendt:</b> onsdag 20. november 2019 22:19<br>
<b>Kopi:</b> grass-dev@lists.osgeo.org <grass-dev@lists.osgeo.org><br>
<b>Emne:</b> [GRASS-dev] [GRASS GIS] #3979: G79: problem with i.sentinel.import and importer.write_metadata()</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">#3979: G79: problem with i.sentinel.import and importer.write_metadata()<br>
-------------------------------------------------+-------------------------<br>
Reporter: neteler | Owner: grass-dev@…<br>
Type: defect | Status: new<br>
Priority: normal | Milestone:<br>
Component: Imagery | Version: svn-trunk<br>
Keywords: i.sentinel.import, image | CPU: Unspecified<br>
collections |<br>
Platform: Unspecified |<br>
-------------------------------------------------+-------------------------<br>
I was trying to import Sentinel-2 (S2-L1C) data into G78 in order to make<br>
use of image collections:<br>
<br>
{{{<br>
i.sentinel.import input=/mnt/geodata/openeo_bolzano/<br>
register_output=s2_t_register.csv<br>
[...]<br>
Processing <T32TPS_20180608T101021_B02>...<br>
Importing raster map <T32TPS_20180608T101021_B02>...<br>
100%<br>
Processing <T32TPS_20180608T101021_B12>...<br>
Importing raster map <T32TPS_20180608T101021_B12>...<br>
100%<br>
Processing <T32TPS_20180608T101021_B07>...<br>
Importing raster map <T32TPS_20180608T101021_B07>...<br>
100%<br>
Processing <T32TPS_20180608T101021_B11>...<br>
Importing raster map <T32TPS_20180608T101021_B11>...<br>
100%<br>
Processing <T32TPS_20180608T101021_B10>...<br>
Importing raster map <T32TPS_20180608T101021_B10>...<br>
100%<br>
Processing <T32TPS_20180608T101021_B03>...<br>
Importing raster map <T32TPS_20180608T101021_B03>...<br>
100%<br>
Writing metadata to maps...<br>
Traceback (most recent call last):<br>
File "/root/.grass7/addons/scripts/i.sentinel.import", line 504, in<br>
<module><br>
sys.exit(main())<br>
File "/root/.grass7/addons/scripts/i.sentinel.import", line 488, in main<br>
importer.write_metadata()<br>
File "/root/.grass7/addons/scripts/i.sentinel.import", line 407, in<br>
write_metadata<br>
meta = ip_meta[ip]<br>
KeyError: 'S2B_MSIL1C_20180613T101019_N0206_R022_T32TPS_20180613T122213'<br>
}}}<br>
<br>
I am using a rasther fresh version:<br>
<br>
{{{<br>
g.version -rge<br>
version=7.9.dev<br>
date=2019<br>
revision=exported<br>
build_date=2019-11-19<br>
build_platform=x86_64-pc-linux-gnu<br>
build_off_t_size=8<br>
libgis_revision=00000<br>
libgis_date="?"<br>
proj=4.9.3<br>
gdal=2.2.3<br>
geos=3.6.2<br>
sqlite=3.22.0<br>
}}}<br>
<br>
-- <br>
Ticket URL: <<a href="https://trac.osgeo.org/grass/ticket/3979">https://trac.osgeo.org/grass/ticket/3979</a>><br>
GRASS GIS <<a href="https://grass.osgeo.org">https://grass.osgeo.org</a>><br>
<br>
</div>
</span></font></div>
</body>
</html>