constants.py 1.5 KB
Newer Older
Wei Shoulin's avatar
h    
Wei Shoulin committed
1
2
3
PI = 3.14159265358979323846

UPLOAD_CHUNK_SIZE = 16*1024
Wei Shoulin's avatar
Wei Shoulin committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

STATUS_SUCESS = 0

REF_TYPE_BIAS = "bias"
REF_TYPE_DARK = "dark"
REF_TYPE_FlAT = "flat"
REF_TYPE_ARC = "arc"
REF_TYPE_LAMP = "lamp"
REF_TYPE_SKY = "sky"

REF_TYPES = (REF_TYPE_BIAS, REF_TYPE_DARK, REF_TYPE_FlAT, REF_TYPE_ARC, REF_TYPE_LAMP, REF_TYPE_SKY)

OBS_TYPE_SCI = "sci"
OBS_TYPE_CAL = "cal"
OBS_TYPE_TEST = "test"
OBS_TYPE_JOIN = "join" # joint observation fo IFS and MCI
OBS_TYPES = (OBS_TYPE_SCI, OBS_TYPE_CAL, OBS_TYPE_TEST, OBS_TYPE_JOIN)

MODULE_MSC = "MSC"
Wei Shoulin's avatar
Wei Shoulin committed
23
24
MODULE_MBI = "MBI"
MODULE_SLS = "SLS"
Wei Shoulin's avatar
Wei Shoulin committed
25
26
27
28
29
30
31
32
33
34
35
36
MODULE_IFS = "IFS"
MODULE_MCI = "MCI"
MODULE_CPIC = "CPIC"
MODULE_THZ = "HSTDM"

MODULES = (MODULE_MSC, MODULE_IFS, MODULE_MCI, MODULE_CPIC, MODULE_THZ)

PRC_MODULE_QC0 = "QC0"
PRC_MODULE_QC1 = "QC1"

PRC_MODULE_MSC_INSTRUMENT_EFFECT = "MSC-IE"

Wei Shoulin's avatar
Wei Shoulin committed
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
69
70
71
72
73
MBI_DECTECTORS = [6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25]
MBI_FILTERS = ['N', 'u', 'g', 'r', 'i', 'z', 'y']
MBI_DECTECTORS2FILTER = {
    6: "y",
    7: "i",
    8: "g",
    9: "r",
    11: "z",
    12: "nuv",
    13: "nuv",
    14: "u",
    15: "y",
    16: "y",
    17: "u",
    18: "nuv",
    19: "nuv",
    20: "z",
    22: "r",
    23: "g",
    24: "i",
    25: "y"
}
SLS_DECTECTORS = [1, 2, 3, 4, 5, 10, 21, 26, 27, 28, 29, 30]
SLS_FILTERS = ['N', 'u', 'g', 'r', 'i', 'z', 'y']
SLS_DECTECTORS2FILTER = {
    1: "GI",
    2: "GV",
    3: "GU",
    4: "GU",
    5: "GV",
    10: "GI",
    21: "GI",
    26: "GV",
    27: "GU",
    28: "GU",
    29: "GV",
    30: "GI"
Wei Shoulin's avatar
Wei Shoulin committed
74
75
76
}

MSC_SCI_OBS_TYPE = 'SCI'