From 9a6884c9b7d4cbd9cad15d26d61043bce04bc166 Mon Sep 17 00:00:00 2001 From: Brianna Smart Date: Thu, 14 May 2026 13:46:59 -0700 Subject: [PATCH] Update schema to v11.1 --- .../packet/schema/11/1/lsst.v11_1.alert.avsc | 24 + .../11/1/lsst.v11_1.diaForcedSource.avsc | 102 ++ .../schema/11/1/lsst.v11_1.diaObject.avsc | 702 ++++++++++++++ .../schema/11/1/lsst.v11_1.diaSource.avsc | 874 ++++++++++++++++++ .../schema/11/1/lsst.v11_1.mpc_orbits.avsc | 478 ++++++++++ .../schema/11/1/lsst.v11_1.ssObject.avsc | 668 +++++++++++++ .../schema/11/1/lsst.v11_1.ssSource.avsc | 335 +++++++ .../packet/schema/11/1/sample_data/alert.json | 108 +++ .../schema/11/1/sample_data/fakeAlert.avro | 5 + .../schema/11/1/sample_data/generate.py | 10 + python/lsst/alert/packet/schema/latest.txt | 2 +- 11 files changed, 3307 insertions(+), 1 deletion(-) create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.alert.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaForcedSource.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaObject.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaSource.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.mpc_orbits.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssObject.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssSource.avsc create mode 100644 python/lsst/alert/packet/schema/11/1/sample_data/alert.json create mode 100644 python/lsst/alert/packet/schema/11/1/sample_data/fakeAlert.avro create mode 100644 python/lsst/alert/packet/schema/11/1/sample_data/generate.py diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.alert.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.alert.avsc new file mode 100644 index 0000000..0d854fa --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.alert.avsc @@ -0,0 +1,24 @@ +{ + "namespace": "lsst.v11_1", + "type": "record", + "name": "alert", + "doc": "Rubin Avro alert schema v11.1", + "fields": [ + {"name": "diaSourceId", "type": "long", "doc": "Identifier of the triggering DiaSource"}, + {"name": "observation_reason", "type": ["null", "string"], "doc": "Scheduler reason for the image containing this diaSource (RTN-097).", "default": null}, + {"name": "target_name", "type": ["null", "string"], "doc": "Scheduler target for the image containing this diaSource (RTN-097).", "default": null}, + {"name": "diaSource", "type": "lsst.v11_1.diaSource"}, + {"name": "prvDiaSources", "type": ["null", { + "type": "array", + "items": "lsst.v11_1.diaSource"}], "default": null}, + {"name": "prvDiaForcedSources", "type": ["null", { + "type": "array", + "items": "lsst.v11_1.diaForcedSource"}], "default": null}, + {"name": "diaObject", "type": ["null", "lsst.v11_1.diaObject"], "default": null}, + {"name": "ssSource", "type": ["null", "lsst.v11_1.ssSource"], "default": null}, + {"name": "mpc_orbits", "type": ["null", "lsst.v11_1.mpc_orbits"], "default": null}, + {"name": "cutoutDifference", "type": ["null", "bytes"], "default": null}, + {"name": "cutoutScience", "type": ["null", "bytes"], "default": null}, + {"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null} + ] +} diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaForcedSource.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaForcedSource.avsc new file mode 100644 index 0000000..58c1aac --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaForcedSource.avsc @@ -0,0 +1,102 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "diaForcedSource", + "fields": [ + { + "doc": "Unique id.", + "name": "diaForcedSourceId", + "type": "long" + }, + { + "doc": "Id of the DiaObject that this DiaForcedSource was associated with.", + "name": "diaObjectId", + "type": "long" + }, + { + "doc": "Right ascension coordinate of the position of the DiaObject [deg].", + "name": "ra", + "type": "double" + }, + { + "doc": "Declination coordinate of the position of the DiaObject [deg].", + "name": "dec", + "type": "double" + }, + { + "doc": "Id of the visit where this forcedSource was measured.", + "name": "visit", + "type": "long" + }, + { + "doc": "Id of the detector where this forcedSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.", + "name": "detector", + "type": "int" + }, + { + "default": null, + "doc": "Point Source model flux [nJy].", + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfFlux [nJy].", + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time [d].", + "name": "midpointMjdTai", + "type": "double" + }, + { + "default": null, + "doc": "Forced photometry flux for a point source model measured on the visit image centered at the DiaObject position [nJy].", + "name": "scienceFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of scienceFlux [nJy].", + "name": "scienceFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Filter band this source was observed with.", + "name": "band", + "type": [ + "null", + "string" + ] + }, + { + "doc": "Time when this record was generated, expressed as Modified Julian Date, International Atomic Time.", + "name": "timeProcessedMjdTai", + "type": "double" + }, + { + "default": null, + "doc": "Time when this record was marked invalid, expressed as Modified Julian Date, International Atomic Time.", + "name": "timeWithdrawnMjdTai", + "type": [ + "null", + "double" + ] + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaObject.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaObject.avsc new file mode 100644 index 0000000..cefabb0 --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaObject.avsc @@ -0,0 +1,702 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "diaObject", + "fields": [ + { + "doc": "Unique identifier of this DiaObject.", + "name": "diaObjectId", + "type": "long" + }, + { + "doc": "Processing time when validity of this diaObject starts, expressed as Modified Julian Date, International Atomic Time.", + "name": "validityStartMjdTai", + "type": "double" + }, + { + "doc": "Right ascension coordinate of the position of the object [deg].", + "name": "ra", + "type": "double" + }, + { + "default": null, + "doc": "Angular error of Right Ascension (\u2202RA*cos(Dec)) [deg].", + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the position of the object [deg].", + "name": "dec", + "type": "double" + }, + { + "default": null, + "doc": "Angular error of dec [deg].", + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between Right Ascension (RA*cos(Dec)) and dec [deg**2].", + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for u filter [nJy].", + "name": "u_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of u_psfFluxMean [nJy].", + "name": "u_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of u_psfFlux [nJy].", + "name": "u_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of u-band data points.", + "name": "u_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for u filter [nJy].", + "name": "u_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of u_fpFluxMean [nJy].", + "name": "u_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for g filter [nJy].", + "name": "g_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of g_psfFluxMean [nJy].", + "name": "g_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of g_psfFlux [nJy].", + "name": "g_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of g-band data points.", + "name": "g_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for g filter [nJy].", + "name": "g_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of g_fpFluxMean [nJy].", + "name": "g_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for r filter [nJy].", + "name": "r_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of r_psfFluxMean [nJy].", + "name": "r_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of r_psfFlux [nJy].", + "name": "r_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of r-band data points.", + "name": "r_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for r filter [nJy].", + "name": "r_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of r_fpFluxMean [nJy].", + "name": "r_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for i filter [nJy].", + "name": "i_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of i_psfFluxMean [nJy].", + "name": "i_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of i_psfFlux [nJy].", + "name": "i_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of i-band data points.", + "name": "i_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for i filter [nJy].", + "name": "i_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of i_fpFluxMean [nJy].", + "name": "i_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for z filter [nJy].", + "name": "z_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of z_psfFluxMean [nJy].", + "name": "z_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of z_psfFlux [nJy].", + "name": "z_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of z-band data points.", + "name": "z_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for z filter [nJy].", + "name": "z_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of z_fpFluxMean [nJy].", + "name": "z_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for y filter [nJy].", + "name": "y_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of y_psfFluxMean [nJy].", + "name": "y_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of y_psfFlux [nJy].", + "name": "y_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of y-band data points.", + "name": "y_psfFluxNdata", + "type": "int" + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for y filter [nJy].", + "name": "y_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of y_fpFluxMean [nJy].", + "name": "y_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for u filter [nJy].", + "name": "u_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of u_scienceFluxMean [nJy].", + "name": "u_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for g filter [nJy].", + "name": "g_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of g_scienceFluxMean [nJy].", + "name": "g_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for r filter [nJy].", + "name": "r_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of r_scienceFluxMean [nJy].", + "name": "r_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for i filter [nJy].", + "name": "i_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of i_scienceFluxMean [nJy].", + "name": "i_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for z filter [nJy].", + "name": "z_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of z_scienceFluxMean [nJy].", + "name": "z_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for y filter [nJy].", + "name": "y_scienceFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of y_scienceFluxMean [nJy].", + "name": "y_scienceFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed u band fluxes [nJy].", + "name": "u_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed u band fluxes [nJy].", + "name": "u_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between u band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "u_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the u band flux errors [nJy].", + "name": "u_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed g band fluxes [nJy].", + "name": "g_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed g band fluxes [nJy].", + "name": "g_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between g band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "g_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the g band flux errors [nJy].", + "name": "g_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed r band fluxes [nJy].", + "name": "r_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed r band fluxes [nJy].", + "name": "r_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between r band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "r_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the r band flux errors [nJy].", + "name": "r_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed i band fluxes [nJy].", + "name": "i_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed i band fluxes [nJy].", + "name": "i_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between i band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "i_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the i band flux errors [nJy].", + "name": "i_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed z band fluxes [nJy].", + "name": "z_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed z band fluxes [nJy].", + "name": "z_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between z band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "z_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the z band flux errors [nJy].", + "name": "z_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum observed y band fluxes [nJy].", + "name": "y_psfFluxMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum observed y band fluxes [nJy].", + "name": "y_psfFluxMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum slope between y band flux obsevations max(delta_flux/delta_time) [nJy/d].", + "name": "y_psfFluxMaxSlope", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the y band flux errors [nJy].", + "name": "y_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Time of the first diaSource, expressed as Modified Julian Date, International Atomic Time.", + "name": "firstDiaSourceMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Time of the most recent non-forced DIASource for this object, expressed as Modified Julian Date, International Atomic Time.", + "name": "lastDiaSourceMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Total number of DiaSources associated with this DiaObject.", + "name": "nDiaSources", + "type": "int" + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaSource.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaSource.avsc new file mode 100644 index 0000000..f965995 --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.diaSource.avsc @@ -0,0 +1,874 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "diaSource", + "fields": [ + { + "doc": "Unique identifier of this DiaSource.", + "name": "diaSourceId", + "type": "long" + }, + { + "doc": "Id of the visit where this diaSource was measured.", + "name": "visit", + "type": "long" + }, + { + "doc": "Id of the detector where this diaSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.", + "name": "detector", + "type": "int" + }, + { + "default": null, + "doc": "Id of the diaObject this source was associated with, if any. If not, it is set to NULL (each diaSource will be associated with either a diaObject or ssObject).", + "name": "diaObjectId", + "type": [ + "null", + "long" + ] + }, + { + "default": null, + "doc": "Id of the ssObject this source was associated with, if any. If not, it is set to NULL (each diaSource will be associated with either a diaObject or ssObject).", + "name": "ssObjectId", + "type": [ + "null", + "long" + ] + }, + { + "default": null, + "doc": "Id of the parent diaSource this diaSource has been deblended from, if any.", + "name": "parentDiaSourceId", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Effective mid-visit time for this diaSource, expressed as Modified Julian Date, International Atomic Time [d].", + "name": "midpointMjdTai", + "type": "double" + }, + { + "default": null, + "doc": "Effective exposure time for this diaSource [s].", + "name": "exposureTime", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of the center of this diaSource [deg].", + "name": "ra", + "type": "double" + }, + { + "default": null, + "doc": "Angular error of Right Ascension (\u2202RA*cos(Dec)) [deg].", + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the center of this diaSource [deg].", + "name": "dec", + "type": "double" + }, + { + "default": null, + "doc": "Angular error of dec [deg].", + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between Right Ascension (RA*cos(Dec)) and dec [deg**2].", + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "x position computed by a centroiding algorithm [pixel].", + "name": "x", + "type": "float" + }, + { + "default": null, + "doc": "Uncertainty of x [pixel].", + "name": "xErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "y position computed by a centroiding algorithm [pixel].", + "name": "y", + "type": "float" + }, + { + "default": null, + "doc": "Uncertainty of y [pixel].", + "name": "yErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "General centroid algorithm failure flag; set if anything went wrong when fitting the centroid. Another centroid flag field should also be set to provide more information.", + "name": "centroid_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Flux in a 12 pixel radius aperture on the difference image [nJy].", + "name": "apFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated uncertainty of apFlux [nJy].", + "name": "apFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "General aperture flux algorithm failure flag; set if anything went wrong when measuring aperture fluxes. Another apFlux flag field should also be set to provide more information.", + "name": "apFlux_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Aperture did not fit within measurement image.", + "name": "apFlux_flag_apertureTruncated", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Source was detected as significantly negative.", + "name": "isNegative", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "The signal-to-noise ratio at which this source was detected in the difference image.", + "name": "snr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Flux for Point Source model. Note this actually measures the flux difference between the template and the visit image [nJy].", + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfFlux [nJy].", + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log likelihood of the observed data given the point source model.", + "name": "psfLnL", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the point source model fit.", + "name": "psfChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points (pixels) used to fit the point source model.", + "name": "psfNdata", + "type": "int" + }, + { + "default": null, + "doc": "Failure to derive linear least-squares fit of psf model. Another psfFlux flag field should also be set to provide more information.", + "name": "psfFlux_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Object was too close to the edge of the image to use the full PSF model.", + "name": "psfFlux_flag_edge", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Not enough non-rejected pixels in data to attempt the fit.", + "name": "psfFlux_flag_noGoodPixels", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Flux for a trailed source model. Note this actually measures the flux difference between the template and the visit image [nJy].", + "name": "trailFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailFlux [nJy].", + "name": "trailFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Right ascension coordinate of centroid for trailed source model [deg].", + "name": "trailRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Angular error of trailRa (\u2202RA*cos(Dec)) [deg].", + "name": "trailRaErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Declination coordinate of centroid for trailed source model [deg].", + "name": "trailDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Angular error of trailDec [deg].", + "name": "trailDecErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood fit of trail length [arcsec].", + "name": "trailLength", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailLength [arcsec].", + "name": "trailLengthErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the trail direction (bearing) [deg].", + "name": "trailAngle", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailAngle [deg].", + "name": "trailAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the trailed source model fit.", + "name": "trailChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points (pixels) used to fit the trailed source model.", + "name": "trailNdata", + "type": "int" + }, + { + "default": null, + "doc": "Integer key indicating which algorithm was used to measure trailed source. 1=SDSSShape, 2=HSMShape.", + "name": "trailAlgorithm", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "This flag is set if a trailed source extends onto or past edge pixels.", + "name": "trail_flag_edge", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "The trailed source fitting algorithm failed.", + "name": "trail_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model [nJy].", + "name": "dipoleMeanFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleMeanFlux [nJy].", + "name": "dipoleMeanFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood value for the difference of absolute fluxes of the two lobes for a dipole model [nJy].", + "name": "dipoleFluxDiff", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleFluxDiff [nJy].", + "name": "dipoleFluxDiffErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood value for the lobe separation in dipole model [arcsec].", + "name": "dipoleLength", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the dipole direction (bearing, from negative to positive lobe) [deg].", + "name": "dipoleAngle", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the model fit.", + "name": "dipoleChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points (pixels) used to fit the model.", + "name": "dipoleNdata", + "type": "int" + }, + { + "default": null, + "doc": "Forced photometry flux for a point source model measured on the visit image centered at DiaSource position [nJy].", + "name": "scienceFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated uncertainty of scienceFlux [nJy].", + "name": "scienceFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Forced PSF photometry on science image failed. Another forced_PsfFlux flag field should also be set to provide more information.", + "name": "forced_PsfFlux_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Forced PSF flux on science image was too close to the edge of the image to use the full PSF model.", + "name": "forced_PsfFlux_flag_edge", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Forced PSF flux not enough non-rejected pixels in data to attempt the fit.", + "name": "forced_PsfFlux_flag_noGoodPixels", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Forced photometry flux for a point source model measured on the template image centered at the DiaObject position [nJy].", + "name": "templateFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of templateFlux [nJy].", + "name": "templateFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity [arcsec**2].", + "name": "ixx", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity [arcsec**2].", + "name": "iyy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity [arcsec**2].", + "name": "ixy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF [arcsec**2].", + "name": "ixxPSF", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF [arcsec**2].", + "name": "iyyPSF", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF [arcsec**2].", + "name": "ixyPSF", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "General source shape algorithm failure flag; set if anything went wrong when measuring the shape. Another shape flag field should also be set to provide more information.", + "name": "shape_flag", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "No pixels to measure shape.", + "name": "shape_flag_no_pixels", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Center not contained in footprint bounding box.", + "name": "shape_flag_not_contained", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "This source is a parent source; we should only be measuring on deblended children in difference imaging.", + "name": "shape_flag_parent_source", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "A measure of extendedness, computed by comparing an object's moment-based traced radius to the PSF moments. extendedness = 1 implies a high degree of confidence that the source is extended. extendedness = 0 implies a high degree of confidence that the source is point-like.", + "name": "extendedness", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Probability (0-1) that the diaSource is astrophysical, derived from a machine learning model.", + "name": "reliability", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Version of the reliability model.", + "name": "reliabilityVersion", + "type": [ + "null", + "string" + ] + }, + { + "default": null, + "doc": "Filter band this source was observed with.", + "name": "band", + "type": [ + "null", + "string" + ] + }, + { + "default": null, + "doc": "Source well fit by a dipole.", + "name": "isDipole", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Attempted to fit a dipole model to this source.", + "name": "dipoleFitAttempted", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Time when the image was processed and this DiaSource record was generated, expressed as Modified Julian Date, International Atomic Time.", + "name": "timeProcessedMjdTai", + "type": "double" + }, + { + "default": null, + "doc": "Time when this record was marked invalid, expressed as Modified Julian Date, International Atomic Time.", + "name": "timeWithdrawnMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Size of the square bounding box that fully contains the detection footprint [pixel].", + "name": "bboxSize", + "type": "int" + }, + { + "default": null, + "doc": "General pixel flags failure; set if anything went wrong when setting pixels flags from this footprint's mask. This implies that some pixelFlags for this source may be incorrectly set to False.", + "name": "pixelFlags", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Bad pixel in the DiaSource footprint.", + "name": "pixelFlags_bad", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Cosmic ray in the DiaSource footprint.", + "name": "pixelFlags_cr", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Cosmic ray in the 3x3 region around the centroid.", + "name": "pixelFlags_crCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Some of the source footprint is outside usable exposure region (masked EDGE or centroid off image).", + "name": "pixelFlags_edge", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "NO_DATA pixel in the source footprint.", + "name": "pixelFlags_nodata", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "NO_DATA pixel in the 3x3 region around the centroid.", + "name": "pixelFlags_nodataCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Interpolated pixel in the DiaSource footprint.", + "name": "pixelFlags_interpolated", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Interpolated pixel in the 3x3 region around the centroid.", + "name": "pixelFlags_interpolatedCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "DiaSource center is off image.", + "name": "pixelFlags_offimage", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Saturated pixel in the DiaSource footprint.", + "name": "pixelFlags_saturated", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Saturated pixel in the 3x3 region around the centroid.", + "name": "pixelFlags_saturatedCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "DiaSource's footprint includes suspect pixels.", + "name": "pixelFlags_suspect", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Suspect pixel in the 3x3 region around the centroid.", + "name": "pixelFlags_suspectCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Streak in the DiaSource footprint.", + "name": "pixelFlags_streak", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Streak in the 3x3 region around the centroid.", + "name": "pixelFlags_streakCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Injection in the DiaSource footprint.", + "name": "pixelFlags_injected", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Injection in the 3x3 region around the centroid.", + "name": "pixelFlags_injectedCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Template injection in the DiaSource footprint.", + "name": "pixelFlags_injected_template", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "Template injection in the 3x3 region around the centroid.", + "name": "pixelFlags_injected_templateCenter", + "type": [ + "null", + "boolean" + ] + }, + { + "default": null, + "doc": "This flag is set if the source is part of a glint trail.", + "name": "glint_trail", + "type": [ + "null", + "boolean" + ] + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.mpc_orbits.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.mpc_orbits.avsc new file mode 100644 index 0000000..665f96e --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.mpc_orbits.avsc @@ -0,0 +1,478 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "mpc_orbits", + "fields": [ + { + "doc": "Internal ID (generally not seen/used by the user)", + "name": "id", + "type": "int" + }, + { + "doc": "The primary provisional designation in unpacked form (e.g. 2008 AB).", + "name": "designation", + "type": "string" + }, + { + "doc": "The primary provisional designation in packed form (e.g. K08A00B)", + "name": "packed_primary_provisional_designation", + "type": "string" + }, + { + "doc": "The primary provisional designation in unpacked form (e.g. 2008 AB)", + "name": "unpacked_primary_provisional_designation", + "type": "string" + }, + { + "default": null, + "doc": "Details of the orbit solution in JSON form", + "name": "mpc_orb_jsonb", + "type": [ + "null", + "string" + ] + }, + { + "default": null, + "doc": "When this row was created", + "name": "created_at", + "type": [ + "null", + { + "logicalType": "timestamp-micros", + "type": "long" + } + ] + }, + { + "default": null, + "doc": "When this row was updated", + "name": "updated_at", + "type": [ + "null", + { + "logicalType": "timestamp-micros", + "type": "long" + } + ] + }, + { + "default": null, + "doc": "Orbit Type (Integer)", + "name": "orbit_type_int", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "U parameter", + "name": "u_param", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "number of oppositions", + "name": "nopp", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Arc length over total observations [days]", + "name": "arc_length_total", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Arc length over total observations *selected* [days]", + "name": "arc_length_sel", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Total number of all observations (optical + radar) available", + "name": "nobs_total", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Total number of all observations (optical + radar) selected for use in orbit fitting", + "name": "nobs_total_sel", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Semi Major Axis [au]", + "name": "a", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Pericenter Distance [au]", + "name": "q", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Eccentricity", + "name": "e", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Inclination [degrees]", + "name": "i", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Longitude of Ascending Node [degrees]", + "name": "node", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Argument of Pericenter [degrees]", + "name": "argperi", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Time from Pericenter Passage [days]", + "name": "peri_time", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Yarkovsky Component [10^(-10)*au/day^2]", + "name": "yarkovsky", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Solar-Radiation Pressure Component [m^2/ton]", + "name": "srp", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "A1 non-grav components [m^2/ton]", + "name": "a1", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "A2 non-grav components [m^2/ton]", + "name": "a2", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "A3 non-grav components [m^2/ton]", + "name": "a3", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "DT non-grav component", + "name": "dt", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Mean Anomaly [degrees]", + "name": "mean_anomaly", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Orbital Period [days]", + "name": "period", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Orbital Mean Motion [degrees per day]", + "name": "mean_motion", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Semi Major Axis [au]", + "name": "a_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Pericenter Distance [au]", + "name": "q_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Eccentricity", + "name": "e_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Inclination [degrees]", + "name": "i_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Longitude of Ascending Node [degrees]", + "name": "node_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Argument of Pericenter [degrees]", + "name": "argperi_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Time from Pericenter Passage [days]", + "name": "peri_time_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Yarkovsky Component [10^(-10)*au/day^2]", + "name": "yarkovsky_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Solar-Radiation Pressure Component [m^2/ton]", + "name": "srp_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on A1 non-grav components [m^2/ton]", + "name": "a1_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on A2 non-grav components [m^2/ton]", + "name": "a2_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on A3 non-grav components [m^2/ton]", + "name": "a3_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on DT non-grav component", + "name": "dt_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Mean Anomaly [degrees]", + "name": "mean_anomaly_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Orbital Period [days]", + "name": "period_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty on Orbital Mean Motion [degrees per day]", + "name": "mean_motion_unc", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Epoch of the Orbfit-Solution in MJD", + "name": "epoch_mjd", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "H-Magnitude", + "name": "h", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "G-Slope Parameter", + "name": "g", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "unnormalized rms of the fit [arcsec]", + "name": "not_normalized_rms", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "rms of the fit [unitless]", + "name": "normalized_rms", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Minimum Orbit Intersection Distance [au] with respect to the Earths Orbit", + "name": "earth_moid", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Date of the last orbit fit", + "name": "fitting_datetime", + "type": [ + "null", + { + "logicalType": "timestamp-micros", + "type": "long" + } + ] + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssObject.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssObject.avsc new file mode 100644 index 0000000..1acf3dc --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssObject.avsc @@ -0,0 +1,668 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "ssObject", + "fields": [ + { + "doc": "Unique identifier.", + "name": "ssObjectId", + "type": "long" + }, + { + "default": null, + "doc": "The unpacked primary provisional designation for this object.", + "name": "designation", + "type": [ + "null", + "string" + ] + }, + { + "doc": "Total number of LSST observations of this object.", + "name": "nObs", + "type": "int" + }, + { + "doc": "Timespan (\"arc\") of all LSST observations, t_{last} - t_{first}", + "name": "arc", + "type": "float" + }, + { + "default": null, + "doc": "The time of the first LSST observation of this object (could be precovered), TAI.", + "name": "firstObservationMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Minimum orbit intersection distance to Earth.", + "name": "MOIDEarth", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "DeltaV at the MOID point.", + "name": "MOIDEarthDeltaV", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Ecliptic longitude of the MOID point (Earth's orbit).", + "name": "MOIDEarthEclipticLongitude", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "True anomaly of the MOID point on Earth's orbit.", + "name": "MOIDEarthTrueAnomaly", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "True anomaly of the MOID point on the object's orbit.", + "name": "MOIDEarthTrueAnomalyObject", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Tisserand parameter with respect to Jupiter (T_J).", + "name": "tisserand_J", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum `extendedness` value from the DiaSource.", + "name": "extendednessMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Median `extendedness` value from the DiaSource.", + "name": "extendednessMedian", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum `extendedness` value from the DiaSource.", + "name": "extendednessMin", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Total number of data points (u band).", + "name": "u_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (u band).", + "name": "u_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (u band).", + "name": "u_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (u band).", + "name": "u_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (u band).", + "name": "u_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (u band).", + "name": "u_H_u_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (u band).", + "name": "u_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (u band).", + "name": "u_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (u band).", + "name": "u_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (u band).", + "name": "u_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in u band. G12 contains a fiducial value used to fit H.", + "name": "u_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Total number of data points (g band).", + "name": "g_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (g band).", + "name": "g_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (g band).", + "name": "g_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (g band).", + "name": "g_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (g band).", + "name": "g_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (g band).", + "name": "g_H_g_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (g band).", + "name": "g_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (g band).", + "name": "g_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (g band).", + "name": "g_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (g band).", + "name": "g_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in g band. G12 contains a fiducial value used to fit H.", + "name": "g_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Total number of data points (r band).", + "name": "r_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (r band).", + "name": "r_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (r band).", + "name": "r_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (r band).", + "name": "r_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (r band).", + "name": "r_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (r band).", + "name": "r_H_r_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (r band).", + "name": "r_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (r band).", + "name": "r_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (r band).", + "name": "r_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (r band).", + "name": "r_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in r band. G12 contains a fiducial value used to fit H.", + "name": "r_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Total number of data points (i band).", + "name": "i_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (i band).", + "name": "i_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (i band).", + "name": "i_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (i band).", + "name": "i_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (i band).", + "name": "i_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (i band).", + "name": "i_H_i_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (i band).", + "name": "i_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (i band).", + "name": "i_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (i band).", + "name": "i_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (i band).", + "name": "i_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in i band. G12 contains a fiducial value used to fit H.", + "name": "i_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Total number of data points (z band).", + "name": "z_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (z band).", + "name": "z_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (z band).", + "name": "z_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (z band).", + "name": "z_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (z band).", + "name": "z_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (z band).", + "name": "z_H_z_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (z band).", + "name": "z_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (z band).", + "name": "z_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (z band).", + "name": "z_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (z band).", + "name": "z_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in z band. G12 contains a fiducial value used to fit H.", + "name": "z_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Total number of data points (y band).", + "name": "y_nObs", + "type": "int" + }, + { + "default": null, + "doc": "Best fit absolute magnitude (y band).", + "name": "y_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of H (y band).", + "name": "y_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (y band).", + "name": "y_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Error in the estimate of G12 (y band).", + "name": "y_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H\u2013G12 covariance (y band).", + "name": "y_H_y_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (y band).", + "name": "y_nObsUsed", + "type": "int" + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (y band).", + "name": "y_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Minimum phase angle observed (y band).", + "name": "y_phaseAngleMin", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum phase angle observed (y band).", + "name": "y_phaseAngleMax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "G12 fit failed in y band. G12 contains a fiducial value used to fit H.", + "name": "y_slope_fit_failed", + "type": [ + "null", + "boolean" + ] + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssSource.avsc b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssSource.avsc new file mode 100644 index 0000000..550ec9d --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/lsst.v11_1.ssSource.avsc @@ -0,0 +1,335 @@ +{ + "type": "record", + "namespace": "lsst.v11_1", + "name": "ssSource", + "fields": [ + { + "doc": "Unique identifier of the observation (matching DiaSource.diaSourceId).", + "name": "diaSourceId", + "type": "long" + }, + { + "doc": "Unique LSST identifier of the Solar System object.", + "name": "ssObjectId", + "type": "long" + }, + { + "default": null, + "doc": "The unpacked primary provisional designation for this object.", + "name": "designation", + "type": [ + "null", + "string" + ] + }, + { + "doc": "Ecliptic longitude, converted from the observed coordinates.", + "name": "eclLambda", + "type": "double" + }, + { + "doc": "Ecliptic latitude, converted from the observed coordinates.", + "name": "eclBeta", + "type": "double" + }, + { + "doc": "Galactic longitude, converted from the observed coordinates.", + "name": "galLon", + "type": "double" + }, + { + "doc": "Galactic latitude, converted from the observed coordinates.", + "name": "galLat", + "type": "double" + }, + { + "default": null, + "doc": "Solar elongation of the object at the time of observation.", + "name": "elongation", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Phase angle between the Sun, object, and observer.", + "name": "phaseAngle", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Topocentric distance (delta) at light-emission time.", + "name": "topoRange", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Topocentric radial (line-of-sight) velocity (deldot); positive values indicate motion away from the observer.", + "name": "topoRangeRate", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Heliocentric distance (r) at light-emission time.", + "name": "helioRange", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Heliocentric radial velocity (rdot); positive values indicate motion away from the Sun.", + "name": "helioRangeRate", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Predicted ICRS right ascension from the orbit in mpc_orbits.", + "name": "ephRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Predicted ICRS declination from the orbit in mpc_orbits.", + "name": "ephDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Predicted magnitude in V band, computed from mpc_orbits data including the mpc_orbits-provided (H, G) estimates", + "name": "ephVmag", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Total predicted on-sky angular rate of motion.", + "name": "ephRate", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Predicted on-sky angular rate in the R.A. direction (includes the cos(dec) factor).", + "name": "ephRateRa", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Predicted on-sky angular rate in the declination direction.", + "name": "ephRateDec", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Total observed versus predicted angular separation on the sky.", + "name": "ephOffset", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Offset between observed and predicted position in the R.A. direction (includes cos(dec) term).", + "name": "ephOffsetRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Offset between observed and predicted position in declination.", + "name": "ephOffsetDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Offset between observed and predicted position in the along-track direction on the sky.", + "name": "ephOffsetAlongTrack", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Offset between observed and predicted position in the cross-track direction on the sky.", + "name": "ephOffsetCrossTrack", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric X coordinate at light-emission time (ICRS).", + "name": "helio_x", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric Y coordinate at light-emission time (ICRS).", + "name": "helio_y", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric Z coordinate at light-emission time (ICRS).", + "name": "helio_z", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric X velocity at light-emission time (ICRS).", + "name": "helio_vx", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric Y velocity at light-emission time (ICRS).", + "name": "helio_vy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian heliocentric Z velocity at light-emission time (ICRS).", + "name": "helio_vz", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The magnitude of the heliocentric velocity vector, sqrt(vx*vx + vy*vy + vz*vz).", + "name": "helio_vtot", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric X coordinate at light-emission time (ICRS).", + "name": "topo_x", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric Y coordinate at light-emission time (ICRS).", + "name": "topo_y", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric Z coordinate at light-emission time (ICRS).", + "name": "topo_z", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric X velocity at light-emission time (ICRS).", + "name": "topo_vx", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric Y velocity at light-emission time (ICRS).", + "name": "topo_vy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Cartesian topocentric Z velocity at light-emission time (ICRS).", + "name": "topo_vz", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The magnitude of the topocentric velocity vector, sqrt(vx*vx + vy*vy + vz*vz).", + "name": "topo_vtot", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The rank of the diaSourceId-identified source in terms of its closeness to the predicted SSO position. If diaSourceId is the nearest DiaSource to this SSO prediction, diaSourceDistanceRank=1 would be set. If it is the second nearest, it would be 2, etc.", + "name": "diaDistanceRank", + "type": [ + "null", + "int" + ] + } + ], + "confluent:version": 1101 +} \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/sample_data/alert.json b/python/lsst/alert/packet/schema/11/1/sample_data/alert.json new file mode 100644 index 0000000..b7fa163 --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/sample_data/alert.json @@ -0,0 +1,108 @@ +{ + "diaSourceId": 1231321321, + "diaSource": + { + "diaSourceId": 281323062375219200, + "timeProcessedMjdTai": 60903.0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 60902.993305483615, + "band": "r", + "programId": 1, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "x": 112.1, + "y": 121.1, + "xErr": 1.2, + "yErr": 1.1, + "x_y_Cov": 1.2, + "apFlux": 1241.0, + "apFluxErr": 12.0, + "snr": 41.1, + "trailNdata": 5, + "psfFlux": 1241.0, + "psfFluxErr": 12.0, + "psfNdata": 25, + "dipoleNdata": 43, + "bboxSize": 50 + }, + "prvDiaSources": [ + { + "diaSourceId": 281323062375219198, + "timeProcessedMjdTai": 60902.0, + "visit": 2, + "detector": 43, + "midpointMjdTai": 60901.993305483615, + "band": "r", + "programId": 1, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "x": 112.1, + "y": 121.1, + "xErr": 1.2, + "yErr": 1.1, + "x_y_Cov": 1.2, + "apFlux": 1241.0, + "apFluxErr": 12.0, + "snr": 41.1, + "trailNdata": 5, + "psfFlux": 1241.0, + "psfFluxErr": 12.0, + "psfNdata": 25, + "dipoleNdata": 43, + "bboxSize": 50 + }, + { + "diaSourceId": 281323062375219199, + "timeProcessedMjdTai": 60901.0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 60900.993305483615, + "band": "r", + "programId": 1, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "x": 112.1, + "y": 121.1, + "xErr": 1.2, + "yErr": 1.1, + "x_y_Cov": 1.2, + "apFlux": 1241.0, + "apFluxErr": 12.0, + "snr": 41.1, + "trailNdata": 5, + "psfFlux": 1241.0, + "psfFluxErr": 12.0, + "psfNdata": 25, + "dipoleNdata": 43, + "bboxSize": 50 + } + ], + "diaObject": { + "diaObjectId": 281323062375219201, + "validityStartMjdTai": 60903.0, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "firstDiaSourceMjdTai": 60900.993305483615, + "lastDiaSourceMjdTai": 60902.993305483615, + "nDiaSources": 2, + "u_psfFluxNdata": 1, + "g_psfFluxNdata": 2, + "r_psfFluxNdata": 3, + "i_psfFluxNdata": 4, + "z_psfFluxNdata": 5, + "y_psfFluxNdata": 6 + } +} diff --git a/python/lsst/alert/packet/schema/11/1/sample_data/fakeAlert.avro b/python/lsst/alert/packet/schema/11/1/sample_data/fakeAlert.avro new file mode 100644 index 0000000..de90972 --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/sample_data/fakeAlert.avro @@ -0,0 +1,5 @@ +Objavro.codecnullavro.schema’†{"type": "record", "doc": "Rubin Avro alert schema v11.1", "name": "lsst.v11_1.alert", "fields": [{"doc": "Identifier of the triggering DiaSource", "name": "diaSourceId", "type": "long"}, {"doc": "Scheduler reason for the image containing this diaSource (RTN-097).", "default": null, "name": "observation_reason", "type": ["null", "string"]}, {"doc": "Scheduler target for the image containing this diaSource (RTN-097).", "default": null, "name": "target_name", "type": ["null", "string"]}, {"name": "diaSource", "type": {"confluent:version": 1101, "type": "record", "name": "lsst.v11_1.diaSource", "fields": [{"doc": "Unique identifier of this DiaSource.", "name": "diaSourceId", "type": "long"}, {"doc": "Id of the visit where this diaSource was measured.", "name": "visit", "type": "long"}, {"doc": "Id of the detector where this diaSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.", "name": "detector", "type": "int"}, {"doc": "Id of the diaObject this source was associated with, if any. If not, it is set to NULL (each diaSource will be associated with either a diaObject or ssObject).", "default": null, "name": "diaObjectId", "type": ["null", "long"]}, {"doc": "Id of the ssObject this source was associated with, if any. If not, it is set to NULL (each diaSource will be associated with either a diaObject or ssObject).", "default": null, "name": "ssObjectId", "type": ["null", "long"]}, {"doc": "Id of the parent diaSource this diaSource has been deblended from, if any.", "default": null, "name": "parentDiaSourceId", "type": ["null", "long"]}, {"doc": "Effective mid-visit time for this diaSource, expressed as Modified Julian Date, International Atomic Time [d].", "name": "midpointMjdTai", "type": "double"}, {"doc": "Effective exposure time for this diaSource [s].", "default": null, "name": "exposureTime", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of the center of this diaSource [deg].", "name": "ra", "type": "double"}, {"doc": "Angular error of Right Ascension (\u2202RA*cos(Dec)) [deg].", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource [deg].", "name": "dec", "type": "double"}, {"doc": "Angular error of dec [deg].", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between Right Ascension (RA*cos(Dec)) and dec [deg**2].", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm [pixel].", "name": "x", "type": "float"}, {"doc": "Uncertainty of x [pixel].", "default": null, "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm [pixel].", "name": "y", "type": "float"}, {"doc": "Uncertainty of y [pixel].", "default": null, "name": "yErr", "type": ["null", "float"]}, {"doc": "General centroid algorithm failure flag; set if anything went wrong when fitting the centroid. Another centroid flag field should also be set to provide more information.", "default": null, "name": "centroid_flag", "type": ["null", "boolean"]}, {"doc": "Flux in a 12 pixel radius aperture on the difference image [nJy].", "default": null, "name": "apFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of apFlux [nJy].", "default": null, "name": "apFluxErr", "type": ["null", "float"]}, {"doc": "General aperture flux algorithm failure flag; set if anything went wrong when measuring aperture fluxes. Another apFlux flag field should also be set to provide more information.", "default": null, "name": "apFlux_flag", "type": ["null", "boolean"]}, {"doc": "Aperture did not fit within measurement image.", "default": null, "name": "apFlux_flag_apertureTruncated", "type": ["null", "boolean"]}, {"doc": "Source was detected as significantly negative.", "default": null, "name": "isNegative", "type": ["null", "boolean"]}, {"doc": "The signal-to-noise ratio at which this source was detected in the difference image.", "default": null, "name": "snr", "type": ["null", "float"]}, {"doc": "Flux for Point Source model. Note this actually measures the flux difference between the template and the visit image [nJy].", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux [nJy].", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the point source model.", "default": null, "name": "psfLnL", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the point source model fit.", "default": null, "name": "psfChi2", "type": ["null", "float"]}, {"doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": "int"}, {"doc": "Failure to derive linear least-squares fit of psf model. Another psfFlux flag field should also be set to provide more information.", "default": null, "name": "psfFlux_flag", "type": ["null", "boolean"]}, {"doc": "Object was too close to the edge of the image to use the full PSF model.", "default": null, "name": "psfFlux_flag_edge", "type": ["null", "boolean"]}, {"doc": "Not enough non-rejected pixels in data to attempt the fit.", "default": null, "name": "psfFlux_flag_noGoodPixels", "type": ["null", "boolean"]}, {"doc": "Flux for a trailed source model. Note this actually measures the flux difference between the template and the visit image [nJy].", "default": null, "name": "trailFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of trailFlux [nJy].", "default": null, "name": "trailFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for trailed source model [deg].", "default": null, "name": "trailRa", "type": ["null", "double"]}, {"doc": "Angular error of trailRa (\u2202RA*cos(Dec)) [deg].", "default": null, "name": "trailRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for trailed source model [deg].", "default": null, "name": "trailDec", "type": ["null", "double"]}, {"doc": "Angular error of trailDec [deg].", "default": null, "name": "trailDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of trail length [arcsec].", "default": null, "name": "trailLength", "type": ["null", "float"]}, {"doc": "Uncertainty of trailLength [arcsec].", "default": null, "name": "trailLengthErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the trail direction (bearing) [deg].", "default": null, "name": "trailAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of trailAngle [deg].", "default": null, "name": "trailAngleErr", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the trailed source model fit.", "default": null, "name": "trailChi2", "type": ["null", "float"]}, {"doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", "type": "int"}, {"doc": "Integer key indicating which algorithm was used to measure trailed source. 1=SDSSShape, 2=HSMShape.", "default": null, "name": "trailAlgorithm", "type": ["null", "int"]}, {"doc": "This flag is set if a trailed source extends onto or past edge pixels.", "default": null, "name": "trail_flag_edge", "type": ["null", "boolean"]}, {"doc": "The trailed source fitting algorithm failed.", "default": null, "name": "trail_flag", "type": ["null", "boolean"]}, {"doc": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model [nJy].", "default": null, "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleMeanFlux [nJy].", "default": null, "name": "dipoleMeanFluxErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the difference of absolute fluxes of the two lobes for a dipole model [nJy].", "default": null, "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleFluxDiff [nJy].", "default": null, "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the lobe separation in dipole model [arcsec].", "default": null, "name": "dipoleLength", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the dipole direction (bearing, from negative to positive lobe) [deg].", "default": null, "name": "dipoleAngle", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the model fit.", "default": null, "name": "dipoleChi2", "type": ["null", "float"]}, {"doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": "int"}, {"doc": "Forced photometry flux for a point source model measured on the visit image centered at DiaSource position [nJy].", "default": null, "name": "scienceFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of scienceFlux [nJy].", "default": null, "name": "scienceFluxErr", "type": ["null", "float"]}, {"doc": "Forced PSF photometry on science image failed. Another forced_PsfFlux flag field should also be set to provide more information.", "default": null, "name": "forced_PsfFlux_flag", "type": ["null", "boolean"]}, {"doc": "Forced PSF flux on science image was too close to the edge of the image to use the full PSF model.", "default": null, "name": "forced_PsfFlux_flag_edge", "type": ["null", "boolean"]}, {"doc": "Forced PSF flux not enough non-rejected pixels in data to attempt the fit.", "default": null, "name": "forced_PsfFlux_flag_noGoodPixels", "type": ["null", "boolean"]}, {"doc": "Forced photometry flux for a point source model measured on the template image centered at the DiaObject position [nJy].", "default": null, "name": "templateFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of templateFlux [nJy].", "default": null, "name": "templateFluxErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity [arcsec**2].", "default": null, "name": "ixx", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity [arcsec**2].", "default": null, "name": "iyy", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity [arcsec**2].", "default": null, "name": "ixy", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF [arcsec**2].", "default": null, "name": "ixxPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF [arcsec**2].", "default": null, "name": "iyyPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF [arcsec**2].", "default": null, "name": "ixyPSF", "type": ["null", "float"]}, {"doc": "General source shape algorithm failure flag; set if anything went wrong when measuring the shape. Another shape flag field should also be set to provide more information.", "default": null, "name": "shape_flag", "type": ["null", "boolean"]}, {"doc": "No pixels to measure shape.", "default": null, "name": "shape_flag_no_pixels", "type": ["null", "boolean"]}, {"doc": "Center not contained in footprint bounding box.", "default": null, "name": "shape_flag_not_contained", "type": ["null", "boolean"]}, {"doc": "This source is a parent source; we should only be measuring on deblended children in difference imaging.", "default": null, "name": "shape_flag_parent_source", "type": ["null", "boolean"]}, {"doc": "A measure of extendedness, computed by comparing an object's moment-based traced radius to the PSF moments. extendedness = 1 implies a high degree of confidence that the source is extended. extendedness = 0 implies a high degree of confidence that the source is point-like.", "default": null, "name": "extendedness", "type": ["null", "float"]}, {"doc": "Probability (0-1) that the diaSource is astrophysical, derived from a machine learning model.", "default": null, "name": "reliability", "type": ["null", "float"]}, {"doc": "Version of the reliability model.", "default": null, "name": "reliabilityVersion", "type": ["null", "string"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Source well fit by a dipole.", "default": null, "name": "isDipole", "type": ["null", "boolean"]}, {"doc": "Attempted to fit a dipole model to this source.", "default": null, "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"doc": "Time when the image was processed and this DiaSource record was generated, expressed as Modified Julian Date, International Atomic Time.", "name": "timeProcessedMjdTai", "type": "double"}, {"doc": "Time when this record was marked invalid, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "timeWithdrawnMjdTai", "type": ["null", "double"]}, {"doc": "Size of the square bounding box that fully contains the detection footprint [pixel].", "name": "bboxSize", "type": "int"}, {"doc": "General pixel flags failure; set if anything went wrong when setting pixels flags from this footprint's mask. This implies that some pixelFlags for this source may be incorrectly set to False.", "default": null, "name": "pixelFlags", "type": ["null", "boolean"]}, {"doc": "Bad pixel in the DiaSource footprint.", "default": null, "name": "pixelFlags_bad", "type": ["null", "boolean"]}, {"doc": "Cosmic ray in the DiaSource footprint.", "default": null, "name": "pixelFlags_cr", "type": ["null", "boolean"]}, {"doc": "Cosmic ray in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_crCenter", "type": ["null", "boolean"]}, {"doc": "Some of the source footprint is outside usable exposure region (masked EDGE or centroid off image).", "default": null, "name": "pixelFlags_edge", "type": ["null", "boolean"]}, {"doc": "NO_DATA pixel in the source footprint.", "default": null, "name": "pixelFlags_nodata", "type": ["null", "boolean"]}, {"doc": "NO_DATA pixel in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_nodataCenter", "type": ["null", "boolean"]}, {"doc": "Interpolated pixel in the DiaSource footprint.", "default": null, "name": "pixelFlags_interpolated", "type": ["null", "boolean"]}, {"doc": "Interpolated pixel in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_interpolatedCenter", "type": ["null", "boolean"]}, {"doc": "DiaSource center is off image.", "default": null, "name": "pixelFlags_offimage", "type": ["null", "boolean"]}, {"doc": "Saturated pixel in the DiaSource footprint.", "default": null, "name": "pixelFlags_saturated", "type": ["null", "boolean"]}, {"doc": "Saturated pixel in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_saturatedCenter", "type": ["null", "boolean"]}, {"doc": "DiaSource's footprint includes suspect pixels.", "default": null, "name": "pixelFlags_suspect", "type": ["null", "boolean"]}, {"doc": "Suspect pixel in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_suspectCenter", "type": ["null", "boolean"]}, {"doc": "Streak in the DiaSource footprint.", "default": null, "name": "pixelFlags_streak", "type": ["null", "boolean"]}, {"doc": "Streak in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_streakCenter", "type": ["null", "boolean"]}, {"doc": "Injection in the DiaSource footprint.", "default": null, "name": "pixelFlags_injected", "type": ["null", "boolean"]}, {"doc": "Injection in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_injectedCenter", "type": ["null", "boolean"]}, {"doc": "Template injection in the DiaSource footprint.", "default": null, "name": "pixelFlags_injected_template", "type": ["null", "boolean"]}, {"doc": "Template injection in the 3x3 region around the centroid.", "default": null, "name": "pixelFlags_injected_templateCenter", "type": ["null", "boolean"]}, {"doc": "This flag is set if the source is part of a glint trail.", "default": null, "name": "glint_trail", "type": ["null", "boolean"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v11_1.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"confluent:version": 1101, "type": "record", "name": "lsst.v11_1.diaForcedSource", "fields": [{"doc": "Unique id.", "name": "diaForcedSourceId", "type": "long"}, {"doc": "Id of the DiaObject that this DiaForcedSource was associated with.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the DiaObject [deg].", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject [deg].", "name": "dec", "type": "double"}, {"doc": "Id of the visit where this forcedSource was measured.", "name": "visit", "type": "long"}, {"doc": "Id of the detector where this forcedSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.", "name": "detector", "type": "int"}, {"doc": "Point Source model flux [nJy].", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux [nJy].", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time [d].", "name": "midpointMjdTai", "type": "double"}, {"doc": "Forced photometry flux for a point source model measured on the visit image centered at the DiaObject position [nJy].", "default": null, "name": "scienceFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of scienceFlux [nJy].", "default": null, "name": "scienceFluxErr", "type": ["null", "float"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Time when this record was generated, expressed as Modified Julian Date, International Atomic Time.", "name": "timeProcessedMjdTai", "type": "double"}, {"doc": "Time when this record was marked invalid, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "timeWithdrawnMjdTai", "type": ["null", "double"]}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"confluent:version": 1101, "type": "record", "name": "lsst.v11_1.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Processing time when validity of this diaObject starts, expressed as Modified Julian Date, International Atomic Time.", "name": "validityStartMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the position of the object [deg].", "name": "ra", "type": "double"}, {"doc": "Angular error of Right Ascension (\u2202RA*cos(Dec)) [deg].", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object [deg].", "name": "dec", "type": "double"}, {"doc": "Angular error of dec [deg].", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between Right Ascension (RA*cos(Dec)) and dec [deg**2].", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for u filter [nJy].", "default": null, "name": "u_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_psfFluxMean [nJy].", "default": null, "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_psfFlux [nJy].", "default": null, "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of u-band data points.", "name": "u_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for u filter [nJy].", "default": null, "name": "u_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_fpFluxMean [nJy].", "default": null, "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for g filter [nJy].", "default": null, "name": "g_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_psfFluxMean [nJy].", "default": null, "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_psfFlux [nJy].", "default": null, "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of g-band data points.", "name": "g_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for g filter [nJy].", "default": null, "name": "g_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_fpFluxMean [nJy].", "default": null, "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for r filter [nJy].", "default": null, "name": "r_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_psfFluxMean [nJy].", "default": null, "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_psfFlux [nJy].", "default": null, "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of r-band data points.", "name": "r_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for r filter [nJy].", "default": null, "name": "r_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_fpFluxMean [nJy].", "default": null, "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for i filter [nJy].", "default": null, "name": "i_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_psfFluxMean [nJy].", "default": null, "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_psfFlux [nJy].", "default": null, "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of i-band data points.", "name": "i_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for i filter [nJy].", "default": null, "name": "i_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_fpFluxMean [nJy].", "default": null, "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for z filter [nJy].", "default": null, "name": "z_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_psfFluxMean [nJy].", "default": null, "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_psfFlux [nJy].", "default": null, "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of z-band data points.", "name": "z_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for z filter [nJy].", "default": null, "name": "z_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_fpFluxMean [nJy].", "default": null, "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for y filter [nJy].", "default": null, "name": "y_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_psfFluxMean [nJy].", "default": null, "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_psfFlux [nJy].", "default": null, "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"doc": "The number of y-band data points.", "name": "y_psfFluxNdata", "type": "int"}, {"doc": "Weighted mean forced photometry flux for y filter [nJy].", "default": null, "name": "y_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_fpFluxMean [nJy].", "default": null, "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for u filter [nJy].", "default": null, "name": "u_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_scienceFluxMean [nJy].", "default": null, "name": "u_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for g filter [nJy].", "default": null, "name": "g_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_scienceFluxMean [nJy].", "default": null, "name": "g_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for r filter [nJy].", "default": null, "name": "r_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_scienceFluxMean [nJy].", "default": null, "name": "r_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for i filter [nJy].", "default": null, "name": "i_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_scienceFluxMean [nJy].", "default": null, "name": "i_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for z filter [nJy].", "default": null, "name": "z_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_scienceFluxMean [nJy].", "default": null, "name": "z_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Weighted mean forced photometry flux for y filter [nJy].", "default": null, "name": "y_scienceFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_scienceFluxMean [nJy].", "default": null, "name": "y_scienceFluxMeanErr", "type": ["null", "float"]}, {"doc": "Minimum observed u band fluxes [nJy].", "default": null, "name": "u_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed u band fluxes [nJy].", "default": null, "name": "u_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between u band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "u_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the u band flux errors [nJy].", "default": null, "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Minimum observed g band fluxes [nJy].", "default": null, "name": "g_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed g band fluxes [nJy].", "default": null, "name": "g_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between g band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "g_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the g band flux errors [nJy].", "default": null, "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Minimum observed r band fluxes [nJy].", "default": null, "name": "r_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed r band fluxes [nJy].", "default": null, "name": "r_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between r band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "r_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the r band flux errors [nJy].", "default": null, "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Minimum observed i band fluxes [nJy].", "default": null, "name": "i_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed i band fluxes [nJy].", "default": null, "name": "i_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between i band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "i_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the i band flux errors [nJy].", "default": null, "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Minimum observed z band fluxes [nJy].", "default": null, "name": "z_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed z band fluxes [nJy].", "default": null, "name": "z_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between z band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "z_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the z band flux errors [nJy].", "default": null, "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Minimum observed y band fluxes [nJy].", "default": null, "name": "y_psfFluxMin", "type": ["null", "float"]}, {"doc": "Maximum observed y band fluxes [nJy].", "default": null, "name": "y_psfFluxMax", "type": ["null", "float"]}, {"doc": "Maximum slope between y band flux obsevations max(delta_flux/delta_time) [nJy/d].", "default": null, "name": "y_psfFluxMaxSlope", "type": ["null", "float"]}, {"doc": "Mean of the y band flux errors [nJy].", "default": null, "name": "y_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Time of the first diaSource, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "firstDiaSourceMjdTai", "type": ["null", "double"]}, {"doc": "Time of the most recent non-forced DIASource for this object, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "lastDiaSourceMjdTai", "type": ["null", "double"]}, {"doc": "Total number of DiaSources associated with this DiaObject.", "name": "nDiaSources", "type": "int"}]}]}, {"default": null, "name": "ssSource", "type": ["null", {"confluent:version": 1101, "type": "record", "name": "lsst.v11_1.ssSource", "fields": [{"doc": "Unique identifier of the observation (matching DiaSource.diaSourceId).", "name": "diaSourceId", "type": "long"}, {"doc": "Unique LSST identifier of the Solar System object.", "name": "ssObjectId", "type": "long"}, {"doc": "The unpacked primary provisional designation for this object.", "default": null, "name": "designation", "type": ["null", "string"]}, {"doc": "Ecliptic longitude, converted from the observed coordinates.", "name": "eclLambda", "type": "double"}, {"doc": "Ecliptic latitude, converted from the observed coordinates.", "name": "eclBeta", "type": "double"}, {"doc": "Galactic longitude, converted from the observed coordinates.", "name": "galLon", "type": "double"}, {"doc": "Galactic latitude, converted from the observed coordinates.", "name": "galLat", "type": "double"}, {"doc": "Solar elongation of the object at the time of observation.", "default": null, "name": "elongation", "type": ["null", "float"]}, {"doc": "Phase angle between the Sun, object, and observer.", "default": null, "name": "phaseAngle", "type": ["null", "float"]}, {"doc": "Topocentric distance (delta) at light-emission time.", "default": null, "name": "topoRange", "type": ["null", "float"]}, {"doc": "Topocentric radial (line-of-sight) velocity (deldot); positive values indicate motion away from the observer.", "default": null, "name": "topoRangeRate", "type": ["null", "float"]}, {"doc": "Heliocentric distance (r) at light-emission time.", "default": null, "name": "helioRange", "type": ["null", "float"]}, {"doc": "Heliocentric radial velocity (rdot); positive values indicate motion away from the Sun.", "default": null, "name": "helioRangeRate", "type": ["null", "float"]}, {"doc": "Predicted ICRS right ascension from the orbit in mpc_orbits.", "default": null, "name": "ephRa", "type": ["null", "double"]}, {"doc": "Predicted ICRS declination from the orbit in mpc_orbits.", "default": null, "name": "ephDec", "type": ["null", "double"]}, {"doc": "Predicted magnitude in V band, computed from mpc_orbits data including the mpc_orbits-provided (H, G) estimates", "default": null, "name": "ephVmag", "type": ["null", "float"]}, {"doc": "Total predicted on-sky angular rate of motion.", "default": null, "name": "ephRate", "type": ["null", "float"]}, {"doc": "Predicted on-sky angular rate in the R.A. direction (includes the cos(dec) factor).", "default": null, "name": "ephRateRa", "type": ["null", "float"]}, {"doc": "Predicted on-sky angular rate in the declination direction.", "default": null, "name": "ephRateDec", "type": ["null", "float"]}, {"doc": "Total observed versus predicted angular separation on the sky.", "default": null, "name": "ephOffset", "type": ["null", "float"]}, {"doc": "Offset between observed and predicted position in the R.A. direction (includes cos(dec) term).", "default": null, "name": "ephOffsetRa", "type": ["null", "double"]}, {"doc": "Offset between observed and predicted position in declination.", "default": null, "name": "ephOffsetDec", "type": ["null", "double"]}, {"doc": "Offset between observed and predicted position in the along-track direction on the sky.", "default": null, "name": "ephOffsetAlongTrack", "type": ["null", "float"]}, {"doc": "Offset between observed and predicted position in the cross-track direction on the sky.", "default": null, "name": "ephOffsetCrossTrack", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric X coordinate at light-emission time (ICRS).", "default": null, "name": "helio_x", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric Y coordinate at light-emission time (ICRS).", "default": null, "name": "helio_y", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric Z coordinate at light-emission time (ICRS).", "default": null, "name": "helio_z", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric X velocity at light-emission time (ICRS).", "default": null, "name": "helio_vx", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric Y velocity at light-emission time (ICRS).", "default": null, "name": "helio_vy", "type": ["null", "float"]}, {"doc": "Cartesian heliocentric Z velocity at light-emission time (ICRS).", "default": null, "name": "helio_vz", "type": ["null", "float"]}, {"doc": "The magnitude of the heliocentric velocity vector, sqrt(vx*vx + vy*vy + vz*vz).", "default": null, "name": "helio_vtot", "type": ["null", "float"]}, {"doc": "Cartesian topocentric X coordinate at light-emission time (ICRS).", "default": null, "name": "topo_x", "type": ["null", "float"]}, {"doc": "Cartesian topocentric Y coordinate at light-emission time (ICRS).", "default": null, "name": "topo_y", "type": ["null", "float"]}, {"doc": "Cartesian topocentric Z coordinate at light-emission time (ICRS).", "default": null, "name": "topo_z", "type": ["null", "float"]}, {"doc": "Cartesian topocentric X velocity at light-emission time (ICRS).", "default": null, "name": "topo_vx", "type": ["null", "float"]}, {"doc": "Cartesian topocentric Y velocity at light-emission time (ICRS).", "default": null, "name": "topo_vy", "type": ["null", "float"]}, {"doc": "Cartesian topocentric Z velocity at light-emission time (ICRS).", "default": null, "name": "topo_vz", "type": ["null", "float"]}, {"doc": "The magnitude of the topocentric velocity vector, sqrt(vx*vx + vy*vy + vz*vz).", "default": null, "name": "topo_vtot", "type": ["null", "float"]}, {"doc": "The rank of the diaSourceId-identified source in terms of its closeness to the predicted SSO position. If diaSourceId is the nearest DiaSource to this SSO prediction, diaSourceDistanceRank=1 would be set. If it is the second nearest, it would be 2, etc.", "default": null, "name": "diaDistanceRank", "type": ["null", "int"]}]}]}, {"default": null, "name": "mpc_orbits", "type": ["null", {"confluent:version": 1101, "type": "record", "name": "lsst.v11_1.mpc_orbits", "fields": [{"doc": "Internal ID (generally not seen/used by the user)", "name": "id", "type": "int"}, {"doc": "The primary provisional designation in unpacked form (e.g. 2008 AB).", "name": "designation", "type": "string"}, {"doc": "The primary provisional designation in packed form (e.g. K08A00B)", "name": "packed_primary_provisional_designation", "type": "string"}, {"doc": "The primary provisional designation in unpacked form (e.g. 2008 AB)", "name": "unpacked_primary_provisional_designation", "type": "string"}, {"doc": "Details of the orbit solution in JSON form", "default": null, "name": "mpc_orb_jsonb", "type": ["null", "string"]}, {"doc": "When this row was created", "default": null, "name": "created_at", "type": ["null", {"logicalType": "timestamp-micros", "type": "long"}]}, {"doc": "When this row was updated", "default": null, "name": "updated_at", "type": ["null", {"logicalType": "timestamp-micros", "type": "long"}]}, {"doc": "Orbit Type (Integer)", "default": null, "name": "orbit_type_int", "type": ["null", "int"]}, {"doc": "U parameter", "default": null, "name": "u_param", "type": ["null", "int"]}, {"doc": "number of oppositions", "default": null, "name": "nopp", "type": ["null", "int"]}, {"doc": "Arc length over total observations [days]", "default": null, "name": "arc_length_total", "type": ["null", "double"]}, {"doc": "Arc length over total observations *selected* [days]", "default": null, "name": "arc_length_sel", "type": ["null", "double"]}, {"doc": "Total number of all observations (optical + radar) available", "default": null, "name": "nobs_total", "type": ["null", "int"]}, {"doc": "Total number of all observations (optical + radar) selected for use in orbit fitting", "default": null, "name": "nobs_total_sel", "type": ["null", "int"]}, {"doc": "Semi Major Axis [au]", "default": null, "name": "a", "type": ["null", "double"]}, {"doc": "Pericenter Distance [au]", "default": null, "name": "q", "type": ["null", "double"]}, {"doc": "Eccentricity", "default": null, "name": "e", "type": ["null", "double"]}, {"doc": "Inclination [degrees]", "default": null, "name": "i", "type": ["null", "double"]}, {"doc": "Longitude of Ascending Node [degrees]", "default": null, "name": "node", "type": ["null", "double"]}, {"doc": "Argument of Pericenter [degrees]", "default": null, "name": "argperi", "type": ["null", "double"]}, {"doc": "Time from Pericenter Passage [days]", "default": null, "name": "peri_time", "type": ["null", "double"]}, {"doc": "Yarkovsky Component [10^(-10)*au/day^2]", "default": null, "name": "yarkovsky", "type": ["null", "double"]}, {"doc": "Solar-Radiation Pressure Component [m^2/ton]", "default": null, "name": "srp", "type": ["null", "double"]}, {"doc": "A1 non-grav components [m^2/ton]", "default": null, "name": "a1", "type": ["null", "double"]}, {"doc": "A2 non-grav components [m^2/ton]", "default": null, "name": "a2", "type": ["null", "double"]}, {"doc": "A3 non-grav components [m^2/ton]", "default": null, "name": "a3", "type": ["null", "double"]}, {"doc": "DT non-grav component", "default": null, "name": "dt", "type": ["null", "double"]}, {"doc": "Mean Anomaly [degrees]", "default": null, "name": "mean_anomaly", "type": ["null", "double"]}, {"doc": "Orbital Period [days]", "default": null, "name": "period", "type": ["null", "double"]}, {"doc": "Orbital Mean Motion [degrees per day]", "default": null, "name": "mean_motion", "type": ["null", "double"]}, {"doc": "Uncertainty on Semi Major Axis [au]", "default": null, "name": "a_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Pericenter Distance [au]", "default": null, "name": "q_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Eccentricity", "default": null, "name": "e_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Inclination [degrees]", "default": null, "name": "i_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Longitude of Ascending Node [degrees]", "default": null, "name": "node_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Argument of Pericenter [degrees]", "default": null, "name": "argperi_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Time from Pericenter Passage [days]", "default": null, "name": "peri_time_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Yarkovsky Component [10^(-10)*au/day^2]", "default": null, "name": "yarkovsky_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Solar-Radiation Pressure Component [m^2/ton]", "default": null, "name": "srp_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on A1 non-grav components [m^2/ton]", "default": null, "name": "a1_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on A2 non-grav components [m^2/ton]", "default": null, "name": "a2_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on A3 non-grav components [m^2/ton]", "default": null, "name": "a3_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on DT non-grav component", "default": null, "name": "dt_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Mean Anomaly [degrees]", "default": null, "name": "mean_anomaly_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Orbital Period [days]", "default": null, "name": "period_unc", "type": ["null", "double"]}, {"doc": "Uncertainty on Orbital Mean Motion [degrees per day]", "default": null, "name": "mean_motion_unc", "type": ["null", "double"]}, {"doc": "Epoch of the Orbfit-Solution in MJD", "default": null, "name": "epoch_mjd", "type": ["null", "double"]}, {"doc": "H-Magnitude", "default": null, "name": "h", "type": ["null", "double"]}, {"doc": "G-Slope Parameter", "default": null, "name": "g", "type": ["null", "double"]}, {"doc": "unnormalized rms of the fit [arcsec]", "default": null, "name": "not_normalized_rms", "type": ["null", "double"]}, {"doc": "rms of the fit [unitless]", "default": null, "name": "normalized_rms", "type": ["null", "double"]}, {"doc": "Minimum Orbit Intersection Distance [au] with respect to the Earths Orbit", "default": null, "name": "earth_moid", "type": ["null", "double"]}, {"doc": "Date of the last orbit fit", "default": null, "name": "fitting_datetime", "type": ["null", {"logicalType": "timestamp-micros", "type": "long"}]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]},A’'¾÷¿·D­ƒ¸¨5” Ò㣖 €€€€¶õºçTâ”(Éß¼í@w5Þõ ùu@÷Ì’9eVÏt»(À?÷Ì’9$ ˜933àBš™™?33òBÍÌŒ? ›D@Aff$B ›D@A2 +Vrà¼í@düÿÿÿµõºçVâ”(É¿¼í@w5Þõ ùu@÷Ì’9eVÏt»(À?÷Ì’9$ ˜933àBš™™?33òBÍÌŒ? ›D@Aff$B ›D@A2 +VrÀ¼í@dþÿÿÿµõºçTâ”(ÉŸ¼í@w5Þõ ùu@÷Ì’9eVÏt»(À?÷Ì’9$ ˜933àBš™™?33òBÍÌŒ? ›D@Aff$B ›D@A2 +Vr ¼í@d‚€€€¶õºçà¼í@w5Þõ ùu@÷Ì’9eVÏt»(À?÷Ì’9$ ˜9 + â”(ÉŸ¼í@â”(Éß¼í@,A’'¾÷¿·D­ƒ¸¨5 \ No newline at end of file diff --git a/python/lsst/alert/packet/schema/11/1/sample_data/generate.py b/python/lsst/alert/packet/schema/11/1/sample_data/generate.py new file mode 100644 index 0000000..2f731c1 --- /dev/null +++ b/python/lsst/alert/packet/schema/11/1/sample_data/generate.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import json +import lsst.alert.packet as packet + +with open("alert.json", "r") as f: + data = json.load(f) + +schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v11_1.alert").get_by_version("11.1") +with open("fakeAlert.avro", "wb") as f: + schema.store_alerts(f, [data]) diff --git a/python/lsst/alert/packet/schema/latest.txt b/python/lsst/alert/packet/schema/latest.txt index 2dbc24b..ef32e32 100644 --- a/python/lsst/alert/packet/schema/latest.txt +++ b/python/lsst/alert/packet/schema/latest.txt @@ -1 +1 @@ -11.0 +11.1