-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdim_r.py
31 lines (29 loc) · 1.38 KB
/
dim_r.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-qw
"""
Created on 17th of Jan., 2018vd
a
@author: gmiliar (George Ch. Miliaresis)
Dimensonality reduction for DEMs (SVR.DEM) by G.Ch. Miliaresis
Ver. 2017.02 winpython implementation, (https://winpython.github.io/)
Details in https://github.com/miliaresis
https://sites.google.com/site/miliaresisg/
"""
from dmr_myf import Processing_constants
from dmr_myf import data_imv_read
from dmr_myf import MainRun
import dmr_data_headers
# 1st FUNCTION CALL -------------- Defines clustering & tiff import options...
clustering_options, tiff_import_options = Processing_constants()
# 2nd FUNCTION CALL ---------------Selects the data file (header) to work with
[GeoExtent, FigureLabels, LabelLST, LabelLSTxls, Lmin, Lmax, Rmin, Rmax,
LDatadir, Tiffimporttype, cluster_method] = dmr_data_headers.dataDEM1(
clustering_options, tiff_import_options)
# 3rd FUNCTION CALL -------------- IMPORTS the data files, creates the vectors
data, row, col, continue1 = data_imv_read(LDatadir, len(LabelLST),
Tiffimporttype)
# 4th FUNCTION call -------------- Starts the processing of vectors ---------
if continue1 == 'yes':
MainRun(data, row, col, GeoExtent, FigureLabels, LabelLST, LabelLSTxls,
Lmin, Lmax, Rmin, Rmax, cluster_method, clustering_options)
else:
print('----> Check the data files')