-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathssoft.py
378 lines (373 loc) · 13.6 KB
/
ssoft.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
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# Copyright 2024 AstroLab Software
# Author: Julien Peloton
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Contains definition for the SSO Fink Table"""
COLUMNS = {
"ssnamenr": {
"type": "str",
"description": "Designation (name or number) of the object from MPC archive as given by ZTF",
},
"sso_name": {
"type": "str",
"description": "Official name or provisional designation of the SSO",
},
"sso_number": {"type": "int", "description": "IAU number of the SSO"},
"last_jd": {
"type": "double",
"description": "Julian Date for the last detection in Fink, in UTC",
},
"H_1": {
"type": "double",
"description": "Absolute magnitude for the ZTF filter band g",
},
"H_2": {
"type": "double",
"description": "Absolute magnitude for the ZTF filter band r",
},
"err_H_1": {
"type": "double",
"description": "Uncertainty on the absolute magnitude for the ZTF filter band g",
},
"err_H_2": {
"type": "double",
"description": "Uncertainty on the absolute magnitude for the ZTF filter band r",
},
"min_phase": {
"type": "double",
"description": "Minimum phase angle of the observations used to compute the phase function, in degree",
},
"min_phase_1": {
"type": "double",
"description": "Minimum phase angle of the observations used to compute the phase function for the ZTF filter band g, in degree",
},
"min_phase_2": {
"type": "double",
"description": "Minimum phase angle of the observations used to compute the phase function for the ZTF filter band r, in degree",
},
"max_phase": {
"type": "double",
"description": "Maximum phase angle of the observations used to compute the phase function, in degree",
},
"max_phase_1": {
"type": "double",
"description": "Maximum phase angle of the observations used to compute the phase function for the ZTF filter band g, in degree",
},
"max_phase_2": {
"type": "double",
"description": "Maximum phase angle of the observations used to compute the phase function for the ZTF filter band r, in degree",
},
"chi2red": {"type": "double", "description": "Reduced chi-square of the fit"},
"rms": {"type": "double", "description": "RMS of the fit, in magnitude"},
"rms_1": {
"type": "double",
"description": "RMS of the fit for the filter band g, in magnitude",
},
"rms_2": {
"type": "double",
"description": "RMS of the fit for the filter band r, in magnitude",
},
"median_error_phot": {
"type": "double",
"description": "Median of the 1-sigma uncertainty on the measurements, in magnitude",
},
"median_error_phot_1": {
"type": "double",
"description": "Median of the 1-sigma uncertainty on the measurements for the filter band g, in magnitude",
},
"median_error_phot_2": {
"type": "double",
"description": "Median of the 1-sigma uncertainty on the measurements for the filter band r, in magnitude",
},
"mean_astrometry": {
"type": "double",
"description": "Astrometry: mean of the angular separation between observations and ephemerides, in arcsecond",
},
"std_astrometry": {
"type": "double",
"description": "Astrometry: standard deviation of the angular separation between observations and ephemerides, in arcsecond",
},
"skew_astrometry": {
"type": "double",
"description": "Astrometry: skewness of the angular separation between observations and ephemerides",
},
"kurt_astrometry": {
"type": "double",
"description": "Astrometry: kurtosis of the angular separation between observations and ephemerides",
},
"period": {
"type": "double",
"description": "Sidereal period estimated, in hour. Available only from 2024.10",
},
"period_chi2red": {
"type": "double",
"description": "Reduced chi-square for the period estimation. Available only from 2024.10",
},
"n_obs": {"type": "int", "description": "Number of observations in Fink"},
"n_obs_1": {
"type": "int",
"description": "Number of observations for the ZTF filter band g in Fink",
},
"n_obs_2": {
"type": "int",
"description": "Number of observations for the ZTF filter band r in Fink",
},
"n_days": {
"type": "int",
"description": "Number of days between the first and the last observations in Fink",
},
"n_days_1": {
"type": "int",
"description": "Number of days between the first and the last observations in Fink, for the ZTF filter band g",
},
"n_days_2": {
"type": "int",
"description": "Number of days between the first and the last observations in Fink, for the ZTF filter band r",
},
"fit": {
"type": "int",
"description": "Code to assess the quality of the fit: 0: success, 1: bad_vals, 2: MiriadeFail, 3: RunTimError, 4: LinalgError",
},
"status": {
"type": "int",
"description": "Code for quality `status` (least square convergence): -2: failure, -1 : improper input parameters status returned from MINPACK, 0 : the maximum number of function evaluations is exceeded, 1 : gtol termination condition is satisfied, 2 : ftol termination condition is satisfied, 3 : xtol termination condition is satisfied, 4 : Both ftol and xtol termination conditions are satisfied.",
},
"flag": {"type": "int", "description": "TBD"},
"version": {"type": "str", "description": "Version of the SSOFT YYYY.MM"},
}
COLUMNS_SSHG1G2 = {
"G1_1": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band g",
},
"G1_2": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band r",
},
"G2_1": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band g",
},
"G2_2": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band r",
},
"a_b": {"type": "double", "description": "a/b ratio of the ellipsoid (a>=b>=c)."},
"a_c": {"type": "double", "description": "a/c ratio of the ellipsoid (a>=b>=c)."},
"phi0": {
"type": "double",
"description": "Initial rotation phase at reference time t0, in radian",
},
"alpha0": {
"type": "double",
"description": "Right ascension of the spin axis (EQJ2000), in degree",
},
"delta0": {
"type": "double",
"description": "Declination of the spin axis (EQJ2000), in degree",
},
"alpha0_alt": {
"type": "double",
"description": "Flipped `alpha0`: (`alpha0` + 180) modulo 360, in degree",
},
"delta0_alt": {
"type": "double",
"description": "Flipped `delta0`: -`delta0`, in degree",
},
"obliquity": {
"type": "double",
"description": "Obliquity of the spin axis, in degree",
},
"err_G1_1": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band g",
},
"err_G1_2": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band r",
},
"err_G2_1": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band g",
},
"err_G2_2": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band r",
},
"err_a_b": {"type": "double", "description": "Uncertainty on a/b"},
"err_a_c": {"type": "double", "description": "Uncertainty on a/c"},
"err_phi0": {
"type": "double",
"description": "Uncertainty on the initial rotation phase, in radian",
},
"err_alpha0": {
"type": "double",
"description": "Uncertainty on the right ascension of the spin axis (EQJ2000), in degree",
},
"err_delta0": {
"type": "double",
"description": "Uncertainty on the declination of the spin axis (EQJ2000), in degree",
},
"err_period": {
"type": "double",
"description": "Uncertainty on the sidereal period, in hour. Available only from 2024.10",
},
"max_cos_lambda": {
"type": "double",
"description": "Maximum of the absolute value of the cosine for the aspect angle",
},
"mean_cos_lambda": {
"type": "double",
"description": "Mean of the absolute value of the cosine for the aspect angle",
},
"min_cos_lambda": {
"type": "double",
"description": "Minimum of the absolute value of the cosine for the aspect angle",
},
}
COLUMNS_SHG1G2 = {
"G1_1": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band g",
},
"G1_2": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band r",
},
"G2_1": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band g",
},
"G2_2": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band r",
},
"R": {"type": "double", "description": "Oblateness of the object"},
"a_b": {
"type": "double",
"description": "a/b ratio of the ellipsoid (a>=b>=c). Estimation based on the fit residuals and the oblateness.",
},
"a_c": {
"type": "double",
"description": "a/c ratio of the ellipsoid (a>=b>=c). Estimation based on the fit residuals and the oblateness.",
},
"alpha0": {
"type": "double",
"description": "Right ascension of the spin axis (EQJ2000), in degree",
},
"delta0": {
"type": "double",
"description": "Declination of the spin axis (EQJ2000), in degree",
},
"alpha0_alt": {
"type": "double",
"description": "Flipped `alpha0`: (`alpha0` + 180) modulo 360, in degree",
},
"delta0_alt": {
"type": "double",
"description": "Flipped `delta0`: -`delta0`, in degree",
},
"obliquity": {
"type": "double",
"description": "Obliquity of the spin axis, in degree",
},
"err_G1_1": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band g",
},
"err_G1_2": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band r",
},
"err_G2_1": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band g",
},
"err_G2_2": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band r",
},
"err_R": {"type": "double", "description": "Uncertainty on the oblateness"},
"err_alpha0": {
"type": "double",
"description": "Uncertainty on the right ascension of the spin axis (EQJ2000), in degree",
},
"err_delta0": {
"type": "double",
"description": "Uncertainty on the declination of the spin axis (EQJ2000), in degree",
},
"max_cos_lambda": {
"type": "double",
"description": "Maximum of the absolute value of the cosine for the aspect angle",
},
"mean_cos_lambda": {
"type": "double",
"description": "Mean of the absolute value of the cosine for the aspect angle",
},
"min_cos_lambda": {
"type": "double",
"description": "Minimum of the absolute value of the cosine for the aspect angle",
},
}
COLUMNS_HG1G2 = {
"G1_1": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band g",
},
"G1_2": {
"type": "double",
"description": "G1 phase parameter for the ZTF filter band r",
},
"G2_1": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band g",
},
"G2_2": {
"type": "double",
"description": "G2 phase parameter for the ZTF filter band r",
},
"err_G1_1": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band g",
},
"err_G1_2": {
"type": "double",
"description": "Uncertainty on the G1 phase parameter for the ZTF filter band r",
},
"err_G2_1": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band g",
},
"err_G2_2": {
"type": "double",
"description": "Uncertainty on the G2 phase parameter for the ZTF filter band r",
},
}
COLUMNS_HG = {
"G_1": {
"type": "double",
"description": "G phase parameter for the ZTF filter band g",
},
"G_2": {
"type": "double",
"description": "G phase parameter for the ZTF filter band r",
},
"err_G_1": {
"type": "double",
"description": "Uncertainty on the G phase parameter for the ZTF filter band g",
},
"err_G_2": {
"type": "double",
"description": "Uncertainty on the G phase parameter for the ZTF filter band r",
},
}