-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconfig_tile_Sx_exp_mccd.ini
More file actions
292 lines (185 loc) · 6.87 KB
/
config_tile_Sx_exp_mccd.ini
File metadata and controls
292 lines (185 loc) · 6.87 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# ShapePipe configuration file for single-exposures, MCCD PSF model.
# Process exposures after masking, from star detection to PSF model.
## Default ShapePipe options
[DEFAULT]
# verbose mode (optional), default: True, print messages on terminal
VERBOSE = True
# Name of run (optional) default: shapepipe_run
RUN_NAME = run_sp_tile_Sx_exp_SxSePsf
# Add date and time to RUN_NAME, optional, default: True
; RUN_DATETIME = False
## ShapePipe execution options
[EXECUTION]
# Module name, single string or comma-separated list of valid module runner names
MODULE = sextractor_runner, sextractor_runner, setools_runner,
mccd_preprocessing_runner, mccd_fit_val_runner,
merge_starcat_runner, mccd_plots_runner
# Run mode, SMP or MPI
MODE = SMP
## ShapePipe file handling options
[FILE]
# Log file master name, optional, default: shapepipe
LOG_NAME = log_sp
# Runner log file name, optional, default: shapepipe_runs
RUN_LOG_NAME = log_run_sp
# Input directory, containing input files, single string or list of names with length matching FILE_PATTERN
INPUT_DIR = .
# Output directory
OUTPUT_DIR = $SP_RUN/output
## ShapePipe job handling options
[JOB]
# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial
SMP_BATCH_SIZE = 4
# Timeout value (optional), default is None, i.e. no timeout limit applied
TIMEOUT = 96:00:00
## Module options
## Detection on tile
[SEXTRACTOR_RUNNER_RUN_1]
INPUT_DIR = last:get_images_runner_run_1, last:uncompress_fits_runner, last:mask_runner_run_1
FILE_PATTERN = CFIS_image, CFIS_weight, pipeline_flag
FILE_EXT = .fits, .fits, .fits
# NUMBERING_SCHEME (optional) string with numbering pattern for input files
NUMBERING_SCHEME = -000-000
# SExtractor executable path
EXEC_PATH = sex
# SExtractor configuration files
DOT_SEX_FILE = $SP_CONFIG/default_tile.sex
DOT_PARAM_FILE = $SP_CONFIG/default.param
DOT_CONV_FILE = $SP_CONFIG/default.conv
# Use input weight image if True
WEIGHT_IMAGE = True
# Use input flag image if True
FLAG_IMAGE = True
# Use input PSF file if True
PSF_FILE = False
# Use distinct image for detection (SExtractor in
# dual-image mode) if True
DETECTION_IMAGE = False
# Distinct weight image for detection (SExtractor
# in dual-image mode)
DETECTION_WEIGHT = False
ZP_FROM_HEADER = False
BKG_FROM_HEADER = False
# Type of image check (optional), default not used, can be a list of
# BACKGROUND, BACKGROUND_RMS, INIBACKGROUND,
# MINIBACK_RMS, -BACKGROUND, #FILTERED,
# OBJECTS, -OBJECTS, SEGMENTATION, APERTURES
#CHECKIMAGE = BACKGROUND
# File name suffix for the output sextractor files (optional)
SUFFIX = sexcat
## Post-processing
# Necessary for tiles, to enable multi-exposure processing
MAKE_POST_PROCESS = True
# Multi-epoch mode: Path to file with single-exposure WCS header information
LOG_WCS = $SP_RUN/output/log_exp_headers.sqlite
# World coordinate keywords, SExtractor output. Format: KEY_X,KEY_Y
WORLD_POSITION = XWIN_WORLD,YWIN_WORLD
# Number of pixels in x,y of a CCD. Format: Nx,Ny
CCD_SIZE = 33,2080,1,4612
## Detection on single exposures
[SEXTRACTOR_RUNNER_RUN_2]
INPUT_DIR = last:split_exp_runner, last:mask_runner_run_2
# Input from two modules
INPUT_MODULE = split_exp_runner, mask_runner_run_2
# Read pipeline flag files created by mask module
FILE_PATTERN = image, weight, pipeline_flag
NUMBERING_SCHEME = -0000000-0
# SExtractor executable path
EXEC_PATH = sex
# SExtractor configuration files
DOT_SEX_FILE = $SP_CONFIG/default_exp.sex
DOT_PARAM_FILE = $SP_CONFIG//default.param
DOT_CONV_FILE = $SP_CONFIG/default.conv
# Use input weight image if True
WEIGHT_IMAGE = True
# Use input flag image if True
FLAG_IMAGE = True
# Use input PSF file if True
PSF_FILE = False
# Use distinct image for detection (SExtractor in
# dual-image mode) if True.
DETECTION_IMAGE = False
# Distinct weight image for detection (SExtractor
# in dual-image mode) if True
DETECTION_WEIGHT = False
# Se to True if photometry zero-point is to be read from exposure image header
ZP_FROM_HEADER = True
# If ZP_FROM_HEADER is True, zero-point key name
ZP_KEY = PHOTZP
# Background information from image header.
# If BKG_FROM_HEADER is True, background value will be read from header.
# In that case, the value of BACK_TYPE will be set atomatically to MANUAL.
# This is used e.g. for the LSB images.
BKG_FROM_HEADER = False
# LSB images:
# BKG_FROM_HEADER = True
# If BKG_FROM_HEADER is True, background value key name
# LSB images:
#BKG_KEY = IMMODE
# Type of image check (optional), default not used, can be a list of
# BACKGROUND, BACKGROUND_RMS, INIBACKGROUND, MINIBACK_RMS, -BACKGROUND,
# FILTERED, OBJECTS, -OBJECTS, SEGMENTATION, APERTURES
CHECKIMAGE = BACKGROUND
# File name suffix for the output sextractor files (optional) SUFFIX = tile
SUFFIX = sexcat
## Post-processing
# Not required for single exposures
MAKE_POST_PROCESS = FALSE
[SETOOLS_RUNNER]
INPUT_MODULE = sextractor_runner_run_2
# Note: Make sure this doe not match the SExtractor background images
# (sexcat_background*)
FILE_PATTERN = sexcat
NUMBERING_SCHEME = -0000000-0
# SETools config file
SETOOLS_CONFIG_PATH = $SP_CONFIG/star_selection.setools
[MCCD_PREPROCESSING_RUNNER]
# Path to MCCD config file
CONFIG_PATH = $SP_CONFIG/config_MCCD.ini
MODE = FIT_VALIDATION
VERBOSE = False
INPUT_DIR = last:setools_runner
# Input are individual CCDs, thus single-exposure single-HDU images
NUMBERING_SCHEME = -0000000-0
FILE_PATTERN = star_split_ratio_80, star_split_ratio_20
FILE_EXT = .fits, .fits
[MCCD_FIT_VAL_RUNNER]
# Path to MCCD config file
CONFIG_PATH = $SP_CONFIG/config_MCCD.ini
MODE = FIT_VALIDATION
VERBOSE = False
NUMBERING_SCHEME = -0000000
INPUT_DIR = last:mccd_preprocessing_runner, last:mccd_fit_val_runner
# Use test stars (20% random sub-sample not used for PSF model).
# To use training stars (80% random sub-sample used for PSF model):
# change test_star_selection to train_star_selection
FILE_PATTERN = fitted_model, test_star_selection
[MERGE_STARCAT_RUNNER]
INPUT_DIR = last:mccd_fit_val_runner
# Path to MCCD config file
CONFIG_PATH = $SP_CONFIG/config_MCCD.ini
MODE = FIT_VALIDATION
VERBOSE = False
PSF_MODEL = mccd
NUMBERING_SCHEME = -0000000
[MCCD_PLOTS_RUNNER]
# Path to MCCD config file
CONFIG_PATH = $SP_CONFIG/config_MCCD.ini
MODE = FIT_VALIDATION
VERBOSE = False
# Now MCCD has created a focal-plane PSF model, including all CCDS per images,
# thus single-exposure files
NUMBERING_SCHEME = -0000000
PSF = mccd
PLOT_MEANSHAPES = True
# X_GRID, Y_GRID: correspond to the number of bins in each direction of each
# CCD from the focal plane. Ex: each CCD will be binned in 5x10 regular grids.
X_GRID = 5
Y_GRID = 10
PLOT_HISTOGRAMS = True
# REMOVE_OUTLIERS: Remove validated stars that are outliers in terms of shape
# before drawing the plots.
REMOVE_OUTLIERS = False
PLOT_RHO_STATS = False
# RHO_STATS_STYLE: can be 'HSC' or 'DES'
RHO_STATS_STYLE = HSC