Commit 3bed1115 authored by Mathias Peters's avatar Mathias Peters
Browse files

Merge branch 'dev' of gitext.gfz-potsdam.de:geomultisens/gms_preprocessing into dev

parents ff323259 6ff81b0d
......@@ -22,6 +22,7 @@ from gms_preprocessing.algorithms.L2B_P import ReferenceCube_Generator # noqa E
from gms_preprocessing.algorithms.L2B_P import RefCube # noqa E402 module level import not at top of file
from gms_preprocessing.algorithms.L2B_P import SpectralHomogenizer # noqa E402 module level import not at top of file
from gms_preprocessing.algorithms.L2B_P import Classifier_Generator # noqa E402 module level import not at top of file
from gms_preprocessing.model.gms_object import GMS_identifier # noqa E402 module level import not at top of file
from . import db_host
......@@ -109,8 +110,8 @@ class Test_ReferenceCube_Generator(unittest.TestCase):
unif_random_spectra = self.SHC.cluster_image_and_get_uniform_spectra(src_im)
from gms_preprocessing.io.input_reader import SRF
tgt_srf = SRF(dict(Satellite='Sentinel-2A', Sensor='MSI', Subsystem=None, image_type='RSD',
proc_level='L1A', logger=None))
tgt_srf = SRF(GMS_identifier(satellite='Sentinel-2A', sensor='MSI', subsystem='', image_type='RSD',
dataset_ID=None, proc_level='L1A', logger=None))
unif_random_spectra_rsp = \
self.SHC.resample_spectra(unif_random_spectra,
src_cwl=np.array(src_im.meta.loc['wavelength'], dtype=np.float).flatten(),
......
......@@ -18,6 +18,7 @@ from gms_preprocessing import __file__
from gms_preprocessing.io.input_reader import SRF
from gms_preprocessing.options.config import set_config
from gms_preprocessing.algorithms.L2B_P import SpectralResampler as SR
from gms_preprocessing.model.gms_object import GMS_identifier
from . import db_host
......@@ -36,8 +37,8 @@ class Test_SpectralResampler(unittest.TestCase):
cls.geoArr.to_mem()
# get SRF instance for Landsat-8
cls.srf_l8 = SRF(dict(Satellite='Landsat-8', Sensor='OLI_TIRS', Subsystem=None,
logger=None, image_type='RSD', proc_level='L1A'))
cls.srf_l8 = SRF(GMS_identifier(satellite='Landsat-8', sensor='OLI_TIRS', subsystem='',
dataset_ID=None, logger=None, image_type='RSD', proc_level='L1A'))
def test_resample_signature(self):
# Get a hyperspectral spectrum.
......
Markdown is supported
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