Source

Target

Commits (3)
Showing with 8 additions and 5 deletions
+8 -5
import warnings import warnings
from osgeo import gdal from osgeo import gdal
import otbApplication as otb import otbApplication as otb
from theia_picker import TheiaCatalog #from theia_picker import TheiaCatalog
from eodag import EODataAccessGateway, setup_logging from eodag import EODataAccessGateway, setup_logging
from Common.otb_numpy_proc import to_otb_pipeline from Common.otb_numpy_proc import to_otb_pipeline
...@@ -18,6 +18,8 @@ import errno ...@@ -18,6 +18,8 @@ import errno
from Common.geotools import get_query_bbox, check_extent_overlap from Common.geotools import get_query_bbox, check_extent_overlap
from Common.geometry import get_displacements_to_ref, get_clearest_central_image from Common.geometry import get_displacements_to_ref, get_clearest_central_image
'''
# THEIA PICKER temporarily disabled
def fetch(shp, dt, output_fld, credentials): def fetch(shp, dt, output_fld, credentials):
bbox = get_query_bbox(shp) bbox = get_query_bbox(shp)
...@@ -36,7 +38,8 @@ def fetch(shp, dt, output_fld, credentials): ...@@ -36,7 +38,8 @@ def fetch(shp, dt, output_fld, credentials):
f.download_files(matching=lst, download_dir=output_fld) f.download_files(matching=lst, download_dir=output_fld)
return S2TheiaPipeline(output_fld) return S2TheiaPipeline(output_fld)
'''
def fetch_eodag(shp, dt, output_fld, credentials, only_tiles=None): def fetch_eodag(shp, dt, output_fld, credentials, only_tiles=None):
bbox = get_query_bbox(shp) bbox = get_query_bbox(shp)
dag = EODataAccessGateway(user_conf_file_path=credentials) dag = EODataAccessGateway(user_conf_file_path=credentials)
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
"ref_db" : { "ref_db" : {
"path": "/path/to/ref/db/vector", "path": "/path/to/ref/db/vector",
"fields": ["class_field_1", "class_field_2"], "fields": ["class_field_1", "class_field_2"]
"augment_if_missing": false
}, },
"dem" : { "dem" : {
...@@ -48,7 +47,8 @@ ...@@ -48,7 +47,8 @@
"classifier": "rf", "classifier": "rf",
"parameters": { "parameters": {
"n_trees": 400 "n_trees": 400
} },
"augment_if_missing": false
}, },
"map_output": { "map_output": {
......