Commit c9de3d0c authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Removed a lot of deprecated code.

parent 005a79ad
This diff is collapsed.
......@@ -371,22 +371,6 @@ class Test_SpectralHomogenizer(unittest.TestCase):
class Test_SAM_Classifier(unittest.TestCase):
def test_classify_old(self):
from gms_preprocessing.algorithms.L2B_P import SAM_Classifier_old
gA = GeoArray('/home/gfz-fe/scheffler/temp/Landsat-7__ETM+__LE71920242016104NSG00_image_data_L1A.bsq')
with open('/home/gfz-fe/scheffler/temp/SPECHOM_py/QR__Landsat-7__ETM+__clust50.dill', 'rb') as inF:
undilled = dill.load(inF)
cluster_centers = \
for cc in undilled['1__2__3__4__5__7'][('Landsat-5', 'TM')]['1__2__3__4__5__7'].values()])
SC = SAM_Classifier_old()
sub = gA[4465:4470, 4495:4500].astype(np.int16)
# sub[sub==-9999] = 10000
cmap = SC.classify(sub, cluster_centers, nodataVal=-9999)
def test_classify(self):
from gms_preprocessing.algorithms.L2B_P import SAM_Classifier
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