From 858ef5b7f0afc7bedc722c3d3efa67fe698d6901 Mon Sep 17 00:00:00 2001 From: Raffaele Gaetano <raffaele.gaetano@cirad.fr> Date: Tue, 25 Oct 2022 15:29:42 +0200 Subject: [PATCH] ENH: step to get rid of binary masks. --- TimeSeries/s2theia.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TimeSeries/s2theia.py b/TimeSeries/s2theia.py index 982d321..3ecf5a8 100644 --- a/TimeSeries/s2theia.py +++ b/TimeSeries/s2theia.py @@ -411,6 +411,14 @@ class S2TheiaTilePipeline: with open(fn) as f: return [l for l in f.read().splitlines() if l] + def skip_gapfill(self): + proc_idx = self.out_idx.copy() + self.out_idx = [] + for t in proc_idx[::2]: + self.append(t, self.files[t], self.types[t], 'out', is_output=True) + return + + def gapfill(self, output_dates=None, on_disk=False): #assert(os.path.exists(output_dates)) proc_idx = self.out_idx.copy() -- GitLab