-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathConfigTest.txt
More file actions
205 lines (184 loc) · 6.63 KB
/
ConfigTest.txt
File metadata and controls
205 lines (184 loc) · 6.63 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# Honored database substitutions used as {Y}{MILLI}{PRODUCT}
# Y: 4 digit year
# m: 2 digit month
# b: 3 character month (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
# d: 2 digit day
# y: 2 digit year
# j: 3 digit day of year
# H: 2 digit hour (24-hour time)
# M: 2 digit minute
# S: 2 digit second
# MILLI: 3 digit millisecond
# MICRO: 3 digit microsecond
# QACODE: the QA code (ok|ignore|problem)
# VERSION: version string, interface.quality.revision
# DATE: the UTC date from a file, same as Ymd
# MISSION: the mission name from the db
# SPACECRAFT: the spacecraft name from the db
# PRODUCT: the product name from the db
##########################
# MANUAL
#
# Loops over the configuration file and if the DB does not have the mission,
# satellit, instrument entries present they are added, skipped otherwise.
# the Product and process entries must be unique and not present.
#
# THERE IS CURRENTLY NO UPDATE IN THE DB BASED ON THIS CONFIG SCRIPT
##################
# Required elements
#
# [mission] <- once and only once with
# rootdir (string)
# mission_name (string)
# incoming_dir (string)
# [satellite] <- once and only once with
# satellite_name (string)
# [instrument] <- once and only once with
# instrument_name (string)
##### products and inspector are defined together since they are a one-to-one
# [product] <- multiple entries each starting with "product" then a unique identifer
# product_name (string)
# relative_path (string)
# level (float)
# format (string)
# product_description (string)
# inspector_filename (string)
# inspector_relative_path (string)
# inspector_description (string)
# inspector_version (version e.g. 1.0.0)
# inspector_output_interface (integer)
# inspector_active (Boolean e.g. True or 1 or False or 0)
# inspector_date_written (date e.g. 2013-07-12)
# inspector_newest_version (Boolean e.g. True or 1 or False or 0)
# inspector_arguments (string)
#### processes and codes operate on the names of the products, they can be in
#### this config file or already in the db codes are one-to-one with processes
# [process] <- multiple entries each starting with "process" then a unique identifer
# process_name (string)
# output_product (string) - identifer from section heading
# output_timebase (string, FILE/DAILY/WEEKLY/MONTHLY/YEARLY)
# extra_params (string)
## A collection of input names entered as such
## the required portion is "optional_input" or "required_input" then some
## unique identifer on the end
# optional_input1 (string) name of product - identifer from section heading
# optional_input2 (string) name of product - identifer from section heading
# optional_input3 (string) name of product - identifer from section heading
# required_input1 (string) name of product - identifer from section heading
# required_input2 (string) name of product - identifer from section heading
# required_input3 (string) name of product - identifer from section heading
## code is entered as part of process
# code_filename (string)
# code_relative_path (string)
# code_start_date (date, 2000-01-01)
# code_stop_date (date, 2050-12-31)
# code_description (string)
# code_version (version e.g. 1.0.0)
# code_output_interface (integer)
# code_active (Boolean e.g. True or 1 or False or 0)
# code_date_written (date, 2050-12-31)
# code_newest_version (Boolean e.g. True or 1 or False or 0)
# code_arguments (string)
[mission]
rootdir = /tmp/{MISSION}
mission_name = rbsp
incoming_dir = rept_incoming
[satellite]
satellite_name = {MISSION}a
[instrument]
instrument_name = rept
[product_202]
product_name = rept 202 data
relative_path = {SPACECRAFT}/{INSTRUMENT}/level0
level = 0.0
format = ect_{SPACECRAFT}_{nnnn}_{APID}_{nn}.ptp.gz
product_description = RBSPA REPT 202 data
inspector_filename = ect_L0_V1.0.0.py
inspector_relative_path = codes/inspectors
inspector_description = RBSPA REPT 202 data
inspector_version = 1.0.0
inspector_output_interface = 1
inspector_active = True
inspector_date_written = 2013-07-09
inspector_newest_version = True
inspector_arguments = sc={SPACECRAFT} apid={202}
[product_20a]
product_name = rept_20a_data
relative_path = {SPACECRAFT}/{INSTRUMENT}/level0
level = 0.0
format = ect_{SPACECRAFT}_{nnnn}_{APID}_{nn}.ptp.gz
product_description = RBSPA REPT 202 data
inspector_filename = ect_L0_V1.0.0.py
inspector_relative_path = codes/inspectors
inspector_description = RBSPA REPT 202 data
inspector_version = 1.0.0
inspector_output_interface = 1
inspector_active = True
inspector_date_written = 2013-07-09
inspector_newest_version = True
inspector_arguments = sc={SPACECRAFT} apid={20a}
[product_l05hk]
product_name = {SPACECRAFT}_pre_ect-{INSTRUMENT}-hk-L05
relative_path = {SPACECRAFT}/{INSTRUMENT}/level05
level = 0.5
format = {SPACECRAFT}_pre_ect-{INSTRUMENT}-hk-L05_{nnnn}_v{VERSION}.cdf
product_description = RBSPA REPT L05 HK
inspector_filename = ect_L05_V1.0.0.py
inspector_relative_path = codes/inspectors
inspector_description = RBSPA REPT L05 hk
inspector_version = 1.0.0
inspector_output_interface = 1
inspector_active = True
inspector_date_written = 2013-07-09
inspector_newest_version = True
inspector_arguments = product_name={PRODUCT}
[product_l1hk]
product_name = {SPACECRAFT}_pre_ect-{INSTRUMENT}-hk-L1
relative_path = {SPACECRAFT}/{INSTRUMENT}/level1
level = 1.0
format = {SPACECRAFT}_pre_ect-{INSTRUMENT}-hk-L05_{DATE}_v{VERSION}.cdf
product_description = RBSPA REPT L1 HK
inspector_filename = ect_L1_V1.0.0.py
inspector_relative_path = codes/inspectors
inspector_description = RBSPA REPT L1 hk
inspector_version = 1.0.0
inspector_output_interface = 1
inspector_active = True
inspector_date_written = 2013-07-09
inspector_newest_version = True
inspector_arguments = product_name={PRODUCT}
[process_hk_l0-l05]
process_name = repta_hk_l0_l05
output_product = product_l05hk
output_timebase = FILE
extra_params = None
required_input1 = product_202
optional_input1 = product_20a
code_filename = run_rept_L0toL05_v2.1.0.py
code_relative_path = codes/rept
code_start_date = 2000-01-01
code_stop_date = 2050-12-31
code_description = rept processing code for L0 hk
code_version = 2.1.0
code_output_interface = 1
code_active = True
code_date_written = 2013-07-04
code_newest_version = True
code_arguments = None
[process_hk_l05-l1]
process_name = repta_hk_l05_l1
output_product = product_l1hk
output_timebase = DAILY
extra_params = None
required_input1 = product_l1hk
code_filename = l05_to_l1.py
code_relative_path = codes/rept
code_start_date = 2000-01-01
code_stop_date = 2050-12-31
code_description = processing code for L05 to L1
code_version = 1.0.0
code_output_interface = 1
code_active = True
code_date_written = 2013-07-04
code_newest_version = True
code_arguments = None