From 51a33273df2d49e3b2607c3f3f79774cf71d2409 Mon Sep 17 00:00:00 2001
From: Daniel Scheffler <danschef@gfz-potsdam.de>
Date: Tue, 5 Mar 2024 15:18:03 +0100
Subject: [PATCH] Adapt list of possible resampling techniques for spectral
 interpolation.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
---
 enpt/cli.py                       | 2 +-
 enpt/options/config.py            | 2 +-
 enpt/options/options_default.json | 2 +-
 enpt/options/options_schema.py    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/enpt/cli.py b/enpt/cli.py
index cc4f30cf..bd8336cb 100644
--- a/enpt/cli.py
+++ b/enpt/cli.py
@@ -135,7 +135,7 @@ def get_enpt_argparser():
         help="Algorithm for dead pixel correction ('spectral' or 'spatial')")
     add('--deadpix_P_interp_spectral', type=str, default="linear",
         help="Spectral interpolation algorithm to be used during dead pixel correction "
-             "('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic')")
+             "('linear', 'quadratic', 'cubic')")
     add('--deadpix_P_interp_spatial', type=str, default="linear",
         help="Spatial interpolation algorithm to be used during dead pixel correction "
              "('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic')")
diff --git a/enpt/options/config.py b/enpt/options/config.py
index c5d39151..cbb8e0e1 100644
--- a/enpt/options/config.py
+++ b/enpt/options/config.py
@@ -322,7 +322,7 @@ class EnPTConfig(object):
 
         :key deadpix_P_interp_spectral:
             Spectral interpolation algorithm to be used during dead pixel correction
-             ('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic')
+             ('linear', 'quadratic', 'cubic')
 
         :key deadpix_P_interp_spatial:
             Spatial interpolation algorithm to be used during dead pixel correction
diff --git a/enpt/options/options_default.json b/enpt/options/options_default.json
index 1096e7c8..c16a5022 100644
--- a/enpt/options/options_default.json
+++ b/enpt/options/options_default.json
@@ -84,7 +84,7 @@
                                         'spectral': interpolate in the spectral domain
                                         'spatial':  interpolate in the spatial domain*/
             "interp_method_spectral": "linear",  /*spectral interpolation algorithm
-                                                   ('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic', ...)*/
+                                                   ('linear', 'quadratic', 'cubic')*/
             "interp_method_spatial": "linear"  /*spatial interpolation algorithm
                                                  ('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic', ...)*/
         },
diff --git a/enpt/options/options_schema.py b/enpt/options/options_schema.py
index 3b832b35..20bbb274 100644
--- a/enpt/options/options_schema.py
+++ b/enpt/options/options_schema.py
@@ -106,7 +106,7 @@ enpt_schema_input = dict(
                     run_processor=dict(type='boolean', required=False),
                     algorithm=dict(type='string', required=False, allowed=['spectral', 'spatial']),
                     interp_method_spectral=dict(type='string', required=False,
-                                                allowed=['linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic']),
+                                                allowed=['linear', 'quadratic', 'cubic']),
                     interp_method_spatial=dict(type='string', required=False,
                                                allowed=['linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic']),
                 )),
-- 
GitLab