Commit 43e2993a authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

MOD: removed default coregistration.

parent 6e1b44ca
No related merge requests found
Showing with 5 additions and 4 deletions
+5 -4
......@@ -3,7 +3,7 @@ import sys
import argparse
import OBIA.segmentation
import VHR.vhrbase
from TimeSeries import s2theia
from TimeSeries import s2theia, s2planetary
def run_segmentation(img, threshold, cw, sw , out_seg,
n_first_iter, margin, roi, n_proc, memory,
......@@ -30,8 +30,10 @@ def preprocess_spot67(in_fld, out_fld, dem_fld, geoid_file, skip_ps, compress,
def preprocess_s2(in_fld, out_fld, output_dates_file=None, roi=None, coregister_to=None, coregister_to_band=1,
coregister_using_band=3, provider='theia'):
S2Processor = None
if provider=='theia':
if provider == 'theia':
S2Processor = s2theia.S2TheiaPipeline
elif provider == 'planetary':
S2Processor = s2planetary.S2PlaneteryPipeline
else:
raise ValueError("Unsupported/non-valid provider")
......@@ -43,8 +45,7 @@ def preprocess_s2(in_fld, out_fld, output_dates_file=None, roi=None, coregister_
else:
raise ValueError("Please provide path to a text file containing output dates.")
s2.extract_feature_set(out_fld, coregister_to=coregister_to, coregister_to_band=coregister_to_band,
coregister_using_band=coregister_using_band, store_gapfill=True, mosaicking='vrt')
s2.extract_feature_set(out_fld, store_gapfill=True, mosaicking='vrt')
return
def main(args):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment