[GRASS-dev] [GRASS GIS] #3979: G79: problem with i.sentinel.import and importer.write_metadata()
GRASS GIS
trac at osgeo.org
Thu Nov 21 05:33:28 PST 2019
#3979: G79: problem with i.sentinel.import and importer.write_metadata()
-------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Imagery | Version: svn-trunk
Resolution: | Keywords: i.sentinel.import, image
CPU: | collections
Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------
Comment (by neteler):
My system here is based on the mundialis GRASS GIS 7.9/PDAL/Python 3
docker image (Ubuntu).
I have added, since it is a key error, added a print statement:
{{{
WARNING: Raster map <T32TPS_20180608T101021_B03> already exists and will
be
overwritten
Importing raster map <T32TPS_20180608T101021_B03>...
100%
Writing metadata to maps...
dict_keys(['timestamp', 'SATELLITE', 'CLOUDY_PIXEL_PERCENTAGE',
'DEGRADED_MSI_DATA_PERCENTAGE', 'ZENITH_ANGLE_0', 'AZIMUTH_ANGLE_0',
'ZENITH_ANGLE_9', 'AZIMUTH_ANGLE_9', 'ZENITH_ANGLE_10', '
AZIMUTH_ANGLE_10', 'ZENITH_ANGLE_1', 'AZIMUTH_ANGLE_1', 'ZENITH_ANGLE_2',
'AZIMUTH_ANGLE_2', 'ZENITH_ANGLE_3', 'AZIMUTH_ANGLE_3', 'ZENITH_ANGLE_4',
'AZIMUTH_ANGLE_4', 'ZENITH_ANGLE_5', 'AZIM
UTH_ANGLE_5', 'ZENITH_ANGLE_6', 'AZIMUTH_ANGLE_6', 'ZENITH_ANGLE_7',
'AZIMUTH_ANGLE_7', 'ZENITH_ANGLE_8', 'AZIMUTH_ANGLE_8', 'ZENITH_ANGLE_11',
'AZIMUTH_ANGLE_11', 'ZENITH_ANGLE_12', 'AZIMUT
H_ANGLE_12', 'MEAN_SUN_ZENITH_GRID_ANGLE', 'MEAN_SUN_AZIMUTH_GRID_ANGLE',
'MEAN_SUN_ZENITH_ANGLE', 'MEAN_SUN_AZIMUTH_ANGLE'])
dict_keys(['timestamp', 'SATELLITE', 'CLOUDY_PIXEL_PERCENTAGE',
'DEGRADED_MSI_DATA_PERCENTAGE', 'ZENITH_ANGLE_0', 'AZIMUTH_ANGLE_0',
'ZENITH_ANGLE_9', 'AZIMUTH_ANGLE_9', 'ZENITH_ANGLE_10', '
AZIMUTH_ANGLE_10', 'ZENITH_ANGLE_1', 'AZIMUTH_ANGLE_1', 'ZENITH_ANGLE_2',
'AZIMUTH_ANGLE_2', 'ZENITH_ANGLE_3', 'AZIMUTH_ANGLE_3', 'ZENITH_ANGLE_4',
'AZIMUTH_ANGLE_4', 'ZENITH_ANGLE_5', 'AZIM
UTH_ANGLE_5', 'ZENITH_ANGLE_6', 'AZIMUTH_ANGLE_6', 'ZENITH_ANGLE_7',
'AZIMUTH_ANGLE_7', 'ZENITH_ANGLE_8', 'AZIMUTH_ANGLE_8', 'ZENITH_ANGLE_11',
'AZIMUTH_ANGLE_11', 'ZENITH_ANGLE_12', 'AZIMUT
H_ANGLE_12', 'MEAN_SUN_ZENITH_GRID_ANGLE', 'MEAN_SUN_AZIMUTH_GRID_ANGLE',
'MEAN_SUN_ZENITH_ANGLE', 'MEAN_SUN_AZIMUTH_ANGLE'])
dict_keys(['timestamp', 'SATELLITE', 'CLOUDY_PIXEL_PERCENTAGE',
'DEGRADED_MSI_DATA_PERCENTAGE', 'ZENITH_ANGLE_0', 'AZIMUTH_ANGLE_0',
'ZENITH_ANGLE_9', 'AZIMUTH_ANGLE_9', 'ZENITH_ANGLE_10', '
AZIMUTH_ANGLE_10', 'ZENITH_ANGLE_1', 'AZIMUTH_ANGLE_1', 'ZENITH_ANGLE_2',
'AZIMUTH_ANGLE_2', 'ZENITH_ANGLE_3', 'AZIMUTH_ANGLE_3', 'ZENITH_ANGLE_4',
'AZIMUTH_ANGLE_4', 'ZENITH_ANGLE_5', 'AZIM
UTH_ANGLE_5', 'ZENITH_ANGLE_6', 'AZIMUTH_ANGLE_6', 'ZENITH_ANGLE_7',
'AZIMUTH_ANGLE_7', 'ZENITH_ANGLE_8', 'AZIMUTH_ANGLE_8', 'ZENITH_ANGLE_11',
'AZIMUTH_ANGLE_11', 'ZENITH_ANGLE_12', 'AZIMUT
H_ANGLE_12', 'MEAN_SUN_ZENITH_GRID_ANGLE', 'MEAN_SUN_AZIMUTH_GRID_ANGLE',
'MEAN_SUN_ZENITH_ANGLE', 'MEAN_SUN_AZIMUTH_ANGLE'])
dict_keys(['timestamp', 'SATELLITE', 'CLOUDY_PIXEL_PERCENTAGE',
'DEGRADED_MSI_DATA_PERCENTAGE', 'ZENITH_ANGLE_0', 'AZIMUTH_ANGLE_0',
'ZENITH_ANGLE_9', 'AZIMUTH_ANGLE_9', 'ZENITH_ANGLE_10', '
AZIMUTH_ANGLE_10', 'ZENITH_ANGLE_1', 'AZIMUTH_ANGLE_1', 'ZENITH_ANGLE_2',
'AZIMUTH_ANGLE_2', 'ZENITH_ANGLE_3', 'AZIMUTH_ANGLE_3', 'ZENITH_ANGLE_4',
'AZIMUTH_ANGLE_4', 'ZENITH_ANGLE_5', 'AZIM
UTH_ANGLE_5', 'ZENITH_ANGLE_6', 'AZIMUTH_ANGLE_6', 'ZENITH_ANGLE_7',
'AZIMUTH_ANGLE_7', 'ZENITH_ANGLE_8', 'AZIMUTH_ANGLE_8', 'ZENITH_ANGLE_11',
'AZIMUTH_ANGLE_11', 'ZENITH_ANGLE_12', 'AZIMUT
H_ANGLE_12', 'MEAN_SUN_ZENITH_GRID_ANGLE', 'MEAN_SUN_AZIMUTH_GRID_ANGLE',
'MEAN_SUN_ZENITH_ANGLE', 'MEAN_SUN_AZIMUTH_ANGLE'])
[...]
dict_keys(['timestamp', 'SATELLITE', 'CLOUDY_PIXEL_PERCENTAGE',
'DEGRADED_MSI_DATA_PERCENTAGE', 'ZENITH_ANGLE_0', 'AZIMUTH_ANGLE_0',
'ZENITH_ANGLE_9', 'AZIMUTH_ANGLE_9', 'ZENITH_ANGLE_10',
'AZIMUTH_ANGLE_10', 'ZENITH_ANGLE_1', 'AZIMUTH_ANGLE_1', 'ZENITH_ANGLE_2',
'AZIMUTH_ANGLE_2', 'ZENITH_ANGLE_3', 'AZIMUTH_ANGLE_3', 'ZENITH_ANGLE_4',
'AZIMUTH_ANGLE_4', 'ZENITH_ANGLE_5', 'AZIMUTH_ANGLE_5', 'ZENITH_ANGLE_6',
'AZIMUTH_ANGLE_6', 'ZENITH_ANGLE_7', 'AZIMUTH_ANGLE_7', 'ZENITH_ANGLE_8',
'AZIMUTH_ANGLE_8', 'ZENITH_ANGLE_11', 'AZIMUTH_ANGLE_11',
'ZENITH_ANGLE_12', 'AZIMUTH_ANGLE_12', 'MEAN_SUN_ZENITH_GRID_ANGLE',
'MEAN_SUN_AZIMUTH_GRID_ANGLE', 'MEAN_SUN_ZENITH_ANGLE',
'MEAN_SUN_AZIMUTH_ANGLE'])
Traceback (most recent call last):
File "/root/.grass7/addons/scripts/i.sentinel.import", line 505, in
<module>
sys.exit(main())
File "/root/.grass7/addons/scripts/i.sentinel.import", line 489, in main
importer.write_metadata()
File "/root/.grass7/addons/scripts/i.sentinel.import", line 407, in
write_metadata
meta = ip_meta[ip]
KeyError: 'S2B_MSIL1C_20180613T101019_N0206_R022_T32TPS_20180613T122213'
}}}
PS: No, 7.8.x does not contain image collection support.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3979#comment:5>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list