Skip to content

Commit 7b68092

Browse files
authored
Merge pull request #79 from dirac-institute/update_config
Update generic_search_config.yaml
2 parents 7ae7f5e + 3514437 commit 7b68092

File tree

1 file changed

+164
-39
lines changed

1 file changed

+164
-39
lines changed

scripts/generic_search_config.yaml

Lines changed: 164 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,178 @@
1-
center_thresh: 0.0
2-
chunk_size: 1000000
3-
clip_negative: false
4-
cluster_eps: 120.0
5-
cluster_type: nn_start_end
6-
cluster_v_scale: 1.0
7-
debug: true
8-
do_clustering: true
9-
do_mask: true
10-
do_stamp_filter: false
1+
# ======================================================================
2+
# Core Configuration
3+
# ======================================================================
4+
5+
# A dictionary mapping filter names to a color scale factor to use for those images.
6+
color_scale: null
7+
8+
# Number of bytes to use for encoding pixel values on GPU. -1 means no encoding.
119
encode_num_bytes: -1
12-
gpu_filter: true
10+
11+
# Configuration dictionary for the trajectory generator.
1312
generator_config:
1413
angle_units: degree
1514
angles:
16-
- 90
17-
- -90
18-
- 64
15+
- 90
16+
- -90
17+
- 64
1918
given_ecliptic: null
2019
name: EclipticCenteredSearch
2120
velocities:
22-
- 25.0
23-
- 225.0
24-
- 64
21+
- 25.0
22+
- 225.0
23+
- 64
2524
velocity_units: pix / d
26-
im_filepath: null
27-
legacy_filename: null
28-
lh_level: 5.0
29-
max_lh: 10000.0
30-
num_obs: 7
31-
peak_offset:
32-
- 2.0
33-
- 2.0
25+
26+
# The maximum fraction of masked pixels allowed before an input image is dropped.
27+
max_masked_pixels: 0.5
28+
29+
# The default standard deviation of the Gaussian PSF in pixels (if not provided in the data).
3430
psf_val: 1.4
35-
res_filepath: /sdf/home/c/colinc/rubin-user/20X20_patch250060
31+
32+
# The filename to which results will be saved.
3633
result_filename: /sdf/home/c/colinc/rubin-user/20X20_patch250060/full_results.ecsv
37-
results_per_pixel: 4
38-
save_all_stamps: False
39-
sigmaG_lims:
40-
- 25
41-
- 75
42-
stamp_radius: 50
43-
coadds:
44-
- sum
45-
- mean
46-
- median
47-
- weighted
48-
stamp_type: sum
49-
track_filtered: false
34+
35+
# The x pixel bounds for the search starting location (None = use every pixel).
5036
x_pixel_bounds: null
37+
38+
# If not None, the number of x pixels beyond the image bounds to use for starting coordinates.
5139
x_pixel_buffer: null
40+
41+
# The y pixel bounds for the search starting location (None = use every pixel).
5242
y_pixel_bounds: null
43+
44+
# If not None, the number of y pixels beyond the image bounds to use for starting coordinates.
5345
y_pixel_buffer: null
46+
47+
# ======================================================================
48+
# Filtering Configuration
49+
# ======================================================================
50+
51+
# If True remove all negative values prior to sigmaG computing the percentiles.
52+
clip_negative: false
53+
54+
# If True, applies a CNN filter to the stamps.
55+
cnn_filter: false
56+
57+
# The path to the CNN model file to use for filtering.
58+
cnn_model: null
59+
60+
# The type of coadd to use for CNN filtering ('mean', 'median', or 'sum').
61+
cnn_coadd_type: mean
62+
63+
# The radius (in pixels) of the stamp to use for CNN filtering if cnn_filter is True.
64+
cnn_stamp_radius: 49
65+
66+
# The type of CNN model to use ('resnet18', 'resnet34', etc.) if cnn_filter is True.
67+
cnn_model_type: resnet18
68+
69+
# If True, computes the psi and phi curves and saves them with the results.
70+
generate_psi_phi: true
71+
72+
# If True, performs initial sigmaG filtering on GPU.
73+
gpu_filter: true
74+
75+
# The log-likelihood level above which results are kept.
76+
lh_level: 5.0
77+
78+
# The maximum number of results to save after all filtering.
79+
max_results: 100000
80+
81+
# The threshold for considering two observations as near duplicates (in pixels).
82+
near_dup_thresh: 10
83+
84+
# The minimum number of valid observations for the trajectory to be accepted.
85+
num_obs: 7
86+
87+
# Maximum allowed offset (in pixels) between predicted and detected peak positions.
88+
peak_offset_max: null
89+
90+
# If True, applies line clustering to the predicted lines.
91+
pred_line_cluster: false
92+
93+
# Parameters for the line prediction model.
94+
pred_line_params:
95+
- 4.0
96+
- 2
97+
- 60
98+
99+
# The maximum number of results to return from the GPU per pixel.
100+
results_per_pixel: 4
101+
102+
# If True, apply sigmaG filtering.
103+
sigmaG_filter: true
104+
105+
# The lower and upper limits for sigmaG filtering.
106+
sigmaG_lims:
107+
- 25
108+
- 75
109+
110+
# If True, track the filtered objects in the results table.
111+
track_filtered: false
112+
113+
# ======================================================================
114+
# Stamps Configuration
115+
# ======================================================================
116+
117+
# The list of coadd images to compute ('mean', 'median', 'sum', 'weighted').
118+
coadds:
119+
- sum
120+
- mean
121+
- median
122+
- weighted
123+
124+
# If True, generate an additional coadd for each calendar date.
125+
nightly_coadds: false
126+
127+
# The radius (in pixels) of the stamp to extract.
128+
stamp_radius: 50
129+
130+
# The type of stamp to extract.
131+
stamp_type: sum
132+
133+
# ======================================================================
134+
# Clustering Configuration
135+
# ======================================================================
136+
137+
# The epsilon parameter for clustering (in pixels).
138+
cluster_eps: 120.0
139+
140+
# The type of clustering algorithm to use (if do_clustering = True).
141+
cluster_type: nn_start_end
142+
143+
# The weight of differences in velocity relative to differences in distances during clustering.
144+
cluster_v_scale: 1.0
145+
146+
# If true, perform clustering on the results.
147+
do_clustering: true
148+
149+
# ======================================================================
150+
# Output Configuration
151+
# ======================================================================
152+
153+
# If True, compute RA and Dec for each result.
154+
compute_ra_dec: true
155+
156+
# List of result table columns to drop.
157+
drop_columns: []
158+
159+
# If True, save all stamps to the results.
160+
save_all_stamps: false
161+
162+
# If True, save the configuration used for processing.
163+
save_config: true
164+
165+
# List of columns to save in separate files.
166+
separate_col_files:
167+
- all_stamps
168+
169+
# ======================================================================
170+
# Other Configuration
171+
# ======================================================================
172+
173+
# If True, only use the CPU for processing, even if a GPU is available.
174+
cpu_only: false
175+
176+
# Run with debug logging enabled.
177+
debug: true
178+

0 commit comments

Comments
 (0)