-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathparamsTemplate.py
68 lines (55 loc) · 1.78 KB
/
paramsTemplate.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
class Switcher(object):
def paramSelect(self, argument):
"""Dispatch method"""
method_name = str(argument).replace(" ","_")
# Get the method from 'self'. Default to a lambda.
method = getattr(self, method_name, lambda: "nothing")
return method()
def AMAZONIA_NOROCCIDENTAL(self):
cloudScoreThresh= 1
cloudScorePctl= 8
zScoreThresh= -0.9
shadowSumThresh= 0.4
contractPixels= 1.5
dilatePixels= 3.25
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels
def ANDES_DEL_NORTE(self):
cloudScoreThresh= 11
cloudScorePctl= 8
zScoreThresh= -0.8
shadowSumThresh= 0.15
contractPixels= 1.25
dilatePixels= 2.75
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels
def CHOCO(self):
cloudScoreThresh= 1
cloudScorePctl= 8
zScoreThresh= -0.9
shadowSumThresh= 0.35
contractPixels= 0.86
dilatePixels= 2
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels
def GALAPAGOS(self):
cloudScoreThresh= 1
cloudScorePctl= 8
zScoreThresh= -1.11
shadowSumThresh= 0.25
contractPixels= 1.18
dilatePixels= 2
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels
def PACIFICO_ECUATORIAL(self):
cloudScoreThresh= 1
cloudScorePctl= 8
zScoreThresh= -0.9
shadowSumThresh= 0.35
contractPixels= 0.86
dilatePixels= 2
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels
def SIERRA(self):
cloudScoreThresh= 2
cloudScorePctl= 11
zScoreThresh= -0.8
shadowSumThresh= 0.15
contractPixels= 1.2
dilatePixels= 2.5
return cloudScoreThresh, cloudScorePctl, zScoreThresh, shadowSumThresh, contractPixels, dilatePixels