Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ssoft column definition #136

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
378 changes: 378 additions & 0 deletions fink_utils/sso/ssoft.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,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",
},
}
Loading