ocssw
V2022
|
RatioTransformer.py
Go to the documentation of this file.
84 functions = [BR2, BR3, LH, ND, AVG]
86 def __init__(self, wavelengths, sensor, *args, excl_Rrs=False, all_ratio=False, cutoff=0.5, **kwargs):
106 return f'[{function_names}] applied to {n_wavelengths} wavelengths yields up to {total_number} features'
183 assert(x_new.shape[-1] == len(labels)), f'Mismatch between features and labels: {x_new.shape[-1]} vs {len(labels)}'
184 assert(len(self.labels)== len(labels)), f'Mismatch between old and new labels: {len(self.labels)} vs {len(labels)}'
def add_labels(n_bands, label_function)
Definition: RatioTransformer.py:16
list(APPEND LIBS ${PGSTK_LIBRARIES}) add_executable(atteph_info_modis atteph_info_modis.c) target_link_libraries(atteph_info_modis $
Definition: CMakeLists.txt:7
all_ratio
Definition: RatioTransformer.py:88
features
Definition: RatioTransformer.py:117
def config_info(*args, **kwargs)
Definition: RatioTransformer.py:95
def get_n_features(self)
Definition: RatioTransformer.py:100
def get_unique_features(features, threshold=0.025, chunksize=10, _bottom=False)
Definition: utils.py:7
wavelengths
Definition: RatioTransformer.py:87
def __init__(self, wavelengths, sensor, *args, excl_Rrs=False, all_ratio=False, cutoff=0.5, **kwargs)
Definition: RatioTransformer.py:86
def _transform(self, X, *args, **kwargs)
Definition: _CustomTransformer.py:36
def closest_wavelength(k, waves, validate=True, tol=5, squeeze=False)
Definition: utils.py:24
def PEAK(Rrs, min_wvl, max_wvl, wavelengths=None)
Definition: RatioTransformer.py:70
list functions
Definition: RatioTransformer.py:84
excl_Rrs
Definition: RatioTransformer.py:89