Source

Target

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