Skip to content
Snippets Groups Projects
Commit feebada8 authored by Aurore Dupuis's avatar Aurore Dupuis
Browse files

Fix metadata retrieving

parent 1bdb5b8f
No related branches found
No related tags found
2 merge requests!86Resolve "detected metadata file is lost",!71Added Shaded Snow
......@@ -321,6 +321,9 @@ class FscConfig:
if blue_band_path is not None:
self.blue_band_path = blue_band_path # surcharge avec la valeur dans le fichier de configuration
if self.blue_band_no_band is None:
self.blue_band_no_band = 1 # default value
green_band = input.get("green_band", None)
if green_band is not None:
green_band_no_band = green_band.get("no_band", None)
......@@ -366,7 +369,9 @@ class FscConfig:
if self.swir_band_no_band is None:
self.swir_band_no_band = 1 # default value
self.metadata = input.get("metadata", None)
metadata = input.get("metadata", None)
if metadata is not None:
self.metadata = metadata # surcharge avec la valeur dans le fichier de configuration
def update_dem(self, dem):
if dem is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment