From eb5f5c250300e22e73e1419e43df115fafe60e89 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Feb 2025 12:02:38 -0500 Subject: [PATCH 01/20] add files for v7_2 --- .../schemas/lsst/7/2/lsst.v7_2.alert.avsc | 24 + .../lsst/7/2/lsst.v7_2.diaForcedSource.avsc | 69 + .../7/2/lsst.v7_2.diaNondetectionLimit.avsc | 11 + .../schemas/lsst/7/2/lsst.v7_2.diaObject.avsc | 733 ++++++++++ .../schemas/lsst/7/2/lsst.v7_2.diaSource.avsc | 1208 +++++++++++++++++ .../schemas/lsst/7/2/lsst.v7_2.ssObject.avsc | 471 +++++++ .../schemas/lsst/7/2/sample_data/alert.json | 109 ++ .../lsst/7/2/sample_data/fakeAlert.avro | 4 + .../schemas/lsst/7/2/sample_data/generate.py | 17 + 9 files changed, 2646 insertions(+) create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.alert.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaForcedSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaNondetectionLimit.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/lsst.v7_2.ssObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/2/sample_data/alert.json create mode 100644 pittgoogle/schemas/lsst/7/2/sample_data/fakeAlert.avro create mode 100644 pittgoogle/schemas/lsst/7/2/sample_data/generate.py diff --git a/pittgoogle/schemas/lsst/7/2/lsst.v7_2.alert.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.alert.avsc new file mode 100644 index 0000000..fabee56 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.alert.avsc @@ -0,0 +1,24 @@ +{ + "namespace": "lsst.v7_2", + "type": "record", + "name": "alert", + "doc": "Rubin Avro alert schema v7.2", + "fields": [ + {"name": "alertId", "type": "long", "doc": "unique alert identifer"}, + {"name": "diaSource", "type": "lsst.v7_2.diaSource"}, + {"name": "prvDiaSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_2.diaSource"}], "default": null}, + {"name": "prvDiaForcedSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_2.diaForcedSource"}], "default": null}, + {"name": "prvDiaNondetectionLimits", "type": ["null", { + "type": "array", + "items": "lsst.v7_2.diaNondetectionLimit"}], "default": null}, + {"name": "diaObject", "type": ["null", "lsst.v7_2.diaObject"], "default": null}, + {"name": "ssObject", "type": ["null", "lsst.v7_2.ssObject"], "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/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaForcedSource.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaForcedSource.avsc new file mode 100644 index 0000000..8027187 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaForcedSource.avsc @@ -0,0 +1,69 @@ +{ + "type": "record", + "namespace": "lsst.v7_2", + "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 at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", + "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.", + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfFlux.", + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "default": null, + "doc": "Filter band this source was observed with.", + "name": "band", + "type": [ + "null", + "string" + ] + } + ] +} diff --git a/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaNondetectionLimit.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaNondetectionLimit.avsc new file mode 100644 index 0000000..bb73a0c --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaNondetectionLimit.avsc @@ -0,0 +1,11 @@ +{ + "namespace": "lsst.v7_2", + "name": "diaNondetectionLimit", + "type": "record", + "fields": [ + {"name": "ccdVisitId", "type": "long"}, + {"name": "midpointMjdTai", "type": "double"}, + {"name": "band", "type": "string"}, + {"name": "diaNoise", "type": "float"} + ] +} diff --git a/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaObject.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaObject.avsc new file mode 100644 index 0000000..a0ce394 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaObject.avsc @@ -0,0 +1,733 @@ +{ + "type": "record", + "namespace": "lsst.v7_2", + "name": "diaObject", + "fields": [ + { + "doc": "Unique identifier of this DiaObject.", + "name": "diaObjectId", + "type": "long" + }, + { + "doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "default": null, + "doc": "Uncertainty of ra.", + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the position of the object at time radecMjdTai.", + "name": "dec", + "type": "double" + }, + { + "default": null, + "doc": "Uncertainty of dec.", + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between ra and dec.", + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", + "name": "radecMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Proper motion in right ascension.", + "name": "pmRa", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of pmRa.", + "name": "pmRaErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Proper motion of declination.", + "name": "pmDec", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of pmDec.", + "name": "pmDecErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Parallax.", + "name": "parallax", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of parallax.", + "name": "parallaxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of pmRa and pmDec.", + "name": "pmRa_pmDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of pmRa and parallax.", + "name": "pmRa_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of pmDec and parallax.", + "name": "pmDec_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", + "name": "pmParallaxLnL", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 static of the model fit.", + "name": "pmParallaxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the model.", + "name": "pmParallaxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for u filter.", + "name": "u_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of u_psfFluxMean.", + "name": "u_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of u_psfFlux.", + "name": "u_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", + "name": "u_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute u_psfFluxChi2.", + "name": "u_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for u filter.", + "name": "u_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of u_fpFluxMean.", + "name": "u_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of u_fpFlux.", + "name": "u_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for g filter.", + "name": "g_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of g_psfFluxMean.", + "name": "g_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of g_psfFlux.", + "name": "g_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", + "name": "g_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute g_psfFluxChi2.", + "name": "g_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for g filter.", + "name": "g_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of g_fpFluxMean.", + "name": "g_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of g_fpFlux.", + "name": "g_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for r filter.", + "name": "r_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of r_psfFluxMean.", + "name": "r_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of r_psfFlux.", + "name": "r_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", + "name": "r_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute r_psfFluxChi2.", + "name": "r_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for r filter.", + "name": "r_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of r_fpFluxMean.", + "name": "r_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of r_fpFlux.", + "name": "r_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for i filter.", + "name": "i_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of i_psfFluxMean.", + "name": "i_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of i_psfFlux.", + "name": "i_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", + "name": "i_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute i_psfFluxChi2.", + "name": "i_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for i filter.", + "name": "i_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of i_fpFluxMean.", + "name": "i_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of i_fpFlux.", + "name": "i_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for z filter.", + "name": "z_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of z_psfFluxMean.", + "name": "z_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of z_psfFlux.", + "name": "z_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", + "name": "z_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute z_psfFluxChi2.", + "name": "z_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for z filter.", + "name": "z_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of z_fpFluxMean.", + "name": "z_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of z_fpFlux.", + "name": "z_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Weighted mean point-source model magnitude for y filter.", + "name": "y_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of y_psfFluxMean.", + "name": "y_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of y_psfFlux.", + "name": "y_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", + "name": "y_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to compute y_psfFluxChi2.", + "name": "y_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Weighted mean forced photometry flux for y filter.", + "name": "y_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard error of y_fpFluxMean.", + "name": "y_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Standard deviation of the distribution of y_fpFlux.", + "name": "y_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Id of the closest nearby object.", + "name": "nearbyObj1", + "type": [ + "null", + "long" + ] + }, + { + "default": null, + "doc": "Distance to nearbyObj1.", + "name": "nearbyObj1Dist", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", + "name": "nearbyObj1LnP", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Id of the second-closest nearby object.", + "name": "nearbyObj2", + "type": [ + "null", + "long" + ] + }, + { + "default": null, + "doc": "Distance to nearbyObj2.", + "name": "nearbyObj2Dist", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", + "name": "nearbyObj2LnP", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Id of the third-closest nearby object.", + "name": "nearbyObj3", + "type": [ + "null", + "long" + ] + }, + { + "default": null, + "doc": "Distance to nearbyObj3.", + "name": "nearbyObj3Dist", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", + "name": "nearbyObj3LnP", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the u band flux errors.", + "name": "u_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the g band flux errors.", + "name": "g_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the r band flux errors.", + "name": "r_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the i band flux errors.", + "name": "i_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the z band flux errors.", + "name": "z_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Mean of the y band flux errors.", + "name": "y_psfFluxErrMean", + "type": [ + "null", + "float" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaSource.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaSource.avsc new file mode 100644 index 0000000..6263d6e --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.diaSource.avsc @@ -0,0 +1,1208 @@ +{ + "type": "record", + "namespace": "lsst.v7_2", + "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.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "doc": "Right ascension coordinate of the center of this diaSource.", + "name": "ra", + "type": "double" + }, + { + "default": null, + "doc": "Uncertainty of ra.", + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the center of this diaSource.", + "name": "dec", + "type": "double" + }, + { + "default": null, + "doc": "Uncertainty of dec.", + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between ra and dec.", + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "x position computed by a centroiding algorithm.", + "name": "x", + "type": "float" + }, + { + "default": null, + "doc": "Uncertainty of x.", + "name": "xErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "y position computed by a centroiding algorithm.", + "name": "y", + "type": "float" + }, + { + "default": null, + "doc": "Uncertainty of y.", + "name": "yErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between x and y.", + "name": "x_y_Cov", + "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.", + "name": "apFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated uncertainty of apFlux.", + "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": "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.", + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfFlux.", + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Right ascension coordinate of centroid for point source model.", + "name": "psfRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfRa.", + "name": "psfRaErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Declination coordinate of centroid for point source model.", + "name": "psfDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of psfDec.", + "name": "psfDecErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between psfFlux and psfRa.", + "name": "psfFlux_psfRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between psfFlux and psfDec.", + "name": "psfFlux_psfDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance between psfRa and psfDec.", + "name": "psfRa_psfDec_Cov", + "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" + ] + }, + { + "default": null, + "doc": "The number of data points (pixels) used to fit the point source model.", + "name": "psfNdata", + "type": [ + "null", + "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.", + "name": "trailFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailFlux.", + "name": "trailFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Right ascension coordinate of centroid for trailed source model.", + "name": "trailRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailRa.", + "name": "trailRaErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Declination coordinate of centroid for trailed source model.", + "name": "trailDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailDec.", + "name": "trailDecErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood fit of trail length.", + "name": "trailLength", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailLength.", + "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).", + "name": "trailAngle", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of trailAngle.", + "name": "trailAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailFlux and trailRa.", + "name": "trailFlux_trailRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailFlux and trailDec.", + "name": "trailFlux_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailFlux and trailLength", + "name": "trailFlux_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailFlux and trailAngle", + "name": "trailFlux_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailRa and trailDec.", + "name": "trailRa_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailRa and trailLength.", + "name": "trailRa_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailRa and trailAngle.", + "name": "trailRa_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailDec and trailLength.", + "name": "trailDec_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailDec and trailAngle.", + "name": "trailDec_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of trailLength and trailAngle", + "name": "trailLength_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log likelihood of the observed data given the trailed source model.", + "name": "trailLnL", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the trailed source model fit.", + "name": "trailChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points (pixels) used to fit the trailed source model.", + "name": "trailNdata", + "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", + "name": "dipoleMeanFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleMeanFlux.", + "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.", + "name": "dipoleFluxDiff", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleFluxDiff.", + "name": "dipoleFluxDiffErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Right ascension coordinate of centroid for dipole model.", + "name": "dipoleRa", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleRa.", + "name": "dipoleRaErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Declination coordinate of centroid for dipole model.", + "name": "dipoleDec", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleDec.", + "name": "dipoleDecErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Maximum likelihood value for the lobe separation in dipole model.", + "name": "dipoleLength", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleLength.", + "name": "dipoleLengthErr", + "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).", + "name": "dipoleAngle", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of dipoleAngle.", + "name": "dipoleAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", + "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleRa.", + "name": "dipoleMeanFlux_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleDec.", + "name": "dipoleMeanFlux_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleLength.", + "name": "dipoleMeanFlux_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", + "name": "dipoleMeanFlux_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleRa.", + "name": "dipoleFluxDiff_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleDec.", + "name": "dipoleFluxDiff_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleLength.", + "name": "dipoleFluxDiff_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", + "name": "dipoleFluxDiff_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleRa and dipoleDec.", + "name": "dipoleRa_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleRa and dipoleLength.", + "name": "dipoleRa_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleRa and dipoleAngle.", + "name": "dipoleRa_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleDec and dipoleLength.", + "name": "dipoleDec_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleDec and dipoleAngle.", + "name": "dipoleDec_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of dipoleLength and dipoleAngle.", + "name": "dipoleLength_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Natural log likelihood of the observed data given the dipole source model.", + "name": "dipoleLnL", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the model fit.", + "name": "dipoleChi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points (pixels) used to fit the model.", + "name": "dipoleNdata", + "type": [ + "null", + "int" + ] + }, + { + "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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", + "name": "snapDiffFlux", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated uncertainty of snapDiffFlux.", + "name": "snapDiffFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated sky background at the position (centroid) of the object.", + "name": "fpBkgd", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Estimated uncertainty of fpBkgd.", + "name": "fpBkgdErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity.", + "name": "ixx", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of ixx.", + "name": "ixxErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity.", + "name": "iyy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of iyy.", + "name": "iyyErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment of the source intensity.", + "name": "ixy", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of ixy.", + "name": "ixyErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of ixx and iyy.", + "name": "ixx_iyy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of ixx and ixy.", + "name": "ixx_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Covariance of iyy and ixy.", + "name": "iyy_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF.", + "name": "ixxPSF", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF.", + "name": "iyyPSF", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Adaptive second moment for the PSF.", + "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", + "name": "reliability", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Filter band this source was observed with.", + "name": "band", + "type": [ + "null", + "string" + ] + }, + { + "default": null, + "doc": "Attempted to fit a dipole model to this source.", + "name": "dipoleFitAttempted", + "type": [ + "null", + "boolean" + ] + }, + { + "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 NO_DATA, or centroid off image).", + "name": "pixelFlags_edge", + "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" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/2/lsst.v7_2.ssObject.avsc b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.ssObject.avsc new file mode 100644 index 0000000..39de2c1 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/lsst.v7_2.ssObject.avsc @@ -0,0 +1,471 @@ +{ + "type": "record", + "namespace": "lsst.v7_2", + "name": "ssObject", + "fields": [ + { + "doc": "Unique identifier.", + "name": "ssObjectId", + "type": "long" + }, + { + "default": null, + "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", + "name": "discoverySubmissionDate", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", + "name": "firstObservationDate", + "type": [ + "null", + "double" + ] + }, + { + "default": null, + "doc": "Arc of LSST observations.", + "name": "arc", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Number of LSST observations of this object.", + "name": "numObs", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Minimum orbit intersection distance to Earth.", + "name": "MOID", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "True anomaly of the MOID point.", + "name": "MOIDTrueAnomaly", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Ecliptic longitude of the MOID point.", + "name": "MOIDEclipticLongitude", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "DeltaV at the MOID point.", + "name": "MOIDDeltaV", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (u band).", + "name": "u_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (u band).", + "name": "u_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (u band).", + "name": "u_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (u band).", + "name": "u_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (u band).", + "name": "u_H_u_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (u band).", + "name": "u_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (u band).", + "name": "u_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (g band).", + "name": "g_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (g band).", + "name": "g_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (g band).", + "name": "g_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (g band).", + "name": "g_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (g band).", + "name": "g_H_g_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (g band).", + "name": "g_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (g band).", + "name": "g_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (r band).", + "name": "r_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (r band).", + "name": "r_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (r band).", + "name": "r_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (r band).", + "name": "r_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (r band).", + "name": "r_H_r_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (r band).", + "name": "r_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (r band).", + "name": "r_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (i band).", + "name": "i_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (i band).", + "name": "i_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (i band).", + "name": "i_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (i band).", + "name": "i_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (i band).", + "name": "i_H_i_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (i band).", + "name": "i_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (i band).", + "name": "i_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (z band).", + "name": "z_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (z band).", + "name": "z_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (z band).", + "name": "z_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (z band).", + "name": "z_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (z band).", + "name": "z_H_z_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (z band).", + "name": "z_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (z band).", + "name": "z_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "Best fit absolute magnitude (y band).", + "name": "y_H", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Best fit G12 slope parameter (y band).", + "name": "y_G12", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of H (y band).", + "name": "y_HErr", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Uncertainty of G12 (y band).", + "name": "y_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "H-G12 covariance (y band).", + "name": "y_H_y_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "Chi^2 statistic of the phase curve fit (y band).", + "name": "y_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "default": null, + "doc": "The number of data points used to fit the phase curve (y band).", + "name": "y_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "default": null, + "doc": "median `extendedness` value from the DIASource.", + "name": "medianExtendedness", + "type": [ + "null", + "float" + ] + } + ] +} diff --git a/pittgoogle/schemas/lsst/7/2/sample_data/alert.json b/pittgoogle/schemas/lsst/7/2/sample_data/alert.json new file mode 100644 index 0000000..1a1f952 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/sample_data/alert.json @@ -0,0 +1,109 @@ +{ + "alertId": 1231321321, + "l1dbId": 222222222, + "diaSource": + { + "diaSourceId": 281323062375219200, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + }, + "prvDiaSources": [ + { + "diaSourceId": 281323062375219198, + "time_processed": 0, + "visit": 2, + "detector": 43, + "midpointMjdTai": 1480360995, + "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 + }, + { + "diaSourceId": 281323062375219199, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + } + ], + "diaObject": { + "diaObjectId": 281323062375219201, + "validityStart": 0, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "radecMjdTai": 1480360995, + "pmRa": 0.00013, + "pmDec": 0.00014, + "parallax": 2.124124, + "pmRaErr": 0.00013, + "pmDecErr": 0.00013, + "pmParallaxNdata": 0, + "parallaxErr": 0.00013, + "pmRa_pmDec_Cov": 0.00013, + "pmRa_parallax_Cov": 0.00013, + "pmDec_parallax_Cov": 0.00013, + "pmParallaxLnL": 0.00013, + "pmParallaxChi2": 0.00013, + "pmParallaxNdata": 1214 + }, + "ssObject": { + "ssObjectId":5364546, + "numObs": 10 + } +} diff --git a/pittgoogle/schemas/lsst/7/2/sample_data/fakeAlert.avro b/pittgoogle/schemas/lsst/7/2/sample_data/fakeAlert.avro new file mode 100644 index 0000000..4ebfe3f --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/sample_data/fakeAlert.avro @@ -0,0 +1,4 @@ +Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.2", "name": "lsst.v7_2.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_2.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"doc": "Uncertainty of x.", "default": null, "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"doc": "Uncertainty of y.", "default": null, "name": "yErr", "type": ["null", "float"]}, {"doc": "Covariance between x and y.", "default": null, "name": "x_y_Cov", "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.", "default": null, "name": "apFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of apFlux.", "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": "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for point source model.", "default": null, "name": "psfRa", "type": ["null", "double"]}, {"doc": "Uncertainty of psfRa.", "default": null, "name": "psfRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for point source model.", "default": null, "name": "psfDec", "type": ["null", "double"]}, {"doc": "Uncertainty of psfDec.", "default": null, "name": "psfDecErr", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfRa.", "default": null, "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfDec.", "default": null, "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfRa and psfDec.", "default": null, "name": "psfRa_psfDec_Cov", "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.", "default": null, "name": "psfNdata", "type": ["null", "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.", "default": null, "name": "trailFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of trailFlux.", "default": null, "name": "trailFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for trailed source model.", "default": null, "name": "trailRa", "type": ["null", "double"]}, {"doc": "Uncertainty of trailRa.", "default": null, "name": "trailRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for trailed source model.", "default": null, "name": "trailDec", "type": ["null", "double"]}, {"doc": "Uncertainty of trailDec.", "default": null, "name": "trailDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of trail length.", "default": null, "name": "trailLength", "type": ["null", "float"]}, {"doc": "Uncertainty of trailLength.", "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).", "default": null, "name": "trailAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of trailAngle.", "default": null, "name": "trailAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailRa.", "default": null, "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailDec.", "default": null, "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailLength", "default": null, "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailAngle", "default": null, "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailDec.", "default": null, "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailLength.", "default": null, "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailAngle.", "default": null, "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailLength.", "default": null, "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailAngle.", "default": null, "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailLength and trailAngle", "default": null, "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the trailed source model.", "default": null, "name": "trailLnL", "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.", "default": null, "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "default": null, "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleMeanFlux.", "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.", "default": null, "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleFluxDiff.", "default": null, "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for dipole model.", "default": null, "name": "dipoleRa", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleRa.", "default": null, "name": "dipoleRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for dipole model.", "default": null, "name": "dipoleDec", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleDec.", "default": null, "name": "dipoleDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the lobe separation in dipole model.", "default": null, "name": "dipoleLength", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleLength.", "default": null, "name": "dipoleLengthErr", "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).", "default": null, "name": "dipoleAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleAngle.", "default": null, "name": "dipoleAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "default": null, "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleRa.", "default": null, "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleDec.", "default": null, "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleLength.", "default": null, "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "default": null, "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleRa.", "default": null, "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleDec.", "default": null, "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleLength.", "default": null, "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "default": null, "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleDec.", "default": null, "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleLength.", "default": null, "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleAngle.", "default": null, "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleLength.", "default": null, "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleAngle.", "default": null, "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleLength and dipoleAngle.", "default": null, "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the dipole source model.", "default": null, "name": "dipoleLnL", "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.", "default": null, "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "default": null, "name": "snapDiffFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of snapDiffFlux.", "default": null, "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"doc": "Estimated sky background at the position (centroid) of the object.", "default": null, "name": "fpBkgd", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of fpBkgd.", "default": null, "name": "fpBkgdErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixx", "type": ["null", "float"]}, {"doc": "Uncertainty of ixx.", "default": null, "name": "ixxErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "iyy", "type": ["null", "float"]}, {"doc": "Uncertainty of iyy.", "default": null, "name": "iyyErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixy", "type": ["null", "float"]}, {"doc": "Uncertainty of ixy.", "default": null, "name": "ixyErr", "type": ["null", "float"]}, {"doc": "Covariance of ixx and iyy.", "default": null, "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of ixx and ixy.", "default": null, "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of iyy and ixy.", "default": null, "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "ixxPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "iyyPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "default": null, "name": "reliability", "type": ["null", "float"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Attempted to fit a dipole model to this source.", "default": null, "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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 NO_DATA, or centroid off image).", "default": null, "name": "pixelFlags_edge", "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"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_2.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_2.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_2.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_2.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "radecMjdTai", "type": ["null", "double"]}, {"doc": "Proper motion in right ascension.", "default": null, "name": "pmRa", "type": ["null", "float"]}, {"doc": "Uncertainty of pmRa.", "default": null, "name": "pmRaErr", "type": ["null", "float"]}, {"doc": "Proper motion of declination.", "default": null, "name": "pmDec", "type": ["null", "float"]}, {"doc": "Uncertainty of pmDec.", "default": null, "name": "pmDecErr", "type": ["null", "float"]}, {"doc": "Parallax.", "default": null, "name": "parallax", "type": ["null", "float"]}, {"doc": "Uncertainty of parallax.", "default": null, "name": "parallaxErr", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and pmDec.", "default": null, "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and parallax.", "default": null, "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmDec and parallax.", "default": null, "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "default": null, "name": "pmParallaxLnL", "type": ["null", "float"]}, {"doc": "Chi^2 static of the model fit.", "default": null, "name": "pmParallaxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the model.", "default": null, "name": "pmParallaxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean point-source model magnitude for u filter.", "default": null, "name": "u_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_psfFluxMean.", "default": null, "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_psfFlux.", "default": null, "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "default": null, "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute u_psfFluxChi2.", "default": null, "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for u filter.", "default": null, "name": "u_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_fpFluxMean.", "default": null, "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_fpFlux.", "default": null, "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for g filter.", "default": null, "name": "g_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_psfFluxMean.", "default": null, "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_psfFlux.", "default": null, "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "default": null, "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute g_psfFluxChi2.", "default": null, "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for g filter.", "default": null, "name": "g_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_fpFluxMean.", "default": null, "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_fpFlux.", "default": null, "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for r filter.", "default": null, "name": "r_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_psfFluxMean.", "default": null, "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_psfFlux.", "default": null, "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "default": null, "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute r_psfFluxChi2.", "default": null, "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for r filter.", "default": null, "name": "r_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_fpFluxMean.", "default": null, "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_fpFlux.", "default": null, "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for i filter.", "default": null, "name": "i_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_psfFluxMean.", "default": null, "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_psfFlux.", "default": null, "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "default": null, "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute i_psfFluxChi2.", "default": null, "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for i filter.", "default": null, "name": "i_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_fpFluxMean.", "default": null, "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_fpFlux.", "default": null, "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for z filter.", "default": null, "name": "z_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_psfFluxMean.", "default": null, "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_psfFlux.", "default": null, "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "default": null, "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute z_psfFluxChi2.", "default": null, "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for z filter.", "default": null, "name": "z_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_fpFluxMean.", "default": null, "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_fpFlux.", "default": null, "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for y filter.", "default": null, "name": "y_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_psfFluxMean.", "default": null, "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_psfFlux.", "default": null, "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "default": null, "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute y_psfFluxChi2.", "default": null, "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for y filter.", "default": null, "name": "y_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_fpFluxMean.", "default": null, "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_fpFlux.", "default": null, "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Id of the closest nearby object.", "default": null, "name": "nearbyObj1", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj1.", "default": null, "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "default": null, "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"doc": "Id of the second-closest nearby object.", "default": null, "name": "nearbyObj2", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj2.", "default": null, "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "default": null, "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"doc": "Id of the third-closest nearby object.", "default": null, "name": "nearbyObj3", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj3.", "default": null, "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "default": null, "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"doc": "Mean of the u band flux errors.", "default": null, "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the g band flux errors.", "default": null, "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the r band flux errors.", "default": null, "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the i band flux errors.", "default": null, "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the z band flux errors.", "default": null, "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the y band flux errors.", "default": null, "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_2.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "default": null, "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "default": null, "name": "firstObservationDate", "type": ["null", "double"]}, {"doc": "Arc of LSST observations.", "default": null, "name": "arc", "type": ["null", "float"]}, {"doc": "Number of LSST observations of this object.", "default": null, "name": "numObs", "type": ["null", "int"]}, {"doc": "Minimum orbit intersection distance to Earth.", "default": null, "name": "MOID", "type": ["null", "float"]}, {"doc": "True anomaly of the MOID point.", "default": null, "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"doc": "Ecliptic longitude of the MOID point.", "default": null, "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"doc": "DeltaV at the MOID point.", "default": null, "name": "MOIDDeltaV", "type": ["null", "float"]}, {"doc": "Best fit absolute magnitude (u band).", "default": null, "name": "u_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (u band).", "default": null, "name": "u_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (u band).", "default": null, "name": "u_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (u band).", "default": null, "name": "u_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (u band).", "default": null, "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (u band).", "default": null, "name": "u_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (u band).", "default": null, "name": "u_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (g band).", "default": null, "name": "g_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (g band).", "default": null, "name": "g_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (g band).", "default": null, "name": "g_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (g band).", "default": null, "name": "g_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (g band).", "default": null, "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (g band).", "default": null, "name": "g_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (g band).", "default": null, "name": "g_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (r band).", "default": null, "name": "r_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (r band).", "default": null, "name": "r_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (r band).", "default": null, "name": "r_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (r band).", "default": null, "name": "r_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (r band).", "default": null, "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (r band).", "default": null, "name": "r_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (r band).", "default": null, "name": "r_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (i band).", "default": null, "name": "i_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (i band).", "default": null, "name": "i_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (i band).", "default": null, "name": "i_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (i band).", "default": null, "name": "i_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (i band).", "default": null, "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (i band).", "default": null, "name": "i_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (i band).", "default": null, "name": "i_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (z band).", "default": null, "name": "z_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (z band).", "default": null, "name": "z_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (z band).", "default": null, "name": "z_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (z band).", "default": null, "name": "z_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (z band).", "default": null, "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (z band).", "default": null, "name": "z_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (z band).", "default": null, "name": "z_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (y band).", "default": null, "name": "y_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (y band).", "default": null, "name": "y_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (y band).", "default": null, "name": "y_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (y band).", "default": null, "name": "y_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (y band).", "default": null, "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (y band).", "default": null, "name": "y_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (y band).", "default": null, "name": "y_Ndata", "type": ["null", "int"]}, {"doc": "median `extendedness` value from the DIASource.", "default": null, "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}Ifh7㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9Ifh7 \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/2/sample_data/generate.py b/pittgoogle/schemas/lsst/7/2/sample_data/generate.py new file mode 100644 index 0000000..dd89dfd --- /dev/null +++ b/pittgoogle/schemas/lsst/7/2/sample_data/generate.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +import json +import lsst.alert.packet as packet +from datetime import datetime +import pandas as pd + +with open("alert.json", "r") as f: + data = json.load(f) + + data_time = datetime.now() + + data['diaSource']['time_processed'] = pd.Timestamp(data_time) + data['diaObject']['validityStart'] = pd.Timestamp(data_time) + +schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_2.alert").get_by_version("7.2") +with open("fakeAlert.avro", "wb") as f: + schema.store_alerts(f, [data]) From c7173aa0b49a5a3c379859576bf83facc4d95e38 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Feb 2025 12:07:36 -0500 Subject: [PATCH 02/20] add files for v7_3 --- .../schemas/lsst/7/3/lsst.v7_3.alert.avsc | 24 + .../lsst/7/3/lsst.v7_3.diaForcedSource.avsc | 69 + .../7/3/lsst.v7_3.diaNondetectionLimit.avsc | 11 + .../schemas/lsst/7/3/lsst.v7_3.diaObject.avsc | 733 ++++++++++ .../schemas/lsst/7/3/lsst.v7_3.diaSource.avsc | 1217 +++++++++++++++++ .../schemas/lsst/7/3/lsst.v7_3.ssObject.avsc | 471 +++++++ .../schemas/lsst/7/3/sample_data/alert.json | 109 ++ .../lsst/7/3/sample_data/fakeAlert.avro | 4 + .../schemas/lsst/7/3/sample_data/generate.py | 17 + 9 files changed, 2655 insertions(+) create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.alert.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaForcedSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaNondetectionLimit.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/lsst.v7_3.ssObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/3/sample_data/alert.json create mode 100644 pittgoogle/schemas/lsst/7/3/sample_data/fakeAlert.avro create mode 100644 pittgoogle/schemas/lsst/7/3/sample_data/generate.py diff --git a/pittgoogle/schemas/lsst/7/3/lsst.v7_3.alert.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.alert.avsc new file mode 100644 index 0000000..68b4479 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.alert.avsc @@ -0,0 +1,24 @@ +{ + "namespace": "lsst.v7_3", + "type": "record", + "name": "alert", + "doc": "Rubin Avro alert schema v7.3", + "fields": [ + {"name": "alertId", "type": "long", "doc": "unique alert identifer"}, + {"name": "diaSource", "type": "lsst.v7_3.diaSource"}, + {"name": "prvDiaSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_3.diaSource"}], "default": null}, + {"name": "prvDiaForcedSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_3.diaForcedSource"}], "default": null}, + {"name": "prvDiaNondetectionLimits", "type": ["null", { + "type": "array", + "items": "lsst.v7_3.diaNondetectionLimit"}], "default": null}, + {"name": "diaObject", "type": ["null", "lsst.v7_3.diaObject"], "default": null}, + {"name": "ssObject", "type": ["null", "lsst.v7_3.ssObject"], "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/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaForcedSource.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaForcedSource.avsc new file mode 100644 index 0000000..eee5f7f --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaForcedSource.avsc @@ -0,0 +1,69 @@ +{ + "type": "record", + "namespace": "lsst.v7_3", + "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 at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", + "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.", + "default": null, + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of psfFlux.", + "default": null, + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "doc": "Filter band this source was observed with.", + "default": null, + "name": "band", + "type": [ + "null", + "string" + ] + } + ] +} diff --git a/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaNondetectionLimit.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaNondetectionLimit.avsc new file mode 100644 index 0000000..fe87d91 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaNondetectionLimit.avsc @@ -0,0 +1,11 @@ +{ + "namespace": "lsst.v7_3", + "name": "diaNondetectionLimit", + "type": "record", + "fields": [ + {"name": "ccdVisitId", "type": "long"}, + {"name": "midpointMjdTai", "type": "double"}, + {"name": "band", "type": "string"}, + {"name": "diaNoise", "type": "float"} + ] +} diff --git a/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaObject.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaObject.avsc new file mode 100644 index 0000000..45489a1 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaObject.avsc @@ -0,0 +1,733 @@ +{ + "type": "record", + "namespace": "lsst.v7_3", + "name": "diaObject", + "fields": [ + { + "doc": "Unique identifier of this DiaObject.", + "name": "diaObjectId", + "type": "long" + }, + { + "doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "doc": "Uncertainty of ra.", + "default": null, + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the position of the object at time radecMjdTai.", + "name": "dec", + "type": "double" + }, + { + "doc": "Uncertainty of dec.", + "default": null, + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between ra and dec.", + "default": null, + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", + "default": null, + "name": "radecMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Proper motion in right ascension.", + "default": null, + "name": "pmRa", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of pmRa.", + "default": null, + "name": "pmRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Proper motion of declination.", + "default": null, + "name": "pmDec", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of pmDec.", + "default": null, + "name": "pmDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Parallax.", + "default": null, + "name": "parallax", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of parallax.", + "default": null, + "name": "parallaxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmRa and pmDec.", + "default": null, + "name": "pmRa_pmDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmRa and parallax.", + "default": null, + "name": "pmRa_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmDec and parallax.", + "default": null, + "name": "pmDec_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", + "default": null, + "name": "pmParallaxLnL", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 static of the model fit.", + "default": null, + "name": "pmParallaxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the model.", + "default": null, + "name": "pmParallaxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for u filter.", + "default": null, + "name": "u_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of u_psfFluxMean.", + "default": null, + "name": "u_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of u_psfFlux.", + "default": null, + "name": "u_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", + "default": null, + "name": "u_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute u_psfFluxChi2.", + "default": null, + "name": "u_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for u filter.", + "default": null, + "name": "u_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of u_fpFluxMean.", + "default": null, + "name": "u_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of u_fpFlux.", + "default": null, + "name": "u_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for g filter.", + "default": null, + "name": "g_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of g_psfFluxMean.", + "default": null, + "name": "g_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of g_psfFlux.", + "default": null, + "name": "g_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", + "default": null, + "name": "g_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute g_psfFluxChi2.", + "default": null, + "name": "g_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for g filter.", + "default": null, + "name": "g_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of g_fpFluxMean.", + "default": null, + "name": "g_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of g_fpFlux.", + "default": null, + "name": "g_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for r filter.", + "default": null, + "name": "r_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of r_psfFluxMean.", + "default": null, + "name": "r_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of r_psfFlux.", + "default": null, + "name": "r_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", + "default": null, + "name": "r_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute r_psfFluxChi2.", + "default": null, + "name": "r_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for r filter.", + "default": null, + "name": "r_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of r_fpFluxMean.", + "default": null, + "name": "r_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of r_fpFlux.", + "default": null, + "name": "r_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for i filter.", + "default": null, + "name": "i_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of i_psfFluxMean.", + "default": null, + "name": "i_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of i_psfFlux.", + "default": null, + "name": "i_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", + "default": null, + "name": "i_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute i_psfFluxChi2.", + "default": null, + "name": "i_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for i filter.", + "default": null, + "name": "i_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of i_fpFluxMean.", + "default": null, + "name": "i_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of i_fpFlux.", + "default": null, + "name": "i_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for z filter.", + "default": null, + "name": "z_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of z_psfFluxMean.", + "default": null, + "name": "z_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of z_psfFlux.", + "default": null, + "name": "z_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", + "default": null, + "name": "z_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute z_psfFluxChi2.", + "default": null, + "name": "z_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for z filter.", + "default": null, + "name": "z_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of z_fpFluxMean.", + "default": null, + "name": "z_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of z_fpFlux.", + "default": null, + "name": "z_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for y filter.", + "default": null, + "name": "y_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of y_psfFluxMean.", + "default": null, + "name": "y_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of y_psfFlux.", + "default": null, + "name": "y_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", + "default": null, + "name": "y_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute y_psfFluxChi2.", + "default": null, + "name": "y_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for y filter.", + "default": null, + "name": "y_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of y_fpFluxMean.", + "default": null, + "name": "y_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of y_fpFlux.", + "default": null, + "name": "y_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the closest nearby object.", + "default": null, + "name": "nearbyObj1", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj1.", + "default": null, + "name": "nearbyObj1Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", + "default": null, + "name": "nearbyObj1LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the second-closest nearby object.", + "default": null, + "name": "nearbyObj2", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj2.", + "default": null, + "name": "nearbyObj2Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", + "default": null, + "name": "nearbyObj2LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the third-closest nearby object.", + "default": null, + "name": "nearbyObj3", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj3.", + "default": null, + "name": "nearbyObj3Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", + "default": null, + "name": "nearbyObj3LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the u band flux errors.", + "default": null, + "name": "u_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the g band flux errors.", + "default": null, + "name": "g_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the r band flux errors.", + "default": null, + "name": "r_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the i band flux errors.", + "default": null, + "name": "i_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the z band flux errors.", + "default": null, + "name": "z_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the y band flux errors.", + "default": null, + "name": "y_psfFluxErrMean", + "type": [ + "null", + "float" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaSource.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaSource.avsc new file mode 100644 index 0000000..934dac6 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.diaSource.avsc @@ -0,0 +1,1217 @@ +{ + "type": "record", + "namespace": "lsst.v7_3", + "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" + }, + { + "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.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "doc": "Right ascension coordinate of the center of this diaSource.", + "name": "ra", + "type": "double" + }, + { + "doc": "Uncertainty of ra.", + "default": null, + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the center of this diaSource.", + "name": "dec", + "type": "double" + }, + { + "doc": "Uncertainty of dec.", + "default": null, + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between ra and dec.", + "default": null, + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "x position computed by a centroiding algorithm.", + "name": "x", + "type": "float" + }, + { + "doc": "Uncertainty of x.", + "default": null, + "name": "xErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "y position computed by a centroiding algorithm.", + "name": "y", + "type": "float" + }, + { + "doc": "Uncertainty of y.", + "default": null, + "name": "yErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between x and y.", + "default": null, + "name": "x_y_Cov", + "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": "Source was detected as significantly negative.", + "default": null, + "name": "is_negative", + "type": [ + "null", + "boolean" + ] + }, + { + "doc": "Flux in a 12 pixel radius aperture on the difference image.", + "default": null, + "name": "apFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of apFlux.", + "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": "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.", + "default": null, + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of psfFlux.", + "default": null, + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for point source model.", + "default": null, + "name": "psfRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of psfRa.", + "default": null, + "name": "psfRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for point source model.", + "default": null, + "name": "psfDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of psfDec.", + "default": null, + "name": "psfDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfFlux and psfRa.", + "default": null, + "name": "psfFlux_psfRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfFlux and psfDec.", + "default": null, + "name": "psfFlux_psfDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfRa and psfDec.", + "default": null, + "name": "psfRa_psfDec_Cov", + "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.", + "default": null, + "name": "psfNdata", + "type": [ + "null", + "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.", + "default": null, + "name": "trailFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailFlux.", + "default": null, + "name": "trailFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for trailed source model.", + "default": null, + "name": "trailRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of trailRa.", + "default": null, + "name": "trailRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for trailed source model.", + "default": null, + "name": "trailDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of trailDec.", + "default": null, + "name": "trailDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Maximum likelihood fit of trail length.", + "default": null, + "name": "trailLength", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailLength.", + "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).", + "default": null, + "name": "trailAngle", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailAngle.", + "default": null, + "name": "trailAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailRa.", + "default": null, + "name": "trailFlux_trailRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailDec.", + "default": null, + "name": "trailFlux_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailLength", + "default": null, + "name": "trailFlux_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailAngle", + "default": null, + "name": "trailFlux_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailDec.", + "default": null, + "name": "trailRa_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailLength.", + "default": null, + "name": "trailRa_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailAngle.", + "default": null, + "name": "trailRa_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailDec and trailLength.", + "default": null, + "name": "trailDec_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailDec and trailAngle.", + "default": null, + "name": "trailDec_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailLength and trailAngle", + "default": null, + "name": "trailLength_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log likelihood of the observed data given the trailed source model.", + "default": null, + "name": "trailLnL", + "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.", + "default": null, + "name": "trailNdata", + "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", + "default": null, + "name": "dipoleMeanFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleMeanFlux.", + "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.", + "default": null, + "name": "dipoleFluxDiff", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleFluxDiff.", + "default": null, + "name": "dipoleFluxDiffErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for dipole model.", + "default": null, + "name": "dipoleRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of dipoleRa.", + "default": null, + "name": "dipoleRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for dipole model.", + "default": null, + "name": "dipoleDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of dipoleDec.", + "default": null, + "name": "dipoleDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Maximum likelihood value for the lobe separation in dipole model.", + "default": null, + "name": "dipoleLength", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleLength.", + "default": null, + "name": "dipoleLengthErr", + "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).", + "default": null, + "name": "dipoleAngle", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleAngle.", + "default": null, + "name": "dipoleAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", + "default": null, + "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleRa.", + "default": null, + "name": "dipoleMeanFlux_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleDec.", + "default": null, + "name": "dipoleMeanFlux_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleLength.", + "default": null, + "name": "dipoleMeanFlux_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", + "default": null, + "name": "dipoleMeanFlux_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleRa.", + "default": null, + "name": "dipoleFluxDiff_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleDec.", + "default": null, + "name": "dipoleFluxDiff_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleLength.", + "default": null, + "name": "dipoleFluxDiff_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", + "default": null, + "name": "dipoleFluxDiff_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleDec.", + "default": null, + "name": "dipoleRa_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleLength.", + "default": null, + "name": "dipoleRa_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleAngle.", + "default": null, + "name": "dipoleRa_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleDec and dipoleLength.", + "default": null, + "name": "dipoleDec_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleDec and dipoleAngle.", + "default": null, + "name": "dipoleDec_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleLength and dipoleAngle.", + "default": null, + "name": "dipoleLength_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log likelihood of the observed data given the dipole source model.", + "default": null, + "name": "dipoleLnL", + "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.", + "default": null, + "name": "dipoleNdata", + "type": [ + "null", + "int" + ] + }, + { + "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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", + "default": null, + "name": "snapDiffFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of snapDiffFlux.", + "default": null, + "name": "snapDiffFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated sky background at the position (centroid) of the object.", + "default": null, + "name": "fpBkgd", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of fpBkgd.", + "default": null, + "name": "fpBkgdErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "ixx", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of ixx.", + "default": null, + "name": "ixxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "iyy", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of iyy.", + "default": null, + "name": "iyyErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "ixy", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of ixy.", + "default": null, + "name": "ixyErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of ixx and iyy.", + "default": null, + "name": "ixx_iyy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of ixx and ixy.", + "default": null, + "name": "ixx_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of iyy and ixy.", + "default": null, + "name": "iyy_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "default": null, + "name": "ixxPSF", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "default": null, + "name": "iyyPSF", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", + "default": null, + "name": "reliability", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Filter band this source was observed with.", + "default": null, + "name": "band", + "type": [ + "null", + "string" + ] + }, + { + "doc": "Attempted to fit a dipole model to this source.", + "default": null, + "name": "dipoleFitAttempted", + "type": [ + "null", + "boolean" + ] + }, + { + "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 NO_DATA, or centroid off image).", + "default": null, + "name": "pixelFlags_edge", + "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" + ] + } + ] +} diff --git a/pittgoogle/schemas/lsst/7/3/lsst.v7_3.ssObject.avsc b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.ssObject.avsc new file mode 100644 index 0000000..7261303 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/lsst.v7_3.ssObject.avsc @@ -0,0 +1,471 @@ +{ + "type": "record", + "namespace": "lsst.v7_3", + "name": "ssObject", + "fields": [ + { + "doc": "Unique identifier.", + "name": "ssObjectId", + "type": "long" + }, + { + "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", + "default": null, + "name": "discoverySubmissionDate", + "type": [ + "null", + "double" + ] + }, + { + "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", + "default": null, + "name": "firstObservationDate", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Arc of LSST observations.", + "default": null, + "name": "arc", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Number of LSST observations of this object.", + "default": null, + "name": "numObs", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Minimum orbit intersection distance to Earth.", + "default": null, + "name": "MOID", + "type": [ + "null", + "float" + ] + }, + { + "doc": "True anomaly of the MOID point.", + "default": null, + "name": "MOIDTrueAnomaly", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Ecliptic longitude of the MOID point.", + "default": null, + "name": "MOIDEclipticLongitude", + "type": [ + "null", + "float" + ] + }, + { + "doc": "DeltaV at the MOID point.", + "default": null, + "name": "MOIDDeltaV", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit absolute magnitude (u band).", + "default": null, + "name": "u_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (u band).", + "default": null, + "name": "u_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (u band).", + "default": null, + "name": "u_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (u band).", + "default": null, + "name": "u_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (u band).", + "default": null, + "name": "u_H_u_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (u band).", + "default": null, + "name": "u_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (u band).", + "default": null, + "name": "u_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (g band).", + "default": null, + "name": "g_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (g band).", + "default": null, + "name": "g_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (g band).", + "default": null, + "name": "g_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (g band).", + "default": null, + "name": "g_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (g band).", + "default": null, + "name": "g_H_g_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (g band).", + "default": null, + "name": "g_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (g band).", + "default": null, + "name": "g_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (r band).", + "default": null, + "name": "r_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (r band).", + "default": null, + "name": "r_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (r band).", + "default": null, + "name": "r_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (r band).", + "default": null, + "name": "r_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (r band).", + "default": null, + "name": "r_H_r_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (r band).", + "default": null, + "name": "r_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (r band).", + "default": null, + "name": "r_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (i band).", + "default": null, + "name": "i_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (i band).", + "default": null, + "name": "i_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (i band).", + "default": null, + "name": "i_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (i band).", + "default": null, + "name": "i_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (i band).", + "default": null, + "name": "i_H_i_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (i band).", + "default": null, + "name": "i_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (i band).", + "default": null, + "name": "i_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (z band).", + "default": null, + "name": "z_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (z band).", + "default": null, + "name": "z_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (z band).", + "default": null, + "name": "z_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (z band).", + "default": null, + "name": "z_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (z band).", + "default": null, + "name": "z_H_z_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (z band).", + "default": null, + "name": "z_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (z band).", + "default": null, + "name": "z_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (y band).", + "default": null, + "name": "y_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (y band).", + "default": null, + "name": "y_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (y band).", + "default": null, + "name": "y_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (y band).", + "default": null, + "name": "y_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (y band).", + "default": null, + "name": "y_H_y_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (y band).", + "default": null, + "name": "y_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (y band).", + "default": null, + "name": "y_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "median `extendedness` value from the DIASource.", + "default": null, + "name": "medianExtendedness", + "type": [ + "null", + "float" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/3/sample_data/alert.json b/pittgoogle/schemas/lsst/7/3/sample_data/alert.json new file mode 100644 index 0000000..1a1f952 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/sample_data/alert.json @@ -0,0 +1,109 @@ +{ + "alertId": 1231321321, + "l1dbId": 222222222, + "diaSource": + { + "diaSourceId": 281323062375219200, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + }, + "prvDiaSources": [ + { + "diaSourceId": 281323062375219198, + "time_processed": 0, + "visit": 2, + "detector": 43, + "midpointMjdTai": 1480360995, + "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 + }, + { + "diaSourceId": 281323062375219199, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + } + ], + "diaObject": { + "diaObjectId": 281323062375219201, + "validityStart": 0, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "radecMjdTai": 1480360995, + "pmRa": 0.00013, + "pmDec": 0.00014, + "parallax": 2.124124, + "pmRaErr": 0.00013, + "pmDecErr": 0.00013, + "pmParallaxNdata": 0, + "parallaxErr": 0.00013, + "pmRa_pmDec_Cov": 0.00013, + "pmRa_parallax_Cov": 0.00013, + "pmDec_parallax_Cov": 0.00013, + "pmParallaxLnL": 0.00013, + "pmParallaxChi2": 0.00013, + "pmParallaxNdata": 1214 + }, + "ssObject": { + "ssObjectId":5364546, + "numObs": 10 + } +} diff --git a/pittgoogle/schemas/lsst/7/3/sample_data/fakeAlert.avro b/pittgoogle/schemas/lsst/7/3/sample_data/fakeAlert.avro new file mode 100644 index 0000000..f694ede --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/sample_data/fakeAlert.avro @@ -0,0 +1,4 @@ +Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.3", "name": "lsst.v7_3.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_3.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"doc": "Uncertainty of x.", "default": null, "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"doc": "Uncertainty of y.", "default": null, "name": "yErr", "type": ["null", "float"]}, {"doc": "Covariance between x and y.", "default": null, "name": "x_y_Cov", "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": "Source was detected as significantly negative.", "default": null, "name": "is_negative", "type": ["null", "boolean"]}, {"doc": "Flux in a 12 pixel radius aperture on the difference image.", "default": null, "name": "apFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of apFlux.", "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": "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for point source model.", "default": null, "name": "psfRa", "type": ["null", "double"]}, {"doc": "Uncertainty of psfRa.", "default": null, "name": "psfRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for point source model.", "default": null, "name": "psfDec", "type": ["null", "double"]}, {"doc": "Uncertainty of psfDec.", "default": null, "name": "psfDecErr", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfRa.", "default": null, "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfDec.", "default": null, "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfRa and psfDec.", "default": null, "name": "psfRa_psfDec_Cov", "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.", "default": null, "name": "psfNdata", "type": ["null", "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.", "default": null, "name": "trailFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of trailFlux.", "default": null, "name": "trailFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for trailed source model.", "default": null, "name": "trailRa", "type": ["null", "double"]}, {"doc": "Uncertainty of trailRa.", "default": null, "name": "trailRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for trailed source model.", "default": null, "name": "trailDec", "type": ["null", "double"]}, {"doc": "Uncertainty of trailDec.", "default": null, "name": "trailDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of trail length.", "default": null, "name": "trailLength", "type": ["null", "float"]}, {"doc": "Uncertainty of trailLength.", "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).", "default": null, "name": "trailAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of trailAngle.", "default": null, "name": "trailAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailRa.", "default": null, "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailDec.", "default": null, "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailLength", "default": null, "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailAngle", "default": null, "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailDec.", "default": null, "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailLength.", "default": null, "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailAngle.", "default": null, "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailLength.", "default": null, "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailAngle.", "default": null, "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailLength and trailAngle", "default": null, "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the trailed source model.", "default": null, "name": "trailLnL", "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.", "default": null, "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "default": null, "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleMeanFlux.", "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.", "default": null, "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleFluxDiff.", "default": null, "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for dipole model.", "default": null, "name": "dipoleRa", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleRa.", "default": null, "name": "dipoleRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for dipole model.", "default": null, "name": "dipoleDec", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleDec.", "default": null, "name": "dipoleDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the lobe separation in dipole model.", "default": null, "name": "dipoleLength", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleLength.", "default": null, "name": "dipoleLengthErr", "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).", "default": null, "name": "dipoleAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleAngle.", "default": null, "name": "dipoleAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "default": null, "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleRa.", "default": null, "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleDec.", "default": null, "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleLength.", "default": null, "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "default": null, "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleRa.", "default": null, "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleDec.", "default": null, "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleLength.", "default": null, "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "default": null, "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleDec.", "default": null, "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleLength.", "default": null, "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleAngle.", "default": null, "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleLength.", "default": null, "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleAngle.", "default": null, "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleLength and dipoleAngle.", "default": null, "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the dipole source model.", "default": null, "name": "dipoleLnL", "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.", "default": null, "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "default": null, "name": "snapDiffFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of snapDiffFlux.", "default": null, "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"doc": "Estimated sky background at the position (centroid) of the object.", "default": null, "name": "fpBkgd", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of fpBkgd.", "default": null, "name": "fpBkgdErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixx", "type": ["null", "float"]}, {"doc": "Uncertainty of ixx.", "default": null, "name": "ixxErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "iyy", "type": ["null", "float"]}, {"doc": "Uncertainty of iyy.", "default": null, "name": "iyyErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixy", "type": ["null", "float"]}, {"doc": "Uncertainty of ixy.", "default": null, "name": "ixyErr", "type": ["null", "float"]}, {"doc": "Covariance of ixx and iyy.", "default": null, "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of ixx and ixy.", "default": null, "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of iyy and ixy.", "default": null, "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "ixxPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "iyyPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "default": null, "name": "reliability", "type": ["null", "float"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Attempted to fit a dipole model to this source.", "default": null, "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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 NO_DATA, or centroid off image).", "default": null, "name": "pixelFlags_edge", "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"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_3.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_3.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_3.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_3.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "radecMjdTai", "type": ["null", "double"]}, {"doc": "Proper motion in right ascension.", "default": null, "name": "pmRa", "type": ["null", "float"]}, {"doc": "Uncertainty of pmRa.", "default": null, "name": "pmRaErr", "type": ["null", "float"]}, {"doc": "Proper motion of declination.", "default": null, "name": "pmDec", "type": ["null", "float"]}, {"doc": "Uncertainty of pmDec.", "default": null, "name": "pmDecErr", "type": ["null", "float"]}, {"doc": "Parallax.", "default": null, "name": "parallax", "type": ["null", "float"]}, {"doc": "Uncertainty of parallax.", "default": null, "name": "parallaxErr", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and pmDec.", "default": null, "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and parallax.", "default": null, "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmDec and parallax.", "default": null, "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "default": null, "name": "pmParallaxLnL", "type": ["null", "float"]}, {"doc": "Chi^2 static of the model fit.", "default": null, "name": "pmParallaxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the model.", "default": null, "name": "pmParallaxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean point-source model magnitude for u filter.", "default": null, "name": "u_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_psfFluxMean.", "default": null, "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_psfFlux.", "default": null, "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "default": null, "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute u_psfFluxChi2.", "default": null, "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for u filter.", "default": null, "name": "u_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_fpFluxMean.", "default": null, "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_fpFlux.", "default": null, "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for g filter.", "default": null, "name": "g_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_psfFluxMean.", "default": null, "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_psfFlux.", "default": null, "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "default": null, "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute g_psfFluxChi2.", "default": null, "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for g filter.", "default": null, "name": "g_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_fpFluxMean.", "default": null, "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_fpFlux.", "default": null, "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for r filter.", "default": null, "name": "r_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_psfFluxMean.", "default": null, "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_psfFlux.", "default": null, "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "default": null, "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute r_psfFluxChi2.", "default": null, "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for r filter.", "default": null, "name": "r_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_fpFluxMean.", "default": null, "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_fpFlux.", "default": null, "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for i filter.", "default": null, "name": "i_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_psfFluxMean.", "default": null, "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_psfFlux.", "default": null, "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "default": null, "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute i_psfFluxChi2.", "default": null, "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for i filter.", "default": null, "name": "i_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_fpFluxMean.", "default": null, "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_fpFlux.", "default": null, "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for z filter.", "default": null, "name": "z_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_psfFluxMean.", "default": null, "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_psfFlux.", "default": null, "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "default": null, "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute z_psfFluxChi2.", "default": null, "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for z filter.", "default": null, "name": "z_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_fpFluxMean.", "default": null, "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_fpFlux.", "default": null, "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for y filter.", "default": null, "name": "y_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_psfFluxMean.", "default": null, "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_psfFlux.", "default": null, "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "default": null, "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute y_psfFluxChi2.", "default": null, "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for y filter.", "default": null, "name": "y_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_fpFluxMean.", "default": null, "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_fpFlux.", "default": null, "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Id of the closest nearby object.", "default": null, "name": "nearbyObj1", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj1.", "default": null, "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "default": null, "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"doc": "Id of the second-closest nearby object.", "default": null, "name": "nearbyObj2", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj2.", "default": null, "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "default": null, "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"doc": "Id of the third-closest nearby object.", "default": null, "name": "nearbyObj3", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj3.", "default": null, "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "default": null, "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"doc": "Mean of the u band flux errors.", "default": null, "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the g band flux errors.", "default": null, "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the r band flux errors.", "default": null, "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the i band flux errors.", "default": null, "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the z band flux errors.", "default": null, "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the y band flux errors.", "default": null, "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_3.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "default": null, "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "default": null, "name": "firstObservationDate", "type": ["null", "double"]}, {"doc": "Arc of LSST observations.", "default": null, "name": "arc", "type": ["null", "float"]}, {"doc": "Number of LSST observations of this object.", "default": null, "name": "numObs", "type": ["null", "int"]}, {"doc": "Minimum orbit intersection distance to Earth.", "default": null, "name": "MOID", "type": ["null", "float"]}, {"doc": "True anomaly of the MOID point.", "default": null, "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"doc": "Ecliptic longitude of the MOID point.", "default": null, "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"doc": "DeltaV at the MOID point.", "default": null, "name": "MOIDDeltaV", "type": ["null", "float"]}, {"doc": "Best fit absolute magnitude (u band).", "default": null, "name": "u_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (u band).", "default": null, "name": "u_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (u band).", "default": null, "name": "u_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (u band).", "default": null, "name": "u_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (u band).", "default": null, "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (u band).", "default": null, "name": "u_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (u band).", "default": null, "name": "u_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (g band).", "default": null, "name": "g_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (g band).", "default": null, "name": "g_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (g band).", "default": null, "name": "g_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (g band).", "default": null, "name": "g_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (g band).", "default": null, "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (g band).", "default": null, "name": "g_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (g band).", "default": null, "name": "g_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (r band).", "default": null, "name": "r_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (r band).", "default": null, "name": "r_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (r band).", "default": null, "name": "r_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (r band).", "default": null, "name": "r_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (r band).", "default": null, "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (r band).", "default": null, "name": "r_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (r band).", "default": null, "name": "r_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (i band).", "default": null, "name": "i_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (i band).", "default": null, "name": "i_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (i band).", "default": null, "name": "i_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (i band).", "default": null, "name": "i_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (i band).", "default": null, "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (i band).", "default": null, "name": "i_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (i band).", "default": null, "name": "i_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (z band).", "default": null, "name": "z_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (z band).", "default": null, "name": "z_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (z band).", "default": null, "name": "z_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (z band).", "default": null, "name": "z_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (z band).", "default": null, "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (z band).", "default": null, "name": "z_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (z band).", "default": null, "name": "z_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (y band).", "default": null, "name": "y_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (y band).", "default": null, "name": "y_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (y band).", "default": null, "name": "y_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (y band).", "default": null, "name": "y_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (y band).", "default": null, "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (y band).", "default": null, "name": "y_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (y band).", "default": null, "name": "y_Ndata", "type": ["null", "int"]}, {"doc": "median `extendedness` value from the DIASource.", "default": null, "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}_ao~:snW㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9_ao~:snW \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/3/sample_data/generate.py b/pittgoogle/schemas/lsst/7/3/sample_data/generate.py new file mode 100644 index 0000000..5b55d81 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/3/sample_data/generate.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +import json +import lsst.alert.packet as packet +from datetime import datetime +import pandas as pd + +with open("alert.json", "r") as f: + data = json.load(f) + + data_time = datetime.now() + + data['diaSource']['time_processed'] = pd.Timestamp(data_time) + data['diaObject']['validityStart'] = pd.Timestamp(data_time) + +schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_3.alert").get_by_version("7.3") +with open("fakeAlert.avro", "wb") as f: + schema.store_alerts(f, [data]) From ce8dd4e6be14095b577ffdcd4f1b6fd1afd7dec0 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Feb 2025 12:10:32 -0500 Subject: [PATCH 03/20] update schema version for lsst in schema.py --- pittgoogle/schema.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pittgoogle/schema.py b/pittgoogle/schema.py index 237519f..01bb8e6 100644 --- a/pittgoogle/schema.py +++ b/pittgoogle/schema.py @@ -76,12 +76,14 @@ def elasticc_schema_helper(schema_dict: dict) -> "Schema": @staticmethod def lsst_schema_helper(schema_dict: dict) -> "Schema": - """Load the Avro schema definition for lsst.v7_1.alert.""" + """Load the Avro schema definition for lsst.v7_3.alert.""" # [FIXME] This is hack to get the latest schema version into pittgoogle-client # until we can get :meth:`SchemaHelpers.lsst_auto_schema_helper` working. - if not schema_dict["name"] == "lsst.v7_1.alert": - raise NotImplementedError("Only 'lsst.v7_1.alert' is supported for LSST.") + if not schema_dict["name"] == "lsst.v7_3.alert": + raise NotImplementedError( + "Only 'lsst.v7_3.alert', 'lsst.v7_2.alert', and 'lsst.v7_1.alert' are supported for LSST." + ) schema = _ConfluentWireAvroSchema(**schema_dict) From 9d16d664997ec8bf9636d5d12920d0443975f4a1 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Feb 2025 12:21:09 -0500 Subject: [PATCH 04/20] update schemas.yml to accomodate latest schema version (7.3) --- pittgoogle/registry_manifests/schemas.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pittgoogle/registry_manifests/schemas.yml b/pittgoogle/registry_manifests/schemas.yml index 0534132..5ead46e 100644 --- a/pittgoogle/registry_manifests/schemas.yml +++ b/pittgoogle/registry_manifests/schemas.yml @@ -33,11 +33,11 @@ path: 'schemas/elasticc/elasticc.v0_9_1.brokerClassification.avsc' # # LSST alerts -# [FIXME] Hacking in v7.1 for now. Need to figure out install lsst-alert-packet to use lsst_auto_schema_helper +# [FIXME] Hacking in v7.3 for now. Need to figure out install lsst-alert-packet to use lsst_auto_schema_helper # - name: 'lsst.v_.alert' # helper: 'lsst_auto_schema_helper' -- name: 'lsst.v7_1.alert' - path: 'schemas/lsst/7/1/lsst.v7_1.alert.avsc' +- name: 'lsst.v7_3.alert' + path: 'schemas/lsst/7/3/lsst.v7_3.alert.avsc' description: 'Schema for LSST alerts.' origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' helper: 'lsst_schema_helper' From e24624cb5324f5cd165251882a2c6cb84d868d9e Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Feb 2025 12:23:06 -0500 Subject: [PATCH 05/20] update message in lsst_schema_helper --- pittgoogle/schema.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pittgoogle/schema.py b/pittgoogle/schema.py index 01bb8e6..b5e460d 100644 --- a/pittgoogle/schema.py +++ b/pittgoogle/schema.py @@ -81,9 +81,7 @@ def lsst_schema_helper(schema_dict: dict) -> "Schema": # until we can get :meth:`SchemaHelpers.lsst_auto_schema_helper` working. if not schema_dict["name"] == "lsst.v7_3.alert": - raise NotImplementedError( - "Only 'lsst.v7_3.alert', 'lsst.v7_2.alert', and 'lsst.v7_1.alert' are supported for LSST." - ) + raise NotImplementedError("Only 'lsst.v7_3.alert' is supported for LSST.") schema = _ConfluentWireAvroSchema(**schema_dict) From fff94c7816dd9971d60c19e81cd5026f70bf43bd Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 24 Feb 2025 14:22:50 -0500 Subject: [PATCH 06/20] add schema v7_4 --- .../schemas/lsst/7/4/lsst.v7_4.alert.avsc | 24 + .../lsst/7/4/lsst.v7_4.diaForcedSource.avsc | 69 + .../7/4/lsst.v7_4.diaNondetectionLimit.avsc | 11 + .../schemas/lsst/7/4/lsst.v7_4.diaObject.avsc | 733 ++++++++++ .../schemas/lsst/7/4/lsst.v7_4.diaSource.avsc | 1235 +++++++++++++++++ .../schemas/lsst/7/4/lsst.v7_4.ssObject.avsc | 471 +++++++ .../schemas/lsst/7/4/sample_data/alert.json | 109 ++ .../lsst/7/4/sample_data/fakeAlert.avro | 4 + .../schemas/lsst/7/4/sample_data/generate.py | 17 + 9 files changed, 2673 insertions(+) create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.alert.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaForcedSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaNondetectionLimit.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaSource.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/lsst.v7_4.ssObject.avsc create mode 100644 pittgoogle/schemas/lsst/7/4/sample_data/alert.json create mode 100644 pittgoogle/schemas/lsst/7/4/sample_data/fakeAlert.avro create mode 100644 pittgoogle/schemas/lsst/7/4/sample_data/generate.py diff --git a/pittgoogle/schemas/lsst/7/4/lsst.v7_4.alert.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.alert.avsc new file mode 100644 index 0000000..db62adb --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.alert.avsc @@ -0,0 +1,24 @@ +{ + "namespace": "lsst.v7_4", + "type": "record", + "name": "alert", + "doc": "Rubin Avro alert schema v7.4", + "fields": [ + {"name": "alertId", "type": "long", "doc": "unique alert identifer"}, + {"name": "diaSource", "type": "lsst.v7_4.diaSource"}, + {"name": "prvDiaSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_4.diaSource"}], "default": null}, + {"name": "prvDiaForcedSources", "type": ["null", { + "type": "array", + "items": "lsst.v7_4.diaForcedSource"}], "default": null}, + {"name": "prvDiaNondetectionLimits", "type": ["null", { + "type": "array", + "items": "lsst.v7_4.diaNondetectionLimit"}], "default": null}, + {"name": "diaObject", "type": ["null", "lsst.v7_4.diaObject"], "default": null}, + {"name": "ssObject", "type": ["null", "lsst.v7_4.ssObject"], "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/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaForcedSource.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaForcedSource.avsc new file mode 100644 index 0000000..a72bc71 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaForcedSource.avsc @@ -0,0 +1,69 @@ +{ + "type": "record", + "namespace": "lsst.v7_4", + "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 at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", + "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.", + "default": null, + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of psfFlux.", + "default": null, + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "doc": "Filter band this source was observed with.", + "default": null, + "name": "band", + "type": [ + "null", + "string" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaNondetectionLimit.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaNondetectionLimit.avsc new file mode 100644 index 0000000..4cb623d --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaNondetectionLimit.avsc @@ -0,0 +1,11 @@ +{ + "namespace": "lsst.v7_4", + "name": "diaNondetectionLimit", + "type": "record", + "fields": [ + {"name": "ccdVisitId", "type": "long"}, + {"name": "midpointMjdTai", "type": "double"}, + {"name": "band", "type": "string"}, + {"name": "diaNoise", "type": "float"} + ] +} diff --git a/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaObject.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaObject.avsc new file mode 100644 index 0000000..9fd335b --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaObject.avsc @@ -0,0 +1,733 @@ +{ + "type": "record", + "namespace": "lsst.v7_4", + "name": "diaObject", + "fields": [ + { + "doc": "Unique identifier of this DiaObject.", + "name": "diaObjectId", + "type": "long" + }, + { + "doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", + "name": "ra", + "type": "double" + }, + { + "doc": "Uncertainty of ra.", + "default": null, + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the position of the object at time radecMjdTai.", + "name": "dec", + "type": "double" + }, + { + "doc": "Uncertainty of dec.", + "default": null, + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between ra and dec.", + "default": null, + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", + "default": null, + "name": "radecMjdTai", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Proper motion in right ascension.", + "default": null, + "name": "pmRa", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of pmRa.", + "default": null, + "name": "pmRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Proper motion of declination.", + "default": null, + "name": "pmDec", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of pmDec.", + "default": null, + "name": "pmDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Parallax.", + "default": null, + "name": "parallax", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of parallax.", + "default": null, + "name": "parallaxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmRa and pmDec.", + "default": null, + "name": "pmRa_pmDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmRa and parallax.", + "default": null, + "name": "pmRa_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of pmDec and parallax.", + "default": null, + "name": "pmDec_parallax_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", + "default": null, + "name": "pmParallaxLnL", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 static of the model fit.", + "default": null, + "name": "pmParallaxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the model.", + "default": null, + "name": "pmParallaxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for u filter.", + "default": null, + "name": "u_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of u_psfFluxMean.", + "default": null, + "name": "u_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of u_psfFlux.", + "default": null, + "name": "u_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", + "default": null, + "name": "u_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute u_psfFluxChi2.", + "default": null, + "name": "u_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for u filter.", + "default": null, + "name": "u_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of u_fpFluxMean.", + "default": null, + "name": "u_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of u_fpFlux.", + "default": null, + "name": "u_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for g filter.", + "default": null, + "name": "g_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of g_psfFluxMean.", + "default": null, + "name": "g_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of g_psfFlux.", + "default": null, + "name": "g_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", + "default": null, + "name": "g_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute g_psfFluxChi2.", + "default": null, + "name": "g_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for g filter.", + "default": null, + "name": "g_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of g_fpFluxMean.", + "default": null, + "name": "g_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of g_fpFlux.", + "default": null, + "name": "g_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for r filter.", + "default": null, + "name": "r_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of r_psfFluxMean.", + "default": null, + "name": "r_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of r_psfFlux.", + "default": null, + "name": "r_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", + "default": null, + "name": "r_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute r_psfFluxChi2.", + "default": null, + "name": "r_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for r filter.", + "default": null, + "name": "r_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of r_fpFluxMean.", + "default": null, + "name": "r_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of r_fpFlux.", + "default": null, + "name": "r_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for i filter.", + "default": null, + "name": "i_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of i_psfFluxMean.", + "default": null, + "name": "i_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of i_psfFlux.", + "default": null, + "name": "i_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", + "default": null, + "name": "i_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute i_psfFluxChi2.", + "default": null, + "name": "i_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for i filter.", + "default": null, + "name": "i_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of i_fpFluxMean.", + "default": null, + "name": "i_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of i_fpFlux.", + "default": null, + "name": "i_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for z filter.", + "default": null, + "name": "z_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of z_psfFluxMean.", + "default": null, + "name": "z_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of z_psfFlux.", + "default": null, + "name": "z_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", + "default": null, + "name": "z_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute z_psfFluxChi2.", + "default": null, + "name": "z_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for z filter.", + "default": null, + "name": "z_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of z_fpFluxMean.", + "default": null, + "name": "z_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of z_fpFlux.", + "default": null, + "name": "z_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Weighted mean point-source model magnitude for y filter.", + "default": null, + "name": "y_psfFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of y_psfFluxMean.", + "default": null, + "name": "y_psfFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of y_psfFlux.", + "default": null, + "name": "y_psfFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", + "default": null, + "name": "y_psfFluxChi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to compute y_psfFluxChi2.", + "default": null, + "name": "y_psfFluxNdata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Weighted mean forced photometry flux for y filter.", + "default": null, + "name": "y_fpFluxMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard error of y_fpFluxMean.", + "default": null, + "name": "y_fpFluxMeanErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Standard deviation of the distribution of y_fpFlux.", + "default": null, + "name": "y_fpFluxSigma", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the closest nearby object.", + "default": null, + "name": "nearbyObj1", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj1.", + "default": null, + "name": "nearbyObj1Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", + "default": null, + "name": "nearbyObj1LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the second-closest nearby object.", + "default": null, + "name": "nearbyObj2", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj2.", + "default": null, + "name": "nearbyObj2Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", + "default": null, + "name": "nearbyObj2LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Id of the third-closest nearby object.", + "default": null, + "name": "nearbyObj3", + "type": [ + "null", + "long" + ] + }, + { + "doc": "Distance to nearbyObj3.", + "default": null, + "name": "nearbyObj3Dist", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", + "default": null, + "name": "nearbyObj3LnP", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the u band flux errors.", + "default": null, + "name": "u_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the g band flux errors.", + "default": null, + "name": "g_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the r band flux errors.", + "default": null, + "name": "r_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the i band flux errors.", + "default": null, + "name": "i_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the z band flux errors.", + "default": null, + "name": "z_psfFluxErrMean", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Mean of the y band flux errors.", + "default": null, + "name": "y_psfFluxErrMean", + "type": [ + "null", + "float" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaSource.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaSource.avsc new file mode 100644 index 0000000..e39dcf9 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.diaSource.avsc @@ -0,0 +1,1235 @@ +{ + "type": "record", + "namespace": "lsst.v7_4", + "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" + }, + { + "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.", + "name": "midpointMjdTai", + "type": "double" + }, + { + "doc": "Right ascension coordinate of the center of this diaSource.", + "name": "ra", + "type": "double" + }, + { + "doc": "Uncertainty of ra.", + "default": null, + "name": "raErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of the center of this diaSource.", + "name": "dec", + "type": "double" + }, + { + "doc": "Uncertainty of dec.", + "default": null, + "name": "decErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between ra and dec.", + "default": null, + "name": "ra_dec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "x position computed by a centroiding algorithm.", + "name": "x", + "type": "float" + }, + { + "doc": "Uncertainty of x.", + "default": null, + "name": "xErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "y position computed by a centroiding algorithm.", + "name": "y", + "type": "float" + }, + { + "doc": "Uncertainty of y.", + "default": null, + "name": "yErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between x and y.", + "default": null, + "name": "x_y_Cov", + "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.", + "default": null, + "name": "apFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of apFlux.", + "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": "is_negative", + "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.", + "default": null, + "name": "psfFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of psfFlux.", + "default": null, + "name": "psfFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for point source model.", + "default": null, + "name": "psfRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of psfRa.", + "default": null, + "name": "psfRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for point source model.", + "default": null, + "name": "psfDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of psfDec.", + "default": null, + "name": "psfDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfFlux and psfRa.", + "default": null, + "name": "psfFlux_psfRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfFlux and psfDec.", + "default": null, + "name": "psfFlux_psfDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance between psfRa and psfDec.", + "default": null, + "name": "psfRa_psfDec_Cov", + "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.", + "default": null, + "name": "psfNdata", + "type": [ + "null", + "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.", + "default": null, + "name": "trailFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailFlux.", + "default": null, + "name": "trailFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for trailed source model.", + "default": null, + "name": "trailRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of trailRa.", + "default": null, + "name": "trailRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for trailed source model.", + "default": null, + "name": "trailDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of trailDec.", + "default": null, + "name": "trailDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Maximum likelihood fit of trail length.", + "default": null, + "name": "trailLength", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailLength.", + "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).", + "default": null, + "name": "trailAngle", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of trailAngle.", + "default": null, + "name": "trailAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailRa.", + "default": null, + "name": "trailFlux_trailRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailDec.", + "default": null, + "name": "trailFlux_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailLength", + "default": null, + "name": "trailFlux_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailFlux and trailAngle", + "default": null, + "name": "trailFlux_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailDec.", + "default": null, + "name": "trailRa_trailDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailLength.", + "default": null, + "name": "trailRa_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailRa and trailAngle.", + "default": null, + "name": "trailRa_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailDec and trailLength.", + "default": null, + "name": "trailDec_trailLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailDec and trailAngle.", + "default": null, + "name": "trailDec_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of trailLength and trailAngle", + "default": null, + "name": "trailLength_trailAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log likelihood of the observed data given the trailed source model.", + "default": null, + "name": "trailLnL", + "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.", + "default": null, + "name": "trailNdata", + "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", + "default": null, + "name": "dipoleMeanFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleMeanFlux.", + "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.", + "default": null, + "name": "dipoleFluxDiff", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleFluxDiff.", + "default": null, + "name": "dipoleFluxDiffErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Right ascension coordinate of centroid for dipole model.", + "default": null, + "name": "dipoleRa", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of dipoleRa.", + "default": null, + "name": "dipoleRaErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Declination coordinate of centroid for dipole model.", + "default": null, + "name": "dipoleDec", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Uncertainty of dipoleDec.", + "default": null, + "name": "dipoleDecErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Maximum likelihood value for the lobe separation in dipole model.", + "default": null, + "name": "dipoleLength", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleLength.", + "default": null, + "name": "dipoleLengthErr", + "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).", + "default": null, + "name": "dipoleAngle", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of dipoleAngle.", + "default": null, + "name": "dipoleAngleErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", + "default": null, + "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleRa.", + "default": null, + "name": "dipoleMeanFlux_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleDec.", + "default": null, + "name": "dipoleMeanFlux_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleLength.", + "default": null, + "name": "dipoleMeanFlux_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", + "default": null, + "name": "dipoleMeanFlux_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleRa.", + "default": null, + "name": "dipoleFluxDiff_dipoleRa_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleDec.", + "default": null, + "name": "dipoleFluxDiff_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleLength.", + "default": null, + "name": "dipoleFluxDiff_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", + "default": null, + "name": "dipoleFluxDiff_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleDec.", + "default": null, + "name": "dipoleRa_dipoleDec_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleLength.", + "default": null, + "name": "dipoleRa_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleRa and dipoleAngle.", + "default": null, + "name": "dipoleRa_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleDec and dipoleLength.", + "default": null, + "name": "dipoleDec_dipoleLength_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleDec and dipoleAngle.", + "default": null, + "name": "dipoleDec_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of dipoleLength and dipoleAngle.", + "default": null, + "name": "dipoleLength_dipoleAngle_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Natural log likelihood of the observed data given the dipole source model.", + "default": null, + "name": "dipoleLnL", + "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.", + "default": null, + "name": "dipoleNdata", + "type": [ + "null", + "int" + ] + }, + { + "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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", + "default": null, + "name": "snapDiffFlux", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of snapDiffFlux.", + "default": null, + "name": "snapDiffFluxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated sky background at the position (centroid) of the object.", + "default": null, + "name": "fpBkgd", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Estimated uncertainty of fpBkgd.", + "default": null, + "name": "fpBkgdErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "ixx", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of ixx.", + "default": null, + "name": "ixxErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "iyy", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of iyy.", + "default": null, + "name": "iyyErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment of the source intensity.", + "default": null, + "name": "ixy", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of ixy.", + "default": null, + "name": "ixyErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of ixx and iyy.", + "default": null, + "name": "ixx_iyy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of ixx and ixy.", + "default": null, + "name": "ixx_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Covariance of iyy and ixy.", + "default": null, + "name": "iyy_ixy_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "default": null, + "name": "ixxPSF", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "default": null, + "name": "iyyPSF", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Adaptive second moment for the PSF.", + "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", + "default": null, + "name": "reliability", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Filter band this source was observed with.", + "default": null, + "name": "band", + "type": [ + "null", + "string" + ] + }, + { + "doc": "Attempted to fit a dipole model to this source.", + "default": null, + "name": "dipoleFitAttempted", + "type": [ + "null", + "boolean" + ] + }, + { + "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" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/4/lsst.v7_4.ssObject.avsc b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.ssObject.avsc new file mode 100644 index 0000000..04d5dc2 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/lsst.v7_4.ssObject.avsc @@ -0,0 +1,471 @@ +{ + "type": "record", + "namespace": "lsst.v7_4", + "name": "ssObject", + "fields": [ + { + "doc": "Unique identifier.", + "name": "ssObjectId", + "type": "long" + }, + { + "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", + "default": null, + "name": "discoverySubmissionDate", + "type": [ + "null", + "double" + ] + }, + { + "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", + "default": null, + "name": "firstObservationDate", + "type": [ + "null", + "double" + ] + }, + { + "doc": "Arc of LSST observations.", + "default": null, + "name": "arc", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Number of LSST observations of this object.", + "default": null, + "name": "numObs", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Minimum orbit intersection distance to Earth.", + "default": null, + "name": "MOID", + "type": [ + "null", + "float" + ] + }, + { + "doc": "True anomaly of the MOID point.", + "default": null, + "name": "MOIDTrueAnomaly", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Ecliptic longitude of the MOID point.", + "default": null, + "name": "MOIDEclipticLongitude", + "type": [ + "null", + "float" + ] + }, + { + "doc": "DeltaV at the MOID point.", + "default": null, + "name": "MOIDDeltaV", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit absolute magnitude (u band).", + "default": null, + "name": "u_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (u band).", + "default": null, + "name": "u_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (u band).", + "default": null, + "name": "u_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (u band).", + "default": null, + "name": "u_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (u band).", + "default": null, + "name": "u_H_u_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (u band).", + "default": null, + "name": "u_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (u band).", + "default": null, + "name": "u_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (g band).", + "default": null, + "name": "g_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (g band).", + "default": null, + "name": "g_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (g band).", + "default": null, + "name": "g_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (g band).", + "default": null, + "name": "g_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (g band).", + "default": null, + "name": "g_H_g_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (g band).", + "default": null, + "name": "g_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (g band).", + "default": null, + "name": "g_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (r band).", + "default": null, + "name": "r_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (r band).", + "default": null, + "name": "r_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (r band).", + "default": null, + "name": "r_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (r band).", + "default": null, + "name": "r_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (r band).", + "default": null, + "name": "r_H_r_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (r band).", + "default": null, + "name": "r_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (r band).", + "default": null, + "name": "r_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (i band).", + "default": null, + "name": "i_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (i band).", + "default": null, + "name": "i_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (i band).", + "default": null, + "name": "i_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (i band).", + "default": null, + "name": "i_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (i band).", + "default": null, + "name": "i_H_i_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (i band).", + "default": null, + "name": "i_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (i band).", + "default": null, + "name": "i_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (z band).", + "default": null, + "name": "z_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (z band).", + "default": null, + "name": "z_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (z band).", + "default": null, + "name": "z_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (z band).", + "default": null, + "name": "z_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (z band).", + "default": null, + "name": "z_H_z_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (z band).", + "default": null, + "name": "z_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (z band).", + "default": null, + "name": "z_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "Best fit absolute magnitude (y band).", + "default": null, + "name": "y_H", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Best fit G12 slope parameter (y band).", + "default": null, + "name": "y_G12", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of H (y band).", + "default": null, + "name": "y_HErr", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Uncertainty of G12 (y band).", + "default": null, + "name": "y_G12Err", + "type": [ + "null", + "float" + ] + }, + { + "doc": "H-G12 covariance (y band).", + "default": null, + "name": "y_H_y_G12_Cov", + "type": [ + "null", + "float" + ] + }, + { + "doc": "Chi^2 statistic of the phase curve fit (y band).", + "default": null, + "name": "y_Chi2", + "type": [ + "null", + "float" + ] + }, + { + "doc": "The number of data points used to fit the phase curve (y band).", + "default": null, + "name": "y_Ndata", + "type": [ + "null", + "int" + ] + }, + { + "doc": "median `extendedness` value from the DIASource.", + "default": null, + "name": "medianExtendedness", + "type": [ + "null", + "float" + ] + } + ] +} \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/4/sample_data/alert.json b/pittgoogle/schemas/lsst/7/4/sample_data/alert.json new file mode 100644 index 0000000..1a1f952 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/sample_data/alert.json @@ -0,0 +1,109 @@ +{ + "alertId": 1231321321, + "l1dbId": 222222222, + "diaSource": + { + "diaSourceId": 281323062375219200, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + }, + "prvDiaSources": [ + { + "diaSourceId": 281323062375219198, + "time_processed": 0, + "visit": 2, + "detector": 43, + "midpointMjdTai": 1480360995, + "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 + }, + { + "diaSourceId": 281323062375219199, + "time_processed": 0, + "visit": 1, + "detector": 42, + "midpointMjdTai": 1480360995, + "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 + } + ], + "diaObject": { + "diaObjectId": 281323062375219201, + "validityStart": 0, + "ra": 351.570546978, + "dec": 0.126243049656, + "raErr": 0.00028, + "decErr": 0.00028, + "ra_dec_Cov": 0.00029, + "radecMjdTai": 1480360995, + "pmRa": 0.00013, + "pmDec": 0.00014, + "parallax": 2.124124, + "pmRaErr": 0.00013, + "pmDecErr": 0.00013, + "pmParallaxNdata": 0, + "parallaxErr": 0.00013, + "pmRa_pmDec_Cov": 0.00013, + "pmRa_parallax_Cov": 0.00013, + "pmDec_parallax_Cov": 0.00013, + "pmParallaxLnL": 0.00013, + "pmParallaxChi2": 0.00013, + "pmParallaxNdata": 1214 + }, + "ssObject": { + "ssObjectId":5364546, + "numObs": 10 + } +} diff --git a/pittgoogle/schemas/lsst/7/4/sample_data/fakeAlert.avro b/pittgoogle/schemas/lsst/7/4/sample_data/fakeAlert.avro new file mode 100644 index 0000000..0242460 --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/sample_data/fakeAlert.avro @@ -0,0 +1,4 @@ +Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.4", "name": "lsst.v7_4.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_4.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"default": null, "doc": "Uncertainty of x.", "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"default": null, "doc": "Uncertainty of y.", "name": "yErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between x and y.", "name": "x_y_Cov", "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.", "name": "apFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of apFlux.", "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": "is_negative", "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for point source model.", "name": "psfRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfRa.", "name": "psfRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for point source model.", "name": "psfDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfDec.", "name": "psfDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfRa.", "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfDec.", "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfRa and psfDec.", "name": "psfRa_psfDec_Cov", "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"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": ["null", "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.", "name": "trailFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailFlux.", "name": "trailFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for trailed source model.", "name": "trailRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailRa.", "name": "trailRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for trailed source model.", "name": "trailDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailDec.", "name": "trailDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood fit of trail length.", "name": "trailLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailLength.", "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).", "name": "trailAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailAngle.", "name": "trailAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailRa.", "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailDec.", "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailLength", "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailAngle", "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailDec.", "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailLength.", "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailAngle.", "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailLength.", "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailAngle.", "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailLength and trailAngle", "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the trailed source model.", "name": "trailLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the trailed source model fit.", "name": "trailChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleMeanFlux.", "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.", "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleFluxDiff.", "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for dipole model.", "name": "dipoleRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleRa.", "name": "dipoleRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for dipole model.", "name": "dipoleDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleDec.", "name": "dipoleDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood value for the lobe separation in dipole model.", "name": "dipoleLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleLength.", "name": "dipoleLengthErr", "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).", "name": "dipoleAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleAngle.", "name": "dipoleAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleDec.", "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleLength.", "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleAngle.", "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleLength.", "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleAngle.", "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleLength and dipoleAngle.", "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the dipole source model.", "name": "dipoleLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the model fit.", "name": "dipoleChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "name": "snapDiffFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of snapDiffFlux.", "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Estimated sky background at the position (centroid) of the object.", "name": "fpBkgd", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of fpBkgd.", "name": "fpBkgdErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixx", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixx.", "name": "ixxErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "iyy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of iyy.", "name": "iyyErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixy.", "name": "ixyErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and iyy.", "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and ixy.", "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of iyy and ixy.", "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "ixxPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "iyyPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "name": "reliability", "type": ["null", "float"]}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}, {"default": null, "doc": "Attempted to fit a dipole model to this source.", "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_4.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_4.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_4.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_4.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "name": "radecMjdTai", "type": ["null", "double"]}, {"default": null, "doc": "Proper motion in right ascension.", "name": "pmRa", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmRa.", "name": "pmRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Proper motion of declination.", "name": "pmDec", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmDec.", "name": "pmDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Parallax.", "name": "parallax", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of parallax.", "name": "parallaxErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and pmDec.", "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and parallax.", "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmDec and parallax.", "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "name": "pmParallaxLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 static of the model fit.", "name": "pmParallaxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the model.", "name": "pmParallaxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for u filter.", "name": "u_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_psfFluxMean.", "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_psfFlux.", "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute u_psfFluxChi2.", "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for u filter.", "name": "u_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_fpFluxMean.", "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_fpFlux.", "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for g filter.", "name": "g_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_psfFluxMean.", "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_psfFlux.", "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute g_psfFluxChi2.", "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for g filter.", "name": "g_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_fpFluxMean.", "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_fpFlux.", "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for r filter.", "name": "r_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_psfFluxMean.", "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_psfFlux.", "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute r_psfFluxChi2.", "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for r filter.", "name": "r_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_fpFluxMean.", "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_fpFlux.", "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for i filter.", "name": "i_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_psfFluxMean.", "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_psfFlux.", "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute i_psfFluxChi2.", "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for i filter.", "name": "i_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_fpFluxMean.", "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_fpFlux.", "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for z filter.", "name": "z_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_psfFluxMean.", "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_psfFlux.", "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute z_psfFluxChi2.", "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for z filter.", "name": "z_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_fpFluxMean.", "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_fpFlux.", "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for y filter.", "name": "y_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_psfFluxMean.", "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_psfFlux.", "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute y_psfFluxChi2.", "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for y filter.", "name": "y_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_fpFluxMean.", "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_fpFlux.", "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Id of the closest nearby object.", "name": "nearbyObj1", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj1.", "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the second-closest nearby object.", "name": "nearbyObj2", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj2.", "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the third-closest nearby object.", "name": "nearbyObj3", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj3.", "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the u band flux errors.", "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the g band flux errors.", "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the r band flux errors.", "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the i band flux errors.", "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the z band flux errors.", "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the y band flux errors.", "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_4.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"default": null, "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"default": null, "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "name": "firstObservationDate", "type": ["null", "double"]}, {"default": null, "doc": "Arc of LSST observations.", "name": "arc", "type": ["null", "float"]}, {"default": null, "doc": "Number of LSST observations of this object.", "name": "numObs", "type": ["null", "int"]}, {"default": null, "doc": "Minimum orbit intersection distance to Earth.", "name": "MOID", "type": ["null", "float"]}, {"default": null, "doc": "True anomaly of the MOID point.", "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"default": null, "doc": "Ecliptic longitude of the MOID point.", "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"default": null, "doc": "DeltaV at the MOID point.", "name": "MOIDDeltaV", "type": ["null", "float"]}, {"default": null, "doc": "Best fit absolute magnitude (u band).", "name": "u_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (u band).", "name": "u_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (u band).", "name": "u_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (u band).", "name": "u_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (u band).", "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (u band).", "name": "u_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (u band).", "name": "u_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (g band).", "name": "g_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (g band).", "name": "g_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (g band).", "name": "g_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (g band).", "name": "g_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (g band).", "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (g band).", "name": "g_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (g band).", "name": "g_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (r band).", "name": "r_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (r band).", "name": "r_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (r band).", "name": "r_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (r band).", "name": "r_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (r band).", "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (r band).", "name": "r_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (r band).", "name": "r_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (i band).", "name": "i_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (i band).", "name": "i_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (i band).", "name": "i_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (i band).", "name": "i_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (i band).", "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (i band).", "name": "i_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (i band).", "name": "i_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (z band).", "name": "z_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (z band).", "name": "z_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (z band).", "name": "z_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (z band).", "name": "z_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (z band).", "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (z band).", "name": "z_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (z band).", "name": "z_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (y band).", "name": "y_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (y band).", "name": "y_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (y band).", "name": "y_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (y band).", "name": "y_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (y band).", "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (y band).", "name": "y_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (y band).", "name": "y_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "median `extendedness` value from the DIASource.", "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}`==<㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9`==< \ No newline at end of file diff --git a/pittgoogle/schemas/lsst/7/4/sample_data/generate.py b/pittgoogle/schemas/lsst/7/4/sample_data/generate.py new file mode 100644 index 0000000..a76189d --- /dev/null +++ b/pittgoogle/schemas/lsst/7/4/sample_data/generate.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +import json +import lsst.alert.packet as packet +from datetime import datetime +import pandas as pd + +with open("alert.json", "r") as f: + data = json.load(f) + + data_time = datetime.now() + + data['diaSource']['time_processed'] = pd.Timestamp(data_time) + data['diaObject']['validityStart'] = pd.Timestamp(data_time) + +schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_4.alert").get_by_version("7.4") +with open("fakeAlert.avro", "wb") as f: + schema.store_alerts(f, [data]) From 2e494e892c25176fdeb3f4c37db14f08388a8c81 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Thu, 27 Feb 2025 13:58:42 -0500 Subject: [PATCH 07/20] incorporate requested changes --- pittgoogle/registry_manifests/schemas.yml | 67 ++++++++++++++++++++--- pittgoogle/schema.py | 16 +++++- pittgoogle/schemas/lsst/7/README.md | 3 + 3 files changed, 75 insertions(+), 11 deletions(-) create mode 100644 pittgoogle/schemas/lsst/7/README.md diff --git a/pittgoogle/registry_manifests/schemas.yml b/pittgoogle/registry_manifests/schemas.yml index 5ead46e..04e1036 100644 --- a/pittgoogle/registry_manifests/schemas.yml +++ b/pittgoogle/registry_manifests/schemas.yml @@ -33,22 +33,73 @@ path: 'schemas/elasticc/elasticc.v0_9_1.brokerClassification.avsc' # # LSST alerts -# [FIXME] Hacking in v7.3 for now. Need to figure out install lsst-alert-packet to use lsst_auto_schema_helper +# [FIXME] Hacking in v7.x for now. Need to figure out install lsst-alert-packet to use lsst_auto_schema_helper # - name: 'lsst.v_.alert' # helper: 'lsst_auto_schema_helper' +- name: 'lsst.v7_4.alert' + path: 'schemas/lsst/7/4/lsst.v7_4.alert.avsc' + description: 'Schema for LSST alerts.' + origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' + helper: 'lsst_schema_helper' + filter_map: + 1: 'u' + 2: 'g' + 3: 'r' + 4: 'i' + 5: 'z' + 6: 'y' +# - name: 'lsst.v7_3.alert' path: 'schemas/lsst/7/3/lsst.v7_3.alert.avsc' description: 'Schema for LSST alerts.' origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' helper: 'lsst_schema_helper' - # [FIXME] filter_map is probably int -> {u, g, r, i, z, y}. Check for sure and fill in below filter_map: - 1: '' - 2: '' - 3: '' - 4: '' - 5: '' - 6: '' + 1: 'u' + 2: 'g' + 3: 'r' + 4: 'i' + 5: 'z' + 6: 'y' +# +- name: 'lsst.v7_2.alert' + path: 'schemas/lsst/7/2/lsst.v7_2.alert.avsc' + description: 'Schema for LSST alerts.' + origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' + helper: 'lsst_schema_helper' + filter_map: + 1: 'u' + 2: 'g' + 3: 'r' + 4: 'i' + 5: 'z' + 6: 'y' +# +- name: 'lsst.v7_1.alert' + path: 'schemas/lsst/7/1/lsst.v7_1.alert.avsc' + description: 'Schema for LSST alerts.' + origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' + helper: 'lsst_schema_helper' + filter_map: + 1: 'u' + 2: 'g' + 3: 'r' + 4: 'i' + 5: 'z' + 6: 'y' +# +- name: 'lsst.v7_0.alert' + path: 'schemas/lsst/7/0/lsst.v7_0.alert.avsc' + description: 'Schema for LSST alerts.' + origin: 'https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema' + helper: 'lsst_schema_helper' + filter_map: + 1: 'u' + 2: 'g' + 3: 'r' + 4: 'i' + 5: 'z' + 6: 'y' # # ZTF alerts - name: 'ztf' diff --git a/pittgoogle/schema.py b/pittgoogle/schema.py index b5e460d..2591f97 100644 --- a/pittgoogle/schema.py +++ b/pittgoogle/schema.py @@ -76,12 +76,22 @@ def elasticc_schema_helper(schema_dict: dict) -> "Schema": @staticmethod def lsst_schema_helper(schema_dict: dict) -> "Schema": - """Load the Avro schema definition for lsst.v7_3.alert.""" + """Load the Avro schema definition for lsst.v7_x.alert.""" # [FIXME] This is hack to get the latest schema version into pittgoogle-client # until we can get :meth:`SchemaHelpers.lsst_auto_schema_helper` working. - if not schema_dict["name"] == "lsst.v7_3.alert": - raise NotImplementedError("Only 'lsst.v7_3.alert' is supported for LSST.") + supported_versions = [ + "lsst.v7_0.alert", + "lsst.v7_1.alert", + "lsst.v7_2.alert", + "lsst.v7_3.alert", + "lsst.v7_4.alert", + ] + + if schema_dict.get("name") not in supported_versions: + raise NotImplementedError( + f"Only {', '.join(supported_versions)} are supported for LSST." + ) schema = _ConfluentWireAvroSchema(**schema_dict) diff --git a/pittgoogle/schemas/lsst/7/README.md b/pittgoogle/schemas/lsst/7/README.md new file mode 100644 index 0000000..7b6f5ac --- /dev/null +++ b/pittgoogle/schemas/lsst/7/README.md @@ -0,0 +1,3 @@ +# LSST Alert Schemas + +This directory contains the lastest alert schema versions for LSST. Original files were obtained from the [lsst/alert_packet repo](https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema/7) From 5eb72a7bbad76a637b12ee27977561a655db1246 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Thu, 27 Feb 2025 14:29:09 -0500 Subject: [PATCH 08/20] update CHANGELOG.md --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b1d321..92ad8ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) (none) +## \[v0.3.12\] - 2025-02-27 + +### Added + +- LSST schema versions 7.2, 7.3, and 7.4 to `pittgoogle/schemas/lsst` +- README.md describing where LSST alert schema versions were obtained. + +### Changed + +- `schema.py` now specifies all schema versions that are available for LSST +- Schema mappings for new LSST alert versions incorporated into `schemas.yml` + ## \[v0.3.11\] - 2024-07-22 ### Added From dcdf86929519b40f791d5ee06cd38dedf33d69ea Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Thu, 27 Feb 2025 15:08:41 -0500 Subject: [PATCH 09/20] rephrased changes in CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ad8ad..3f04dd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,8 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added -- LSST schema versions 7.2, 7.3, and 7.4 to `pittgoogle/schemas/lsst` -- README.md describing where LSST alert schema versions were obtained. +- Support for LSST schema versions 7.2, 7.3, and 7.4 +- README.md describing where the new LSST alert schemas were obtained. ### Changed From 476622eebbf8c5c899b1804b88711939934c36de Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Thu, 27 Feb 2025 17:05:05 -0500 Subject: [PATCH 10/20] address codacy issues --- pittgoogle/schemas/lsst/7/2/sample_data/alert.json | 1 - pittgoogle/schemas/lsst/7/3/sample_data/alert.json | 1 - pittgoogle/schemas/lsst/7/4/sample_data/alert.json | 1 - pittgoogle/schemas/lsst/7/README.md | 3 ++- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pittgoogle/schemas/lsst/7/2/sample_data/alert.json b/pittgoogle/schemas/lsst/7/2/sample_data/alert.json index 1a1f952..251ac56 100644 --- a/pittgoogle/schemas/lsst/7/2/sample_data/alert.json +++ b/pittgoogle/schemas/lsst/7/2/sample_data/alert.json @@ -93,7 +93,6 @@ "parallax": 2.124124, "pmRaErr": 0.00013, "pmDecErr": 0.00013, - "pmParallaxNdata": 0, "parallaxErr": 0.00013, "pmRa_pmDec_Cov": 0.00013, "pmRa_parallax_Cov": 0.00013, diff --git a/pittgoogle/schemas/lsst/7/3/sample_data/alert.json b/pittgoogle/schemas/lsst/7/3/sample_data/alert.json index 1a1f952..251ac56 100644 --- a/pittgoogle/schemas/lsst/7/3/sample_data/alert.json +++ b/pittgoogle/schemas/lsst/7/3/sample_data/alert.json @@ -93,7 +93,6 @@ "parallax": 2.124124, "pmRaErr": 0.00013, "pmDecErr": 0.00013, - "pmParallaxNdata": 0, "parallaxErr": 0.00013, "pmRa_pmDec_Cov": 0.00013, "pmRa_parallax_Cov": 0.00013, diff --git a/pittgoogle/schemas/lsst/7/4/sample_data/alert.json b/pittgoogle/schemas/lsst/7/4/sample_data/alert.json index 1a1f952..251ac56 100644 --- a/pittgoogle/schemas/lsst/7/4/sample_data/alert.json +++ b/pittgoogle/schemas/lsst/7/4/sample_data/alert.json @@ -93,7 +93,6 @@ "parallax": 2.124124, "pmRaErr": 0.00013, "pmDecErr": 0.00013, - "pmParallaxNdata": 0, "parallaxErr": 0.00013, "pmRa_pmDec_Cov": 0.00013, "pmRa_parallax_Cov": 0.00013, diff --git a/pittgoogle/schemas/lsst/7/README.md b/pittgoogle/schemas/lsst/7/README.md index 7b6f5ac..2e88f05 100644 --- a/pittgoogle/schemas/lsst/7/README.md +++ b/pittgoogle/schemas/lsst/7/README.md @@ -1,3 +1,4 @@ # LSST Alert Schemas -This directory contains the lastest alert schema versions for LSST. Original files were obtained from the [lsst/alert_packet repo](https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema/7) +This directory contains the lastest alert schema versions for LSST. Original files were obtained from the +[lsst/alert_packet repo](https://github.com/lsst/alert_packet/tree/main/python/lsst/alert/packet/schema/7) From a9db4138a9b316265663daf68518e9ff098009c7 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Mar 2025 11:27:57 -0500 Subject: [PATCH 11/20] implement requested changes --- .DS_Store | Bin 0 -> 6148 bytes CHANGELOG.md | 14 +-- pittgoogle/.DS_Store | Bin 0 -> 6148 bytes pittgoogle/schemas/.DS_Store | Bin 0 -> 6148 bytes pittgoogle/schemas/lsst/.DS_Store | Bin 0 -> 6148 bytes pittgoogle/schemas/lsst/7/.DS_Store | Bin 0 -> 6148 bytes pittgoogle/schemas/lsst/7/2/.DS_Store | Bin 0 -> 6148 bytes pittgoogle/schemas/lsst/7/3/.DS_Store | Bin 0 -> 6148 bytes .../lsst_alerts/7/0/sample_data/alert.json | 109 ++++++++++++++++++ .../7/0/sample_data/fakeAlert.avro | 4 + .../lsst_alerts/7/0/sample_data/generate.py | 17 +++ .../lsst_alerts/7/1/sample_data/alert.json | 109 ++++++++++++++++++ .../7/1/sample_data/fakeAlert.avro | 4 + .../lsst_alerts/7/1/sample_data/generate.py | 17 +++ .../lsst_alerts}/7/2/sample_data/alert.json | 0 .../7/2/sample_data/fakeAlert.avro | 0 .../lsst_alerts}/7/2/sample_data/generate.py | 0 .../lsst_alerts}/7/3/sample_data/alert.json | 0 .../7/3/sample_data/fakeAlert.avro | 0 .../lsst_alerts}/7/3/sample_data/generate.py | 0 .../lsst_alerts}/7/4/sample_data/alert.json | 0 .../7/4/sample_data/fakeAlert.avro | 0 .../lsst_alerts}/7/4/sample_data/generate.py | 0 23 files changed, 263 insertions(+), 11 deletions(-) create mode 100644 .DS_Store create mode 100644 pittgoogle/.DS_Store create mode 100644 pittgoogle/schemas/.DS_Store create mode 100644 pittgoogle/schemas/lsst/.DS_Store create mode 100644 pittgoogle/schemas/lsst/7/.DS_Store create mode 100644 pittgoogle/schemas/lsst/7/2/.DS_Store create mode 100644 pittgoogle/schemas/lsst/7/3/.DS_Store create mode 100644 tests/data/lsst_alerts/7/0/sample_data/alert.json create mode 100644 tests/data/lsst_alerts/7/0/sample_data/fakeAlert.avro create mode 100644 tests/data/lsst_alerts/7/0/sample_data/generate.py create mode 100644 tests/data/lsst_alerts/7/1/sample_data/alert.json create mode 100644 tests/data/lsst_alerts/7/1/sample_data/fakeAlert.avro create mode 100644 tests/data/lsst_alerts/7/1/sample_data/generate.py rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/2/sample_data/alert.json (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/2/sample_data/fakeAlert.avro (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/2/sample_data/generate.py (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/3/sample_data/alert.json (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/3/sample_data/fakeAlert.avro (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/3/sample_data/generate.py (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/4/sample_data/alert.json (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/4/sample_data/fakeAlert.avro (100%) rename {pittgoogle/schemas/lsst => tests/data/lsst_alerts}/7/4/sample_data/generate.py (100%) diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..10a7c68e4852eabf5245afa85d8aea1fffa5c44f GIT binary patch literal 6148 zcmeHKyG{c!5S)b+5i}_&{R{ko6(wK54@4m-LOSV?fc`4Ji%-k!qaZryLKDqe>#_HC zY~2*Mw*YMYd3Xd?0G4z|eEBptf9^iBn~E5b&NGe}IgS|cGRyuw;M_aB;T0boKlq3D z=V3pNgD1$OfE17dQa}nwfr}|nrFD6Ku@iNW6p#YfqJV!N8r`uMPKoj9;1n$YalvpH z*U?K5n+J%!a7tu^W=SO`)vCp?q%+xr7BfD|}a z;5N4_um4;6AN~J1NjoVZ1+Gc~TWp>-Yray|*4fK>t!?xj-E+R_Zd?b2QOaW literal 0 HcmV?d00001 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e623fc..32c5745 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added +- Support for LSST schema versions 7.2, 7.3, and 7.4 +- README.md describing where the new LSST alert schemas were obtained. - Add '\_\_package_path__' as a package-level variable. - Add test data for LSST and ZTF. - Add unit tests for: @@ -21,19 +23,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Changed -- Implement `schema._ConfluentWireAvroSchema.serialize`. - -## \[v0.3.12\] - 2025-02-27 - -### Added - -- Support for LSST schema versions 7.2, 7.3, and 7.4 -- README.md describing where the new LSST alert schemas were obtained. - -### Changed - - `schema.py` now specifies all schema versions that are available for LSST - Schema mappings for new LSST alert versions incorporated into `schemas.yml` +- Implement `schema._ConfluentWireAvroSchema.serialize`. ## \[v0.3.11\] - 2024-07-22 diff --git a/pittgoogle/.DS_Store b/pittgoogle/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c45de5e009d5ddb3f08f5353f8b3694642197810 GIT binary patch literal 6148 zcmeHKJ5EC}5S)cbL`svA(pTUHR+O9|7YHOs6hSGT=wHRTI2yB`g6Jh(C_uB)dhGR% zEl=_GEdX169G-wBfH~a}pFT{@_uVIUR}mx9dB!`QF&u{d@#Qqhz8rAw0|xBzhS#6` z)6utNQa}nw0VyB_q`-|8r~*4*-1uA_Ck3Ry-&erD4~_2F3&+Ixba03kfH-3~jPvLv zh|L4UUN|N)LbIe2lWNssSkf79mDdZ$#H7Qj`LMd#szb53o#(emhxJ5_Qa}ovD{!C7 zrPu!r{Yw9TPSQ#WNP&N)fX&w1^@>lb+B$ih*V;zk(LLvj?#6jgI7B%nMmgrf%kg6* bWnS|+_j}=(7<9&iPSnqU>mri^zpcPG0Y?>t literal 0 HcmV?d00001 diff --git a/pittgoogle/schemas/.DS_Store b/pittgoogle/schemas/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..94250e0a0c7d2719b45e5abef072f796dd4d7027 GIT binary patch literal 6148 zcmeH~F%H5o3`K3|P>H1@V-^m;4WbH8zy%O=tkj{f=jePpUMS3{Lf^>#u~Uoo4NWZ~ z+CPV*NGBpK+*A%07N*D>8D+-rG0gYzHcg`yVVf#qDZG=#er!`nfCNZ@1W14cRzx6< z@piYOd*ZE-012#vfW03Q+%$)ls{ZOg@DTvopzMaV&l1pN1!xW}RZ)RyOb;5Z>SKu2 zy&an3x*S@n)^^btJ~aMWZHj?uZ5K^QV47VRNPq+u1hzHr?EF8&zs>)P7N#UX0)Iw8 zo73gg&E=B)e-D51 z{(mHCB?Y9wTPfhP-C?)Im8!RnF2`Qm;72%fe&96BgMuO2F)-RO7Hr3>NXop%Ire+u UkQj8tgAUZs0CkZ`f&W(E7al=jj+JAO)^R0slTUx??Y#664dsAzA?9is3NM zqn98y4-k9dl*kCpl1fafRf}OsXS`KjFPsvS4y)$F>Sn7B#o~6J-y$8>6E#W!DKJ;y zHkVtk{}1#(`u{meD=8oau1W!0?H~6$KB;Q!;&EPU8~vH?Ip1_Q&V#}s$}us@F&AEr e?;=jj+JAO)^R0slTUx??Y#664dsAzA?9is3NM zqn98y4-k9dl*kCpl1fafRf}OsXS`KjFPsvS4y)$F>Sn7B#o~6J-y$8>6E#W!DKJ;y zHkVtk{}1#(`u{meD=8oau1W!0?H~6$KB;Q!;&EPU8~vH?Ip1_Q&V#}s$}us@F&AEr e?; Date: Mon, 3 Mar 2025 12:26:22 -0500 Subject: [PATCH 12/20] reformat sample_alerts/lsst dir --- .../7/0/sample_data => sample_alerts/lsst/7/0}/alert.json | 0 .../7/0/sample_data => sample_alerts/lsst/7/0}/fakeAlert.avro | 0 .../7/0/sample_data => sample_alerts/lsst/7/0}/generate.py | 0 .../7/1/sample_data => sample_alerts/lsst/7/1}/alert.json | 0 .../7/1/sample_data => sample_alerts/lsst/7/1}/fakeAlert.avro | 0 .../7/1/sample_data => sample_alerts/lsst/7/1}/generate.py | 0 .../7/2/sample_data => sample_alerts/lsst/7/2}/alert.json | 0 .../7/2/sample_data => sample_alerts/lsst/7/2}/fakeAlert.avro | 0 .../7/2/sample_data => sample_alerts/lsst/7/2}/generate.py | 0 .../7/3/sample_data => sample_alerts/lsst/7/3}/alert.json | 0 .../7/3/sample_data => sample_alerts/lsst/7/3}/fakeAlert.avro | 0 .../7/3/sample_data => sample_alerts/lsst/7/3}/generate.py | 0 .../7/4/sample_data => sample_alerts/lsst/7/4}/alert.json | 0 .../7/4/sample_data => sample_alerts/lsst/7/4}/fakeAlert.avro | 0 .../7/4/sample_data => sample_alerts/lsst/7/4}/generate.py | 0 15 files changed, 0 insertions(+), 0 deletions(-) rename tests/data/{lsst_alerts/7/0/sample_data => sample_alerts/lsst/7/0}/alert.json (100%) rename tests/data/{lsst_alerts/7/0/sample_data => sample_alerts/lsst/7/0}/fakeAlert.avro (100%) rename tests/data/{lsst_alerts/7/0/sample_data => sample_alerts/lsst/7/0}/generate.py (100%) rename tests/data/{lsst_alerts/7/1/sample_data => sample_alerts/lsst/7/1}/alert.json (100%) rename tests/data/{lsst_alerts/7/1/sample_data => sample_alerts/lsst/7/1}/fakeAlert.avro (100%) rename tests/data/{lsst_alerts/7/1/sample_data => sample_alerts/lsst/7/1}/generate.py (100%) rename tests/data/{lsst_alerts/7/2/sample_data => sample_alerts/lsst/7/2}/alert.json (100%) rename tests/data/{lsst_alerts/7/2/sample_data => sample_alerts/lsst/7/2}/fakeAlert.avro (100%) rename tests/data/{lsst_alerts/7/2/sample_data => sample_alerts/lsst/7/2}/generate.py (100%) rename tests/data/{lsst_alerts/7/3/sample_data => sample_alerts/lsst/7/3}/alert.json (100%) rename tests/data/{lsst_alerts/7/3/sample_data => sample_alerts/lsst/7/3}/fakeAlert.avro (100%) rename tests/data/{lsst_alerts/7/3/sample_data => sample_alerts/lsst/7/3}/generate.py (100%) rename tests/data/{lsst_alerts/7/4/sample_data => sample_alerts/lsst/7/4}/alert.json (100%) rename tests/data/{lsst_alerts/7/4/sample_data => sample_alerts/lsst/7/4}/fakeAlert.avro (100%) rename tests/data/{lsst_alerts/7/4/sample_data => sample_alerts/lsst/7/4}/generate.py (100%) diff --git a/tests/data/lsst_alerts/7/0/sample_data/alert.json b/tests/data/sample_alerts/lsst/7/0/alert.json similarity index 100% rename from tests/data/lsst_alerts/7/0/sample_data/alert.json rename to tests/data/sample_alerts/lsst/7/0/alert.json diff --git a/tests/data/lsst_alerts/7/0/sample_data/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/0/fakeAlert.avro similarity index 100% rename from tests/data/lsst_alerts/7/0/sample_data/fakeAlert.avro rename to tests/data/sample_alerts/lsst/7/0/fakeAlert.avro diff --git a/tests/data/lsst_alerts/7/0/sample_data/generate.py b/tests/data/sample_alerts/lsst/7/0/generate.py similarity index 100% rename from tests/data/lsst_alerts/7/0/sample_data/generate.py rename to tests/data/sample_alerts/lsst/7/0/generate.py diff --git a/tests/data/lsst_alerts/7/1/sample_data/alert.json b/tests/data/sample_alerts/lsst/7/1/alert.json similarity index 100% rename from tests/data/lsst_alerts/7/1/sample_data/alert.json rename to tests/data/sample_alerts/lsst/7/1/alert.json diff --git a/tests/data/lsst_alerts/7/1/sample_data/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/1/fakeAlert.avro similarity index 100% rename from tests/data/lsst_alerts/7/1/sample_data/fakeAlert.avro rename to tests/data/sample_alerts/lsst/7/1/fakeAlert.avro diff --git a/tests/data/lsst_alerts/7/1/sample_data/generate.py b/tests/data/sample_alerts/lsst/7/1/generate.py similarity index 100% rename from tests/data/lsst_alerts/7/1/sample_data/generate.py rename to tests/data/sample_alerts/lsst/7/1/generate.py diff --git a/tests/data/lsst_alerts/7/2/sample_data/alert.json b/tests/data/sample_alerts/lsst/7/2/alert.json similarity index 100% rename from tests/data/lsst_alerts/7/2/sample_data/alert.json rename to tests/data/sample_alerts/lsst/7/2/alert.json diff --git a/tests/data/lsst_alerts/7/2/sample_data/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/2/fakeAlert.avro similarity index 100% rename from tests/data/lsst_alerts/7/2/sample_data/fakeAlert.avro rename to tests/data/sample_alerts/lsst/7/2/fakeAlert.avro diff --git a/tests/data/lsst_alerts/7/2/sample_data/generate.py b/tests/data/sample_alerts/lsst/7/2/generate.py similarity index 100% rename from tests/data/lsst_alerts/7/2/sample_data/generate.py rename to tests/data/sample_alerts/lsst/7/2/generate.py diff --git a/tests/data/lsst_alerts/7/3/sample_data/alert.json b/tests/data/sample_alerts/lsst/7/3/alert.json similarity index 100% rename from tests/data/lsst_alerts/7/3/sample_data/alert.json rename to tests/data/sample_alerts/lsst/7/3/alert.json diff --git a/tests/data/lsst_alerts/7/3/sample_data/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/3/fakeAlert.avro similarity index 100% rename from tests/data/lsst_alerts/7/3/sample_data/fakeAlert.avro rename to tests/data/sample_alerts/lsst/7/3/fakeAlert.avro diff --git a/tests/data/lsst_alerts/7/3/sample_data/generate.py b/tests/data/sample_alerts/lsst/7/3/generate.py similarity index 100% rename from tests/data/lsst_alerts/7/3/sample_data/generate.py rename to tests/data/sample_alerts/lsst/7/3/generate.py diff --git a/tests/data/lsst_alerts/7/4/sample_data/alert.json b/tests/data/sample_alerts/lsst/7/4/alert.json similarity index 100% rename from tests/data/lsst_alerts/7/4/sample_data/alert.json rename to tests/data/sample_alerts/lsst/7/4/alert.json diff --git a/tests/data/lsst_alerts/7/4/sample_data/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/4/fakeAlert.avro similarity index 100% rename from tests/data/lsst_alerts/7/4/sample_data/fakeAlert.avro rename to tests/data/sample_alerts/lsst/7/4/fakeAlert.avro diff --git a/tests/data/lsst_alerts/7/4/sample_data/generate.py b/tests/data/sample_alerts/lsst/7/4/generate.py similarity index 100% rename from tests/data/lsst_alerts/7/4/sample_data/generate.py rename to tests/data/sample_alerts/lsst/7/4/generate.py From 21b183738e3987d1039aba4254c326fc7f578e92 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Mar 2025 15:18:01 -0500 Subject: [PATCH 13/20] add sample alert data (avro format) --- tests/data/sample_alerts/lsst/lsst.v7_0.avro | Bin 0 -> 900 bytes tests/data/sample_alerts/lsst/lsst.v7_2.avro | Bin 0 -> 903 bytes tests/data/sample_alerts/lsst/lsst.v7_3.avro | Bin 0 -> 903 bytes tests/data/sample_alerts/lsst/lsst.v7_4.avro | Bin 0 -> 912 bytes 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/data/sample_alerts/lsst/lsst.v7_0.avro create mode 100644 tests/data/sample_alerts/lsst/lsst.v7_2.avro create mode 100644 tests/data/sample_alerts/lsst/lsst.v7_3.avro create mode 100644 tests/data/sample_alerts/lsst/lsst.v7_4.avro diff --git a/tests/data/sample_alerts/lsst/lsst.v7_0.avro b/tests/data/sample_alerts/lsst/lsst.v7_0.avro new file mode 100644 index 0000000000000000000000000000000000000000..32dfe4514434908ed3d9400c701b6d884fb6ba03 GIT binary patch literal 900 zcmZQzU@)+}^my?!&ITaZ_I1~DcBT*p5IDf0$bZeT-1Od8g`cGkOyAE;vP=y-U$R@{ zfIXPQq{2PJ(%ATc6Vt4jGwqFyKRGd-J=0?k<}olaD9mU_>!B!O|pwWC%=YkSJxE s6To2!A-_v82=V=l5R|p-BfA5V1VRad^+yP63L;*RspV}SE6B+r#Or~n1OQ#HoD2W} literal 0 HcmV?d00001 From 0be39ac9d3a11ade256f5d7e45463a857cca9612 Mon Sep 17 00:00:00 2001 From: Chris Hernandez Date: Mon, 3 Mar 2025 15:20:11 -0500 Subject: [PATCH 14/20] remove data from sample_alerts/lsst --- tests/data/sample_alerts/lsst/7/0/alert.json | 109 ------------------ .../sample_alerts/lsst/7/0/fakeAlert.avro | 4 - tests/data/sample_alerts/lsst/7/0/generate.py | 17 --- tests/data/sample_alerts/lsst/7/1/alert.json | 109 ------------------ .../sample_alerts/lsst/7/1/fakeAlert.avro | 4 - tests/data/sample_alerts/lsst/7/1/generate.py | 17 --- tests/data/sample_alerts/lsst/7/2/alert.json | 108 ----------------- .../sample_alerts/lsst/7/2/fakeAlert.avro | 4 - tests/data/sample_alerts/lsst/7/2/generate.py | 17 --- tests/data/sample_alerts/lsst/7/3/alert.json | 108 ----------------- .../sample_alerts/lsst/7/3/fakeAlert.avro | 4 - tests/data/sample_alerts/lsst/7/3/generate.py | 17 --- tests/data/sample_alerts/lsst/7/4/alert.json | 108 ----------------- .../sample_alerts/lsst/7/4/fakeAlert.avro | 4 - tests/data/sample_alerts/lsst/7/4/generate.py | 17 --- 15 files changed, 647 deletions(-) delete mode 100644 tests/data/sample_alerts/lsst/7/0/alert.json delete mode 100644 tests/data/sample_alerts/lsst/7/0/fakeAlert.avro delete mode 100644 tests/data/sample_alerts/lsst/7/0/generate.py delete mode 100644 tests/data/sample_alerts/lsst/7/1/alert.json delete mode 100644 tests/data/sample_alerts/lsst/7/1/fakeAlert.avro delete mode 100644 tests/data/sample_alerts/lsst/7/1/generate.py delete mode 100644 tests/data/sample_alerts/lsst/7/2/alert.json delete mode 100644 tests/data/sample_alerts/lsst/7/2/fakeAlert.avro delete mode 100644 tests/data/sample_alerts/lsst/7/2/generate.py delete mode 100644 tests/data/sample_alerts/lsst/7/3/alert.json delete mode 100644 tests/data/sample_alerts/lsst/7/3/fakeAlert.avro delete mode 100644 tests/data/sample_alerts/lsst/7/3/generate.py delete mode 100644 tests/data/sample_alerts/lsst/7/4/alert.json delete mode 100644 tests/data/sample_alerts/lsst/7/4/fakeAlert.avro delete mode 100644 tests/data/sample_alerts/lsst/7/4/generate.py diff --git a/tests/data/sample_alerts/lsst/7/0/alert.json b/tests/data/sample_alerts/lsst/7/0/alert.json deleted file mode 100644 index 1a1f952..0000000 --- a/tests/data/sample_alerts/lsst/7/0/alert.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "alertId": 1231321321, - "l1dbId": 222222222, - "diaSource": - { - "diaSourceId": 281323062375219200, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - }, - "prvDiaSources": [ - { - "diaSourceId": 281323062375219198, - "time_processed": 0, - "visit": 2, - "detector": 43, - "midpointMjdTai": 1480360995, - "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 - }, - { - "diaSourceId": 281323062375219199, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - } - ], - "diaObject": { - "diaObjectId": 281323062375219201, - "validityStart": 0, - "ra": 351.570546978, - "dec": 0.126243049656, - "raErr": 0.00028, - "decErr": 0.00028, - "ra_dec_Cov": 0.00029, - "radecMjdTai": 1480360995, - "pmRa": 0.00013, - "pmDec": 0.00014, - "parallax": 2.124124, - "pmRaErr": 0.00013, - "pmDecErr": 0.00013, - "pmParallaxNdata": 0, - "parallaxErr": 0.00013, - "pmRa_pmDec_Cov": 0.00013, - "pmRa_parallax_Cov": 0.00013, - "pmDec_parallax_Cov": 0.00013, - "pmParallaxLnL": 0.00013, - "pmParallaxChi2": 0.00013, - "pmParallaxNdata": 1214 - }, - "ssObject": { - "ssObjectId":5364546, - "numObs": 10 - } -} diff --git a/tests/data/sample_alerts/lsst/7/0/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/0/fakeAlert.avro deleted file mode 100644 index a222717..0000000 --- a/tests/data/sample_alerts/lsst/7/0/fakeAlert.avro +++ /dev/null @@ -1,4 +0,0 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.0", "name": "lsst.v7_0.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_0.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.", "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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"default": null, "doc": "Uncertainty of x.", "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"default": null, "doc": "Uncertainty of y.", "name": "yErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between x and y.", "name": "x_y_Cov", "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.", "name": "apFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of apFlux.", "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": "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for point source model.", "name": "psfRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfRa.", "name": "psfRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for point source model.", "name": "psfDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfDec.", "name": "psfDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfRa.", "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfDec.", "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfRa and psfDec.", "name": "psfRa_psfDec_Cov", "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"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": ["null", "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.", "name": "trailFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailFlux.", "name": "trailFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for trailed source model.", "name": "trailRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailRa.", "name": "trailRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for trailed source model.", "name": "trailDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailDec.", "name": "trailDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood fit of trail length.", "name": "trailLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailLength.", "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).", "name": "trailAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailAngle.", "name": "trailAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailRa.", "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailDec.", "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailLength", "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailAngle", "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailDec.", "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailLength.", "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailAngle.", "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailLength.", "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailAngle.", "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailLength and trailAngle", "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the trailed source model.", "name": "trailLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the trailed source model fit.", "name": "trailChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleMeanFlux.", "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.", "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleFluxDiff.", "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for dipole model.", "name": "dipoleRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleRa.", "name": "dipoleRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for dipole model.", "name": "dipoleDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleDec.", "name": "dipoleDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood value for the lobe separation in dipole model.", "name": "dipoleLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleLength.", "name": "dipoleLengthErr", "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).", "name": "dipoleAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleAngle.", "name": "dipoleAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleDec.", "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleLength.", "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleAngle.", "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleLength.", "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleAngle.", "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleLength and dipoleAngle.", "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the dipole source model.", "name": "dipoleLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the model fit.", "name": "dipoleChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "name": "snapDiffFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of snapDiffFlux.", "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Estimated sky background at the position (centroid) of the object.", "name": "fpBkgd", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of fpBkgd.", "name": "fpBkgdErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixx", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixx.", "name": "ixxErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "iyy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of iyy.", "name": "iyyErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixy.", "name": "ixyErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and iyy.", "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and ixy.", "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of iyy and ixy.", "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "ixxPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "iyyPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "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 using a combination of available moments and model fluxes or from a likelihood ratio of point/trailed source models (exact algorithm TBD). 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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "name": "reliability", "type": ["null", "float"]}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}, {"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 NO_DATA, or centroid off image).", "name": "pixelFlags_edge", "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, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_0.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_0.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": "Id of the visit where this forcedSource was measured.", "name": "visit", "type": "long"}, {"doc": "Id of the detector where this forcedSource was measured.", "name": "detector", "type": "int"}, {"default": null, "doc": "Point Source model flux.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "x position at which psfFlux has been measured.", "name": "x", "type": ["null", "float"]}, {"default": null, "doc": "y position at which psfFlux has been measured.", "name": "y", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_0.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_0.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "name": "radecMjdTai", "type": ["null", "double"]}, {"default": null, "doc": "Proper motion in right ascension.", "name": "pmRa", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmRa.", "name": "pmRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Proper motion of declination.", "name": "pmDec", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmDec.", "name": "pmDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Parallax.", "name": "parallax", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of parallax.", "name": "parallaxErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and pmDec.", "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and parallax.", "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmDec and parallax.", "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "name": "pmParallaxLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 static of the model fit.", "name": "pmParallaxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the model.", "name": "pmParallaxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for u filter.", "name": "u_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_psfFluxMean.", "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_psfFlux.", "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute u_psfFluxChi2.", "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for u filter.", "name": "u_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_fpFluxMean.", "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_fpFlux.", "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for g filter.", "name": "g_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_psfFluxMean.", "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_psfFlux.", "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute g_psfFluxChi2.", "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for g filter.", "name": "g_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_fpFluxMean.", "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_fpFlux.", "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for r filter.", "name": "r_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_psfFluxMean.", "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_psfFlux.", "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute r_psfFluxChi2.", "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for r filter.", "name": "r_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_fpFluxMean.", "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_fpFlux.", "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for i filter.", "name": "i_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_psfFluxMean.", "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_psfFlux.", "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute i_psfFluxChi2.", "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for i filter.", "name": "i_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_fpFluxMean.", "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_fpFlux.", "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for z filter.", "name": "z_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_psfFluxMean.", "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_psfFlux.", "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute z_psfFluxChi2.", "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for z filter.", "name": "z_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_fpFluxMean.", "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_fpFlux.", "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for y filter.", "name": "y_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_psfFluxMean.", "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_psfFlux.", "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute y_psfFluxChi2.", "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for y filter.", "name": "y_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_fpFluxMean.", "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_fpFlux.", "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Id of the closest nearby object.", "name": "nearbyObj1", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj1.", "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the second-closest nearby object.", "name": "nearbyObj2", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj2.", "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the third-closest nearby object.", "name": "nearbyObj3", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj3.", "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the u band flux errors.", "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the g band flux errors.", "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the r band flux errors.", "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the i band flux errors.", "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the z band flux errors.", "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the y band flux errors.", "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_0.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"default": null, "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"default": null, "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "name": "firstObservationDate", "type": ["null", "double"]}, {"default": null, "doc": "Arc of LSST observations.", "name": "arc", "type": ["null", "float"]}, {"default": null, "doc": "Number of LSST observations of this object.", "name": "numObs", "type": ["null", "int"]}, {"default": null, "doc": "Minimum orbit intersection distance to Earth.", "name": "MOID", "type": ["null", "float"]}, {"default": null, "doc": "True anomaly of the MOID point.", "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"default": null, "doc": "Ecliptic longitude of the MOID point.", "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"default": null, "doc": "DeltaV at the MOID point.", "name": "MOIDDeltaV", "type": ["null", "float"]}, {"default": null, "doc": "Best fit absolute magnitude (u band).", "name": "u_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (u band).", "name": "u_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (u band).", "name": "u_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (u band).", "name": "u_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (u band).", "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (u band).", "name": "u_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (u band).", "name": "u_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (g band).", "name": "g_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (g band).", "name": "g_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (g band).", "name": "g_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (g band).", "name": "g_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (g band).", "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (g band).", "name": "g_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (g band).", "name": "g_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (r band).", "name": "r_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (r band).", "name": "r_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (r band).", "name": "r_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (r band).", "name": "r_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (r band).", "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (r band).", "name": "r_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (r band).", "name": "r_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (i band).", "name": "i_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (i band).", "name": "i_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (i band).", "name": "i_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (i band).", "name": "i_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (i band).", "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (i band).", "name": "i_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (i band).", "name": "i_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (z band).", "name": "z_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (z band).", "name": "z_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (z band).", "name": "z_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (z band).", "name": "z_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (z band).", "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (z band).", "name": "z_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (z band).", "name": "z_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (y band).", "name": "y_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (y band).", "name": "y_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (y band).", "name": "y_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (y band).", "name": "y_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (y band).", "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (y band).", "name": "y_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (y band).", "name": "y_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "median `extendedness` value from the DIASource.", "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}1nBr$ޠ 㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P91nBr$ޠ \ No newline at end of file diff --git a/tests/data/sample_alerts/lsst/7/0/generate.py b/tests/data/sample_alerts/lsst/7/0/generate.py deleted file mode 100644 index 3fddbe2..0000000 --- a/tests/data/sample_alerts/lsst/7/0/generate.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import json -import lsst.alert.packet as packet -from datetime import datetime -import pandas as pd - -with open("alert.json", "r") as f: - data = json.load(f) - - data_time = datetime.now() - - data['diaSource']['time_processed'] = pd.Timestamp(data_time) - data['diaObject']['validityStart'] = pd.Timestamp(data_time) - -schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_0.alert").get_by_version("7.0") -with open("fakeAlert.avro", "wb") as f: - schema.store_alerts(f, [data]) diff --git a/tests/data/sample_alerts/lsst/7/1/alert.json b/tests/data/sample_alerts/lsst/7/1/alert.json deleted file mode 100644 index 1a1f952..0000000 --- a/tests/data/sample_alerts/lsst/7/1/alert.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "alertId": 1231321321, - "l1dbId": 222222222, - "diaSource": - { - "diaSourceId": 281323062375219200, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - }, - "prvDiaSources": [ - { - "diaSourceId": 281323062375219198, - "time_processed": 0, - "visit": 2, - "detector": 43, - "midpointMjdTai": 1480360995, - "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 - }, - { - "diaSourceId": 281323062375219199, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - } - ], - "diaObject": { - "diaObjectId": 281323062375219201, - "validityStart": 0, - "ra": 351.570546978, - "dec": 0.126243049656, - "raErr": 0.00028, - "decErr": 0.00028, - "ra_dec_Cov": 0.00029, - "radecMjdTai": 1480360995, - "pmRa": 0.00013, - "pmDec": 0.00014, - "parallax": 2.124124, - "pmRaErr": 0.00013, - "pmDecErr": 0.00013, - "pmParallaxNdata": 0, - "parallaxErr": 0.00013, - "pmRa_pmDec_Cov": 0.00013, - "pmRa_parallax_Cov": 0.00013, - "pmDec_parallax_Cov": 0.00013, - "pmParallaxLnL": 0.00013, - "pmParallaxChi2": 0.00013, - "pmParallaxNdata": 1214 - }, - "ssObject": { - "ssObjectId":5364546, - "numObs": 10 - } -} diff --git a/tests/data/sample_alerts/lsst/7/1/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/1/fakeAlert.avro deleted file mode 100644 index 3f4c343..0000000 --- a/tests/data/sample_alerts/lsst/7/1/fakeAlert.avro +++ /dev/null @@ -1,4 +0,0 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.1", "name": "lsst.v7_1.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_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"}, {"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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"default": null, "doc": "Uncertainty of x.", "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"default": null, "doc": "Uncertainty of y.", "name": "yErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between x and y.", "name": "x_y_Cov", "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.", "name": "apFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of apFlux.", "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": "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for point source model.", "name": "psfRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfRa.", "name": "psfRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for point source model.", "name": "psfDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfDec.", "name": "psfDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfRa.", "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfDec.", "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfRa and psfDec.", "name": "psfRa_psfDec_Cov", "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"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": ["null", "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.", "name": "trailFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailFlux.", "name": "trailFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for trailed source model.", "name": "trailRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailRa.", "name": "trailRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for trailed source model.", "name": "trailDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailDec.", "name": "trailDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood fit of trail length.", "name": "trailLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailLength.", "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).", "name": "trailAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailAngle.", "name": "trailAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailRa.", "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailDec.", "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailLength", "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailAngle", "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailDec.", "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailLength.", "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailAngle.", "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailLength.", "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailAngle.", "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailLength and trailAngle", "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the trailed source model.", "name": "trailLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the trailed source model fit.", "name": "trailChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleMeanFlux.", "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.", "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleFluxDiff.", "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for dipole model.", "name": "dipoleRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleRa.", "name": "dipoleRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for dipole model.", "name": "dipoleDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleDec.", "name": "dipoleDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood value for the lobe separation in dipole model.", "name": "dipoleLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleLength.", "name": "dipoleLengthErr", "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).", "name": "dipoleAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleAngle.", "name": "dipoleAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleDec.", "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleLength.", "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleAngle.", "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleLength.", "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleAngle.", "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleLength and dipoleAngle.", "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the dipole source model.", "name": "dipoleLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the model fit.", "name": "dipoleChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "name": "snapDiffFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of snapDiffFlux.", "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Estimated sky background at the position (centroid) of the object.", "name": "fpBkgd", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of fpBkgd.", "name": "fpBkgdErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixx", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixx.", "name": "ixxErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "iyy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of iyy.", "name": "iyyErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixy.", "name": "ixyErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and iyy.", "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and ixy.", "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of iyy and ixy.", "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "ixxPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "iyyPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "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 using a combination of available moments and model fluxes or from a likelihood ratio of point/trailed source models (exact algorithm TBD). 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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "name": "reliability", "type": ["null", "float"]}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}, {"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 NO_DATA, or centroid off image).", "name": "pixelFlags_edge", "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, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_1.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_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 object at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_1.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_1.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "name": "radecMjdTai", "type": ["null", "double"]}, {"default": null, "doc": "Proper motion in right ascension.", "name": "pmRa", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmRa.", "name": "pmRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Proper motion of declination.", "name": "pmDec", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmDec.", "name": "pmDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Parallax.", "name": "parallax", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of parallax.", "name": "parallaxErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and pmDec.", "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and parallax.", "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmDec and parallax.", "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "name": "pmParallaxLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 static of the model fit.", "name": "pmParallaxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the model.", "name": "pmParallaxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for u filter.", "name": "u_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_psfFluxMean.", "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_psfFlux.", "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute u_psfFluxChi2.", "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for u filter.", "name": "u_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_fpFluxMean.", "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_fpFlux.", "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for g filter.", "name": "g_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_psfFluxMean.", "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_psfFlux.", "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute g_psfFluxChi2.", "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for g filter.", "name": "g_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_fpFluxMean.", "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_fpFlux.", "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for r filter.", "name": "r_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_psfFluxMean.", "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_psfFlux.", "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute r_psfFluxChi2.", "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for r filter.", "name": "r_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_fpFluxMean.", "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_fpFlux.", "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for i filter.", "name": "i_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_psfFluxMean.", "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_psfFlux.", "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute i_psfFluxChi2.", "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for i filter.", "name": "i_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_fpFluxMean.", "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_fpFlux.", "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for z filter.", "name": "z_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_psfFluxMean.", "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_psfFlux.", "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute z_psfFluxChi2.", "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for z filter.", "name": "z_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_fpFluxMean.", "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_fpFlux.", "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for y filter.", "name": "y_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_psfFluxMean.", "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_psfFlux.", "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute y_psfFluxChi2.", "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for y filter.", "name": "y_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_fpFluxMean.", "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_fpFlux.", "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Id of the closest nearby object.", "name": "nearbyObj1", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj1.", "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the second-closest nearby object.", "name": "nearbyObj2", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj2.", "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the third-closest nearby object.", "name": "nearbyObj3", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj3.", "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the u band flux errors.", "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the g band flux errors.", "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the r band flux errors.", "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the i band flux errors.", "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the z band flux errors.", "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the y band flux errors.", "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_1.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"default": null, "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"default": null, "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "name": "firstObservationDate", "type": ["null", "double"]}, {"default": null, "doc": "Arc of LSST observations.", "name": "arc", "type": ["null", "float"]}, {"default": null, "doc": "Number of LSST observations of this object.", "name": "numObs", "type": ["null", "int"]}, {"default": null, "doc": "Minimum orbit intersection distance to Earth.", "name": "MOID", "type": ["null", "float"]}, {"default": null, "doc": "True anomaly of the MOID point.", "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"default": null, "doc": "Ecliptic longitude of the MOID point.", "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"default": null, "doc": "DeltaV at the MOID point.", "name": "MOIDDeltaV", "type": ["null", "float"]}, {"default": null, "doc": "Best fit absolute magnitude (u band).", "name": "u_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (u band).", "name": "u_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (u band).", "name": "u_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (u band).", "name": "u_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (u band).", "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (u band).", "name": "u_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (u band).", "name": "u_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (g band).", "name": "g_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (g band).", "name": "g_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (g band).", "name": "g_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (g band).", "name": "g_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (g band).", "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (g band).", "name": "g_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (g band).", "name": "g_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (r band).", "name": "r_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (r band).", "name": "r_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (r band).", "name": "r_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (r band).", "name": "r_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (r band).", "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (r band).", "name": "r_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (r band).", "name": "r_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (i band).", "name": "i_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (i band).", "name": "i_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (i band).", "name": "i_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (i band).", "name": "i_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (i band).", "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (i band).", "name": "i_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (i band).", "name": "i_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (z band).", "name": "z_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (z band).", "name": "z_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (z band).", "name": "z_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (z band).", "name": "z_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (z band).", "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (z band).", "name": "z_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (z band).", "name": "z_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (y band).", "name": "y_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (y band).", "name": "y_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (y band).", "name": "y_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (y band).", "name": "y_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (y band).", "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (y band).", "name": "y_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (y band).", "name": "y_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "median `extendedness` value from the DIASource.", "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}Ht_K)G 㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9Ht_K)G \ No newline at end of file diff --git a/tests/data/sample_alerts/lsst/7/1/generate.py b/tests/data/sample_alerts/lsst/7/1/generate.py deleted file mode 100644 index b0fb6cb..0000000 --- a/tests/data/sample_alerts/lsst/7/1/generate.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import json -import lsst.alert.packet as packet -from datetime import datetime -import pandas as pd - -with open("alert.json", "r") as f: - data = json.load(f) - - data_time = datetime.now() - - data['diaSource']['time_processed'] = pd.Timestamp(data_time) - data['diaObject']['validityStart'] = pd.Timestamp(data_time) - -schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_1.alert").get_by_version("7.1") -with open("fakeAlert.avro", "wb") as f: - schema.store_alerts(f, [data]) diff --git a/tests/data/sample_alerts/lsst/7/2/alert.json b/tests/data/sample_alerts/lsst/7/2/alert.json deleted file mode 100644 index 251ac56..0000000 --- a/tests/data/sample_alerts/lsst/7/2/alert.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "alertId": 1231321321, - "l1dbId": 222222222, - "diaSource": - { - "diaSourceId": 281323062375219200, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - }, - "prvDiaSources": [ - { - "diaSourceId": 281323062375219198, - "time_processed": 0, - "visit": 2, - "detector": 43, - "midpointMjdTai": 1480360995, - "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 - }, - { - "diaSourceId": 281323062375219199, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - } - ], - "diaObject": { - "diaObjectId": 281323062375219201, - "validityStart": 0, - "ra": 351.570546978, - "dec": 0.126243049656, - "raErr": 0.00028, - "decErr": 0.00028, - "ra_dec_Cov": 0.00029, - "radecMjdTai": 1480360995, - "pmRa": 0.00013, - "pmDec": 0.00014, - "parallax": 2.124124, - "pmRaErr": 0.00013, - "pmDecErr": 0.00013, - "parallaxErr": 0.00013, - "pmRa_pmDec_Cov": 0.00013, - "pmRa_parallax_Cov": 0.00013, - "pmDec_parallax_Cov": 0.00013, - "pmParallaxLnL": 0.00013, - "pmParallaxChi2": 0.00013, - "pmParallaxNdata": 1214 - }, - "ssObject": { - "ssObjectId":5364546, - "numObs": 10 - } -} diff --git a/tests/data/sample_alerts/lsst/7/2/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/2/fakeAlert.avro deleted file mode 100644 index 4ebfe3f..0000000 --- a/tests/data/sample_alerts/lsst/7/2/fakeAlert.avro +++ /dev/null @@ -1,4 +0,0 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.2", "name": "lsst.v7_2.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_2.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"doc": "Uncertainty of x.", "default": null, "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"doc": "Uncertainty of y.", "default": null, "name": "yErr", "type": ["null", "float"]}, {"doc": "Covariance between x and y.", "default": null, "name": "x_y_Cov", "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.", "default": null, "name": "apFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of apFlux.", "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": "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for point source model.", "default": null, "name": "psfRa", "type": ["null", "double"]}, {"doc": "Uncertainty of psfRa.", "default": null, "name": "psfRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for point source model.", "default": null, "name": "psfDec", "type": ["null", "double"]}, {"doc": "Uncertainty of psfDec.", "default": null, "name": "psfDecErr", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfRa.", "default": null, "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfDec.", "default": null, "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfRa and psfDec.", "default": null, "name": "psfRa_psfDec_Cov", "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.", "default": null, "name": "psfNdata", "type": ["null", "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.", "default": null, "name": "trailFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of trailFlux.", "default": null, "name": "trailFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for trailed source model.", "default": null, "name": "trailRa", "type": ["null", "double"]}, {"doc": "Uncertainty of trailRa.", "default": null, "name": "trailRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for trailed source model.", "default": null, "name": "trailDec", "type": ["null", "double"]}, {"doc": "Uncertainty of trailDec.", "default": null, "name": "trailDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of trail length.", "default": null, "name": "trailLength", "type": ["null", "float"]}, {"doc": "Uncertainty of trailLength.", "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).", "default": null, "name": "trailAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of trailAngle.", "default": null, "name": "trailAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailRa.", "default": null, "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailDec.", "default": null, "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailLength", "default": null, "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailAngle", "default": null, "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailDec.", "default": null, "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailLength.", "default": null, "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailAngle.", "default": null, "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailLength.", "default": null, "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailAngle.", "default": null, "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailLength and trailAngle", "default": null, "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the trailed source model.", "default": null, "name": "trailLnL", "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.", "default": null, "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "default": null, "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleMeanFlux.", "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.", "default": null, "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleFluxDiff.", "default": null, "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for dipole model.", "default": null, "name": "dipoleRa", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleRa.", "default": null, "name": "dipoleRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for dipole model.", "default": null, "name": "dipoleDec", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleDec.", "default": null, "name": "dipoleDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the lobe separation in dipole model.", "default": null, "name": "dipoleLength", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleLength.", "default": null, "name": "dipoleLengthErr", "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).", "default": null, "name": "dipoleAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleAngle.", "default": null, "name": "dipoleAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "default": null, "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleRa.", "default": null, "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleDec.", "default": null, "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleLength.", "default": null, "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "default": null, "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleRa.", "default": null, "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleDec.", "default": null, "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleLength.", "default": null, "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "default": null, "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleDec.", "default": null, "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleLength.", "default": null, "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleAngle.", "default": null, "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleLength.", "default": null, "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleAngle.", "default": null, "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleLength and dipoleAngle.", "default": null, "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the dipole source model.", "default": null, "name": "dipoleLnL", "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.", "default": null, "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "default": null, "name": "snapDiffFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of snapDiffFlux.", "default": null, "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"doc": "Estimated sky background at the position (centroid) of the object.", "default": null, "name": "fpBkgd", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of fpBkgd.", "default": null, "name": "fpBkgdErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixx", "type": ["null", "float"]}, {"doc": "Uncertainty of ixx.", "default": null, "name": "ixxErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "iyy", "type": ["null", "float"]}, {"doc": "Uncertainty of iyy.", "default": null, "name": "iyyErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixy", "type": ["null", "float"]}, {"doc": "Uncertainty of ixy.", "default": null, "name": "ixyErr", "type": ["null", "float"]}, {"doc": "Covariance of ixx and iyy.", "default": null, "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of ixx and ixy.", "default": null, "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of iyy and ixy.", "default": null, "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "ixxPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "iyyPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "default": null, "name": "reliability", "type": ["null", "float"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Attempted to fit a dipole model to this source.", "default": null, "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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 NO_DATA, or centroid off image).", "default": null, "name": "pixelFlags_edge", "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"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_2.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_2.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_2.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_2.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "radecMjdTai", "type": ["null", "double"]}, {"doc": "Proper motion in right ascension.", "default": null, "name": "pmRa", "type": ["null", "float"]}, {"doc": "Uncertainty of pmRa.", "default": null, "name": "pmRaErr", "type": ["null", "float"]}, {"doc": "Proper motion of declination.", "default": null, "name": "pmDec", "type": ["null", "float"]}, {"doc": "Uncertainty of pmDec.", "default": null, "name": "pmDecErr", "type": ["null", "float"]}, {"doc": "Parallax.", "default": null, "name": "parallax", "type": ["null", "float"]}, {"doc": "Uncertainty of parallax.", "default": null, "name": "parallaxErr", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and pmDec.", "default": null, "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and parallax.", "default": null, "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmDec and parallax.", "default": null, "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "default": null, "name": "pmParallaxLnL", "type": ["null", "float"]}, {"doc": "Chi^2 static of the model fit.", "default": null, "name": "pmParallaxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the model.", "default": null, "name": "pmParallaxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean point-source model magnitude for u filter.", "default": null, "name": "u_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_psfFluxMean.", "default": null, "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_psfFlux.", "default": null, "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "default": null, "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute u_psfFluxChi2.", "default": null, "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for u filter.", "default": null, "name": "u_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_fpFluxMean.", "default": null, "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_fpFlux.", "default": null, "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for g filter.", "default": null, "name": "g_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_psfFluxMean.", "default": null, "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_psfFlux.", "default": null, "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "default": null, "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute g_psfFluxChi2.", "default": null, "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for g filter.", "default": null, "name": "g_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_fpFluxMean.", "default": null, "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_fpFlux.", "default": null, "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for r filter.", "default": null, "name": "r_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_psfFluxMean.", "default": null, "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_psfFlux.", "default": null, "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "default": null, "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute r_psfFluxChi2.", "default": null, "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for r filter.", "default": null, "name": "r_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_fpFluxMean.", "default": null, "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_fpFlux.", "default": null, "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for i filter.", "default": null, "name": "i_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_psfFluxMean.", "default": null, "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_psfFlux.", "default": null, "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "default": null, "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute i_psfFluxChi2.", "default": null, "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for i filter.", "default": null, "name": "i_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_fpFluxMean.", "default": null, "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_fpFlux.", "default": null, "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for z filter.", "default": null, "name": "z_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_psfFluxMean.", "default": null, "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_psfFlux.", "default": null, "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "default": null, "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute z_psfFluxChi2.", "default": null, "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for z filter.", "default": null, "name": "z_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_fpFluxMean.", "default": null, "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_fpFlux.", "default": null, "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for y filter.", "default": null, "name": "y_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_psfFluxMean.", "default": null, "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_psfFlux.", "default": null, "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "default": null, "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute y_psfFluxChi2.", "default": null, "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for y filter.", "default": null, "name": "y_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_fpFluxMean.", "default": null, "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_fpFlux.", "default": null, "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Id of the closest nearby object.", "default": null, "name": "nearbyObj1", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj1.", "default": null, "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "default": null, "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"doc": "Id of the second-closest nearby object.", "default": null, "name": "nearbyObj2", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj2.", "default": null, "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "default": null, "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"doc": "Id of the third-closest nearby object.", "default": null, "name": "nearbyObj3", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj3.", "default": null, "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "default": null, "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"doc": "Mean of the u band flux errors.", "default": null, "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the g band flux errors.", "default": null, "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the r band flux errors.", "default": null, "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the i band flux errors.", "default": null, "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the z band flux errors.", "default": null, "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the y band flux errors.", "default": null, "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_2.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "default": null, "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "default": null, "name": "firstObservationDate", "type": ["null", "double"]}, {"doc": "Arc of LSST observations.", "default": null, "name": "arc", "type": ["null", "float"]}, {"doc": "Number of LSST observations of this object.", "default": null, "name": "numObs", "type": ["null", "int"]}, {"doc": "Minimum orbit intersection distance to Earth.", "default": null, "name": "MOID", "type": ["null", "float"]}, {"doc": "True anomaly of the MOID point.", "default": null, "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"doc": "Ecliptic longitude of the MOID point.", "default": null, "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"doc": "DeltaV at the MOID point.", "default": null, "name": "MOIDDeltaV", "type": ["null", "float"]}, {"doc": "Best fit absolute magnitude (u band).", "default": null, "name": "u_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (u band).", "default": null, "name": "u_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (u band).", "default": null, "name": "u_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (u band).", "default": null, "name": "u_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (u band).", "default": null, "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (u band).", "default": null, "name": "u_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (u band).", "default": null, "name": "u_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (g band).", "default": null, "name": "g_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (g band).", "default": null, "name": "g_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (g band).", "default": null, "name": "g_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (g band).", "default": null, "name": "g_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (g band).", "default": null, "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (g band).", "default": null, "name": "g_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (g band).", "default": null, "name": "g_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (r band).", "default": null, "name": "r_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (r band).", "default": null, "name": "r_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (r band).", "default": null, "name": "r_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (r band).", "default": null, "name": "r_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (r band).", "default": null, "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (r band).", "default": null, "name": "r_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (r band).", "default": null, "name": "r_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (i band).", "default": null, "name": "i_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (i band).", "default": null, "name": "i_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (i band).", "default": null, "name": "i_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (i band).", "default": null, "name": "i_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (i band).", "default": null, "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (i band).", "default": null, "name": "i_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (i band).", "default": null, "name": "i_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (z band).", "default": null, "name": "z_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (z band).", "default": null, "name": "z_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (z band).", "default": null, "name": "z_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (z band).", "default": null, "name": "z_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (z band).", "default": null, "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (z band).", "default": null, "name": "z_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (z band).", "default": null, "name": "z_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (y band).", "default": null, "name": "y_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (y band).", "default": null, "name": "y_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (y band).", "default": null, "name": "y_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (y band).", "default": null, "name": "y_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (y band).", "default": null, "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (y band).", "default": null, "name": "y_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (y band).", "default": null, "name": "y_Ndata", "type": ["null", "int"]}, {"doc": "median `extendedness` value from the DIASource.", "default": null, "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}Ifh7㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9Ifh7 \ No newline at end of file diff --git a/tests/data/sample_alerts/lsst/7/2/generate.py b/tests/data/sample_alerts/lsst/7/2/generate.py deleted file mode 100644 index dd89dfd..0000000 --- a/tests/data/sample_alerts/lsst/7/2/generate.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import json -import lsst.alert.packet as packet -from datetime import datetime -import pandas as pd - -with open("alert.json", "r") as f: - data = json.load(f) - - data_time = datetime.now() - - data['diaSource']['time_processed'] = pd.Timestamp(data_time) - data['diaObject']['validityStart'] = pd.Timestamp(data_time) - -schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_2.alert").get_by_version("7.2") -with open("fakeAlert.avro", "wb") as f: - schema.store_alerts(f, [data]) diff --git a/tests/data/sample_alerts/lsst/7/3/alert.json b/tests/data/sample_alerts/lsst/7/3/alert.json deleted file mode 100644 index 251ac56..0000000 --- a/tests/data/sample_alerts/lsst/7/3/alert.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "alertId": 1231321321, - "l1dbId": 222222222, - "diaSource": - { - "diaSourceId": 281323062375219200, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - }, - "prvDiaSources": [ - { - "diaSourceId": 281323062375219198, - "time_processed": 0, - "visit": 2, - "detector": 43, - "midpointMjdTai": 1480360995, - "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 - }, - { - "diaSourceId": 281323062375219199, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - } - ], - "diaObject": { - "diaObjectId": 281323062375219201, - "validityStart": 0, - "ra": 351.570546978, - "dec": 0.126243049656, - "raErr": 0.00028, - "decErr": 0.00028, - "ra_dec_Cov": 0.00029, - "radecMjdTai": 1480360995, - "pmRa": 0.00013, - "pmDec": 0.00014, - "parallax": 2.124124, - "pmRaErr": 0.00013, - "pmDecErr": 0.00013, - "parallaxErr": 0.00013, - "pmRa_pmDec_Cov": 0.00013, - "pmRa_parallax_Cov": 0.00013, - "pmDec_parallax_Cov": 0.00013, - "pmParallaxLnL": 0.00013, - "pmParallaxChi2": 0.00013, - "pmParallaxNdata": 1214 - }, - "ssObject": { - "ssObjectId":5364546, - "numObs": 10 - } -} diff --git a/tests/data/sample_alerts/lsst/7/3/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/3/fakeAlert.avro deleted file mode 100644 index f694ede..0000000 --- a/tests/data/sample_alerts/lsst/7/3/fakeAlert.avro +++ /dev/null @@ -1,4 +0,0 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.3", "name": "lsst.v7_3.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_3.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"doc": "Uncertainty of x.", "default": null, "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"doc": "Uncertainty of y.", "default": null, "name": "yErr", "type": ["null", "float"]}, {"doc": "Covariance between x and y.", "default": null, "name": "x_y_Cov", "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": "Source was detected as significantly negative.", "default": null, "name": "is_negative", "type": ["null", "boolean"]}, {"doc": "Flux in a 12 pixel radius aperture on the difference image.", "default": null, "name": "apFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of apFlux.", "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": "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for point source model.", "default": null, "name": "psfRa", "type": ["null", "double"]}, {"doc": "Uncertainty of psfRa.", "default": null, "name": "psfRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for point source model.", "default": null, "name": "psfDec", "type": ["null", "double"]}, {"doc": "Uncertainty of psfDec.", "default": null, "name": "psfDecErr", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfRa.", "default": null, "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfFlux and psfDec.", "default": null, "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance between psfRa and psfDec.", "default": null, "name": "psfRa_psfDec_Cov", "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.", "default": null, "name": "psfNdata", "type": ["null", "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.", "default": null, "name": "trailFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of trailFlux.", "default": null, "name": "trailFluxErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for trailed source model.", "default": null, "name": "trailRa", "type": ["null", "double"]}, {"doc": "Uncertainty of trailRa.", "default": null, "name": "trailRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for trailed source model.", "default": null, "name": "trailDec", "type": ["null", "double"]}, {"doc": "Uncertainty of trailDec.", "default": null, "name": "trailDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood fit of trail length.", "default": null, "name": "trailLength", "type": ["null", "float"]}, {"doc": "Uncertainty of trailLength.", "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).", "default": null, "name": "trailAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of trailAngle.", "default": null, "name": "trailAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailRa.", "default": null, "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailDec.", "default": null, "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailLength", "default": null, "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailFlux and trailAngle", "default": null, "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailDec.", "default": null, "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailLength.", "default": null, "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailRa and trailAngle.", "default": null, "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailLength.", "default": null, "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailDec and trailAngle.", "default": null, "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of trailLength and trailAngle", "default": null, "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the trailed source model.", "default": null, "name": "trailLnL", "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.", "default": null, "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "default": null, "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleMeanFlux.", "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.", "default": null, "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleFluxDiff.", "default": null, "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"doc": "Right ascension coordinate of centroid for dipole model.", "default": null, "name": "dipoleRa", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleRa.", "default": null, "name": "dipoleRaErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of centroid for dipole model.", "default": null, "name": "dipoleDec", "type": ["null", "double"]}, {"doc": "Uncertainty of dipoleDec.", "default": null, "name": "dipoleDecErr", "type": ["null", "float"]}, {"doc": "Maximum likelihood value for the lobe separation in dipole model.", "default": null, "name": "dipoleLength", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleLength.", "default": null, "name": "dipoleLengthErr", "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).", "default": null, "name": "dipoleAngle", "type": ["null", "float"]}, {"doc": "Uncertainty of dipoleAngle.", "default": null, "name": "dipoleAngleErr", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "default": null, "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleRa.", "default": null, "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleDec.", "default": null, "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleLength.", "default": null, "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "default": null, "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleRa.", "default": null, "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleDec.", "default": null, "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleLength.", "default": null, "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "default": null, "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleDec.", "default": null, "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleLength.", "default": null, "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleRa and dipoleAngle.", "default": null, "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleLength.", "default": null, "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleDec and dipoleAngle.", "default": null, "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Covariance of dipoleLength and dipoleAngle.", "default": null, "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"doc": "Natural log likelihood of the observed data given the dipole source model.", "default": null, "name": "dipoleLnL", "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.", "default": null, "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "default": null, "name": "snapDiffFlux", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of snapDiffFlux.", "default": null, "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"doc": "Estimated sky background at the position (centroid) of the object.", "default": null, "name": "fpBkgd", "type": ["null", "float"]}, {"doc": "Estimated uncertainty of fpBkgd.", "default": null, "name": "fpBkgdErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixx", "type": ["null", "float"]}, {"doc": "Uncertainty of ixx.", "default": null, "name": "ixxErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "iyy", "type": ["null", "float"]}, {"doc": "Uncertainty of iyy.", "default": null, "name": "iyyErr", "type": ["null", "float"]}, {"doc": "Adaptive second moment of the source intensity.", "default": null, "name": "ixy", "type": ["null", "float"]}, {"doc": "Uncertainty of ixy.", "default": null, "name": "ixyErr", "type": ["null", "float"]}, {"doc": "Covariance of ixx and iyy.", "default": null, "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of ixx and ixy.", "default": null, "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"doc": "Covariance of iyy and ixy.", "default": null, "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "ixxPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "default": null, "name": "iyyPSF", "type": ["null", "float"]}, {"doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "default": null, "name": "reliability", "type": ["null", "float"]}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}, {"doc": "Attempted to fit a dipole model to this source.", "default": null, "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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 NO_DATA, or centroid off image).", "default": null, "name": "pixelFlags_edge", "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"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_3.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_3.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_3.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_3.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Uncertainty of ra.", "default": null, "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"doc": "Uncertainty of dec.", "default": null, "name": "decErr", "type": ["null", "float"]}, {"doc": "Covariance between ra and dec.", "default": null, "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "default": null, "name": "radecMjdTai", "type": ["null", "double"]}, {"doc": "Proper motion in right ascension.", "default": null, "name": "pmRa", "type": ["null", "float"]}, {"doc": "Uncertainty of pmRa.", "default": null, "name": "pmRaErr", "type": ["null", "float"]}, {"doc": "Proper motion of declination.", "default": null, "name": "pmDec", "type": ["null", "float"]}, {"doc": "Uncertainty of pmDec.", "default": null, "name": "pmDecErr", "type": ["null", "float"]}, {"doc": "Parallax.", "default": null, "name": "parallax", "type": ["null", "float"]}, {"doc": "Uncertainty of parallax.", "default": null, "name": "parallaxErr", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and pmDec.", "default": null, "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmRa and parallax.", "default": null, "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"doc": "Covariance of pmDec and parallax.", "default": null, "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "default": null, "name": "pmParallaxLnL", "type": ["null", "float"]}, {"doc": "Chi^2 static of the model fit.", "default": null, "name": "pmParallaxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the model.", "default": null, "name": "pmParallaxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean point-source model magnitude for u filter.", "default": null, "name": "u_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_psfFluxMean.", "default": null, "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_psfFlux.", "default": null, "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "default": null, "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute u_psfFluxChi2.", "default": null, "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for u filter.", "default": null, "name": "u_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of u_fpFluxMean.", "default": null, "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of u_fpFlux.", "default": null, "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for g filter.", "default": null, "name": "g_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_psfFluxMean.", "default": null, "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_psfFlux.", "default": null, "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "default": null, "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute g_psfFluxChi2.", "default": null, "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for g filter.", "default": null, "name": "g_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of g_fpFluxMean.", "default": null, "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of g_fpFlux.", "default": null, "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for r filter.", "default": null, "name": "r_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_psfFluxMean.", "default": null, "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_psfFlux.", "default": null, "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "default": null, "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute r_psfFluxChi2.", "default": null, "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for r filter.", "default": null, "name": "r_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of r_fpFluxMean.", "default": null, "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of r_fpFlux.", "default": null, "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for i filter.", "default": null, "name": "i_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_psfFluxMean.", "default": null, "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_psfFlux.", "default": null, "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "default": null, "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute i_psfFluxChi2.", "default": null, "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for i filter.", "default": null, "name": "i_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of i_fpFluxMean.", "default": null, "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of i_fpFlux.", "default": null, "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for z filter.", "default": null, "name": "z_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_psfFluxMean.", "default": null, "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_psfFlux.", "default": null, "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "default": null, "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute z_psfFluxChi2.", "default": null, "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for z filter.", "default": null, "name": "z_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of z_fpFluxMean.", "default": null, "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of z_fpFlux.", "default": null, "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Weighted mean point-source model magnitude for y filter.", "default": null, "name": "y_psfFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_psfFluxMean.", "default": null, "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_psfFlux.", "default": null, "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "default": null, "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"doc": "The number of data points used to compute y_psfFluxChi2.", "default": null, "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"doc": "Weighted mean forced photometry flux for y filter.", "default": null, "name": "y_fpFluxMean", "type": ["null", "float"]}, {"doc": "Standard error of y_fpFluxMean.", "default": null, "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"doc": "Standard deviation of the distribution of y_fpFlux.", "default": null, "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"doc": "Id of the closest nearby object.", "default": null, "name": "nearbyObj1", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj1.", "default": null, "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "default": null, "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"doc": "Id of the second-closest nearby object.", "default": null, "name": "nearbyObj2", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj2.", "default": null, "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "default": null, "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"doc": "Id of the third-closest nearby object.", "default": null, "name": "nearbyObj3", "type": ["null", "long"]}, {"doc": "Distance to nearbyObj3.", "default": null, "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "default": null, "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"doc": "Mean of the u band flux errors.", "default": null, "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the g band flux errors.", "default": null, "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the r band flux errors.", "default": null, "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the i band flux errors.", "default": null, "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the z band flux errors.", "default": null, "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"doc": "Mean of the y band flux errors.", "default": null, "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_3.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "default": null, "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "default": null, "name": "firstObservationDate", "type": ["null", "double"]}, {"doc": "Arc of LSST observations.", "default": null, "name": "arc", "type": ["null", "float"]}, {"doc": "Number of LSST observations of this object.", "default": null, "name": "numObs", "type": ["null", "int"]}, {"doc": "Minimum orbit intersection distance to Earth.", "default": null, "name": "MOID", "type": ["null", "float"]}, {"doc": "True anomaly of the MOID point.", "default": null, "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"doc": "Ecliptic longitude of the MOID point.", "default": null, "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"doc": "DeltaV at the MOID point.", "default": null, "name": "MOIDDeltaV", "type": ["null", "float"]}, {"doc": "Best fit absolute magnitude (u band).", "default": null, "name": "u_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (u band).", "default": null, "name": "u_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (u band).", "default": null, "name": "u_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (u band).", "default": null, "name": "u_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (u band).", "default": null, "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (u band).", "default": null, "name": "u_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (u band).", "default": null, "name": "u_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (g band).", "default": null, "name": "g_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (g band).", "default": null, "name": "g_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (g band).", "default": null, "name": "g_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (g band).", "default": null, "name": "g_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (g band).", "default": null, "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (g band).", "default": null, "name": "g_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (g band).", "default": null, "name": "g_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (r band).", "default": null, "name": "r_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (r band).", "default": null, "name": "r_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (r band).", "default": null, "name": "r_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (r band).", "default": null, "name": "r_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (r band).", "default": null, "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (r band).", "default": null, "name": "r_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (r band).", "default": null, "name": "r_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (i band).", "default": null, "name": "i_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (i band).", "default": null, "name": "i_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (i band).", "default": null, "name": "i_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (i band).", "default": null, "name": "i_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (i band).", "default": null, "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (i band).", "default": null, "name": "i_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (i band).", "default": null, "name": "i_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (z band).", "default": null, "name": "z_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (z band).", "default": null, "name": "z_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (z band).", "default": null, "name": "z_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (z band).", "default": null, "name": "z_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (z band).", "default": null, "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (z band).", "default": null, "name": "z_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (z band).", "default": null, "name": "z_Ndata", "type": ["null", "int"]}, {"doc": "Best fit absolute magnitude (y band).", "default": null, "name": "y_H", "type": ["null", "float"]}, {"doc": "Best fit G12 slope parameter (y band).", "default": null, "name": "y_G12", "type": ["null", "float"]}, {"doc": "Uncertainty of H (y band).", "default": null, "name": "y_HErr", "type": ["null", "float"]}, {"doc": "Uncertainty of G12 (y band).", "default": null, "name": "y_G12Err", "type": ["null", "float"]}, {"doc": "H-G12 covariance (y band).", "default": null, "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"doc": "Chi^2 statistic of the phase curve fit (y band).", "default": null, "name": "y_Chi2", "type": ["null", "float"]}, {"doc": "The number of data points used to fit the phase curve (y band).", "default": null, "name": "y_Ndata", "type": ["null", "int"]}, {"doc": "median `extendedness` value from the DIASource.", "default": null, "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}_ao~:snW㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9_ao~:snW \ No newline at end of file diff --git a/tests/data/sample_alerts/lsst/7/3/generate.py b/tests/data/sample_alerts/lsst/7/3/generate.py deleted file mode 100644 index 5b55d81..0000000 --- a/tests/data/sample_alerts/lsst/7/3/generate.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import json -import lsst.alert.packet as packet -from datetime import datetime -import pandas as pd - -with open("alert.json", "r") as f: - data = json.load(f) - - data_time = datetime.now() - - data['diaSource']['time_processed'] = pd.Timestamp(data_time) - data['diaObject']['validityStart'] = pd.Timestamp(data_time) - -schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_3.alert").get_by_version("7.3") -with open("fakeAlert.avro", "wb") as f: - schema.store_alerts(f, [data]) diff --git a/tests/data/sample_alerts/lsst/7/4/alert.json b/tests/data/sample_alerts/lsst/7/4/alert.json deleted file mode 100644 index 251ac56..0000000 --- a/tests/data/sample_alerts/lsst/7/4/alert.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "alertId": 1231321321, - "l1dbId": 222222222, - "diaSource": - { - "diaSourceId": 281323062375219200, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - }, - "prvDiaSources": [ - { - "diaSourceId": 281323062375219198, - "time_processed": 0, - "visit": 2, - "detector": 43, - "midpointMjdTai": 1480360995, - "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 - }, - { - "diaSourceId": 281323062375219199, - "time_processed": 0, - "visit": 1, - "detector": 42, - "midpointMjdTai": 1480360995, - "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 - } - ], - "diaObject": { - "diaObjectId": 281323062375219201, - "validityStart": 0, - "ra": 351.570546978, - "dec": 0.126243049656, - "raErr": 0.00028, - "decErr": 0.00028, - "ra_dec_Cov": 0.00029, - "radecMjdTai": 1480360995, - "pmRa": 0.00013, - "pmDec": 0.00014, - "parallax": 2.124124, - "pmRaErr": 0.00013, - "pmDecErr": 0.00013, - "parallaxErr": 0.00013, - "pmRa_pmDec_Cov": 0.00013, - "pmRa_parallax_Cov": 0.00013, - "pmDec_parallax_Cov": 0.00013, - "pmParallaxLnL": 0.00013, - "pmParallaxChi2": 0.00013, - "pmParallaxNdata": 1214 - }, - "ssObject": { - "ssObjectId":5364546, - "numObs": 10 - } -} diff --git a/tests/data/sample_alerts/lsst/7/4/fakeAlert.avro b/tests/data/sample_alerts/lsst/7/4/fakeAlert.avro deleted file mode 100644 index 0242460..0000000 --- a/tests/data/sample_alerts/lsst/7/4/fakeAlert.avro +++ /dev/null @@ -1,4 +0,0 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "Rubin Avro alert schema v7.4", "name": "lsst.v7_4.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v7_4.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.", "name": "midpointMjdTai", "type": "double"}, {"doc": "Right ascension coordinate of the center of this diaSource.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the center of this diaSource.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"doc": "x position computed by a centroiding algorithm.", "name": "x", "type": "float"}, {"default": null, "doc": "Uncertainty of x.", "name": "xErr", "type": ["null", "float"]}, {"doc": "y position computed by a centroiding algorithm.", "name": "y", "type": "float"}, {"default": null, "doc": "Uncertainty of y.", "name": "yErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between x and y.", "name": "x_y_Cov", "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.", "name": "apFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of apFlux.", "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": "is_negative", "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for point source model.", "name": "psfRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfRa.", "name": "psfRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for point source model.", "name": "psfDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of psfDec.", "name": "psfDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfRa.", "name": "psfFlux_psfRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfFlux and psfDec.", "name": "psfFlux_psfDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between psfRa and psfDec.", "name": "psfRa_psfDec_Cov", "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"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": ["null", "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.", "name": "trailFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailFlux.", "name": "trailFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for trailed source model.", "name": "trailRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailRa.", "name": "trailRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for trailed source model.", "name": "trailDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of trailDec.", "name": "trailDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood fit of trail length.", "name": "trailLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailLength.", "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).", "name": "trailAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of trailAngle.", "name": "trailAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailRa.", "name": "trailFlux_trailRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailDec.", "name": "trailFlux_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailLength", "name": "trailFlux_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailFlux and trailAngle", "name": "trailFlux_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailDec.", "name": "trailRa_trailDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailLength.", "name": "trailRa_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailRa and trailAngle.", "name": "trailRa_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailLength.", "name": "trailDec_trailLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailDec and trailAngle.", "name": "trailDec_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of trailLength and trailAngle", "name": "trailLength_trailAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the trailed source model.", "name": "trailLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the trailed source model fit.", "name": "trailChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", "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": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "name": "dipoleMeanFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleMeanFlux.", "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.", "name": "dipoleFluxDiff", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleFluxDiff.", "name": "dipoleFluxDiffErr", "type": ["null", "float"]}, {"default": null, "doc": "Right ascension coordinate of centroid for dipole model.", "name": "dipoleRa", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleRa.", "name": "dipoleRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Declination coordinate of centroid for dipole model.", "name": "dipoleDec", "type": ["null", "double"]}, {"default": null, "doc": "Uncertainty of dipoleDec.", "name": "dipoleDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Maximum likelihood value for the lobe separation in dipole model.", "name": "dipoleLength", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleLength.", "name": "dipoleLengthErr", "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).", "name": "dipoleAngle", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of dipoleAngle.", "name": "dipoleAngleErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "name": "dipoleMeanFlux_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "name": "dipoleMeanFlux_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "name": "dipoleMeanFlux_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "name": "dipoleFluxDiff_dipoleRa_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "name": "dipoleFluxDiff_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "name": "dipoleFluxDiff_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleDec.", "name": "dipoleRa_dipoleDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleLength.", "name": "dipoleRa_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleRa and dipoleAngle.", "name": "dipoleRa_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleLength.", "name": "dipoleDec_dipoleLength_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleDec and dipoleAngle.", "name": "dipoleDec_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of dipoleLength and dipoleAngle.", "name": "dipoleLength_dipoleAngle_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log likelihood of the observed data given the dipole source model.", "name": "dipoleLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the model fit.", "name": "dipoleChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": ["null", "int"]}, {"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": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "name": "snapDiffFlux", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of snapDiffFlux.", "name": "snapDiffFluxErr", "type": ["null", "float"]}, {"default": null, "doc": "Estimated sky background at the position (centroid) of the object.", "name": "fpBkgd", "type": ["null", "float"]}, {"default": null, "doc": "Estimated uncertainty of fpBkgd.", "name": "fpBkgdErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixx", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixx.", "name": "ixxErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "iyy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of iyy.", "name": "iyyErr", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment of the source intensity.", "name": "ixy", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of ixy.", "name": "ixyErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and iyy.", "name": "ixx_iyy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of ixx and ixy.", "name": "ixx_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of iyy and ixy.", "name": "iyy_ixy_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "ixxPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "name": "iyyPSF", "type": ["null", "float"]}, {"default": null, "doc": "Adaptive second moment for the PSF.", "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": "A measure of reliability, computed using information from the source and image characterization, as well as the information on the Telescope and Camera system (e.g., ghost maps, defect maps, etc.).", "name": "reliability", "type": ["null", "float"]}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}, {"default": null, "doc": "Attempted to fit a dipole model to this source.", "name": "dipoleFitAttempted", "type": ["null", "boolean"]}, {"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, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v7_4.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_4.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 at time radecMjdTai.", "name": "ra", "type": "double"}, {"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.", "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.", "name": "psfFlux", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.", "name": "midpointMjdTai", "type": "double"}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}]}}]}, {"default": null, "name": "prvDiaNondetectionLimits", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v7_4.diaNondetectionLimit", "fields": [{"name": "ccdVisitId", "type": "long"}, {"name": "midpointMjdTai", "type": "double"}, {"name": "band", "type": "string"}, {"name": "diaNoise", "type": "float"}]}}]}, {"default": null, "name": "diaObject", "type": ["null", {"type": "record", "name": "lsst.v7_4.diaObject", "fields": [{"doc": "Unique identifier of this DiaObject.", "name": "diaObjectId", "type": "long"}, {"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.", "name": "ra", "type": "double"}, {"default": null, "doc": "Uncertainty of ra.", "name": "raErr", "type": ["null", "float"]}, {"doc": "Declination coordinate of the position of the object at time radecMjdTai.", "name": "dec", "type": "double"}, {"default": null, "doc": "Uncertainty of dec.", "name": "decErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "name": "radecMjdTai", "type": ["null", "double"]}, {"default": null, "doc": "Proper motion in right ascension.", "name": "pmRa", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmRa.", "name": "pmRaErr", "type": ["null", "float"]}, {"default": null, "doc": "Proper motion of declination.", "name": "pmDec", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of pmDec.", "name": "pmDecErr", "type": ["null", "float"]}, {"default": null, "doc": "Parallax.", "name": "parallax", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of parallax.", "name": "parallaxErr", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and pmDec.", "name": "pmRa_pmDec_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmRa and parallax.", "name": "pmRa_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Covariance of pmDec and parallax.", "name": "pmDec_parallax_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "name": "pmParallaxLnL", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 static of the model fit.", "name": "pmParallaxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the model.", "name": "pmParallaxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for u filter.", "name": "u_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_psfFluxMean.", "name": "u_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_psfFlux.", "name": "u_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "name": "u_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute u_psfFluxChi2.", "name": "u_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for u filter.", "name": "u_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of u_fpFluxMean.", "name": "u_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of u_fpFlux.", "name": "u_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for g filter.", "name": "g_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_psfFluxMean.", "name": "g_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_psfFlux.", "name": "g_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "name": "g_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute g_psfFluxChi2.", "name": "g_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for g filter.", "name": "g_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of g_fpFluxMean.", "name": "g_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of g_fpFlux.", "name": "g_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for r filter.", "name": "r_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_psfFluxMean.", "name": "r_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_psfFlux.", "name": "r_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "name": "r_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute r_psfFluxChi2.", "name": "r_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for r filter.", "name": "r_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of r_fpFluxMean.", "name": "r_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of r_fpFlux.", "name": "r_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for i filter.", "name": "i_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_psfFluxMean.", "name": "i_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_psfFlux.", "name": "i_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "name": "i_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute i_psfFluxChi2.", "name": "i_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for i filter.", "name": "i_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of i_fpFluxMean.", "name": "i_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of i_fpFlux.", "name": "i_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for z filter.", "name": "z_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_psfFluxMean.", "name": "z_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_psfFlux.", "name": "z_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "name": "z_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute z_psfFluxChi2.", "name": "z_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for z filter.", "name": "z_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of z_fpFluxMean.", "name": "z_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of z_fpFlux.", "name": "z_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Weighted mean point-source model magnitude for y filter.", "name": "y_psfFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_psfFluxMean.", "name": "y_psfFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_psfFlux.", "name": "y_psfFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "name": "y_psfFluxChi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to compute y_psfFluxChi2.", "name": "y_psfFluxNdata", "type": ["null", "int"]}, {"default": null, "doc": "Weighted mean forced photometry flux for y filter.", "name": "y_fpFluxMean", "type": ["null", "float"]}, {"default": null, "doc": "Standard error of y_fpFluxMean.", "name": "y_fpFluxMeanErr", "type": ["null", "float"]}, {"default": null, "doc": "Standard deviation of the distribution of y_fpFlux.", "name": "y_fpFluxSigma", "type": ["null", "float"]}, {"default": null, "doc": "Id of the closest nearby object.", "name": "nearbyObj1", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj1.", "name": "nearbyObj1Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "name": "nearbyObj1LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the second-closest nearby object.", "name": "nearbyObj2", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj2.", "name": "nearbyObj2Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "name": "nearbyObj2LnP", "type": ["null", "float"]}, {"default": null, "doc": "Id of the third-closest nearby object.", "name": "nearbyObj3", "type": ["null", "long"]}, {"default": null, "doc": "Distance to nearbyObj3.", "name": "nearbyObj3Dist", "type": ["null", "float"]}, {"default": null, "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "name": "nearbyObj3LnP", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the u band flux errors.", "name": "u_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the g band flux errors.", "name": "g_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the r band flux errors.", "name": "r_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the i band flux errors.", "name": "i_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the z band flux errors.", "name": "z_psfFluxErrMean", "type": ["null", "float"]}, {"default": null, "doc": "Mean of the y band flux errors.", "name": "y_psfFluxErrMean", "type": ["null", "float"]}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v7_4.ssObject", "fields": [{"doc": "Unique identifier.", "name": "ssObjectId", "type": "long"}, {"default": null, "doc": "The date the LSST first linked and submitted the discovery observations to the MPC. May be NULL if not an LSST discovery. The date format will follow general LSST conventions (MJD TAI, at the moment).", "name": "discoverySubmissionDate", "type": ["null", "double"]}, {"default": null, "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "name": "firstObservationDate", "type": ["null", "double"]}, {"default": null, "doc": "Arc of LSST observations.", "name": "arc", "type": ["null", "float"]}, {"default": null, "doc": "Number of LSST observations of this object.", "name": "numObs", "type": ["null", "int"]}, {"default": null, "doc": "Minimum orbit intersection distance to Earth.", "name": "MOID", "type": ["null", "float"]}, {"default": null, "doc": "True anomaly of the MOID point.", "name": "MOIDTrueAnomaly", "type": ["null", "float"]}, {"default": null, "doc": "Ecliptic longitude of the MOID point.", "name": "MOIDEclipticLongitude", "type": ["null", "float"]}, {"default": null, "doc": "DeltaV at the MOID point.", "name": "MOIDDeltaV", "type": ["null", "float"]}, {"default": null, "doc": "Best fit absolute magnitude (u band).", "name": "u_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (u band).", "name": "u_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (u band).", "name": "u_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (u band).", "name": "u_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (u band).", "name": "u_H_u_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (u band).", "name": "u_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (u band).", "name": "u_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (g band).", "name": "g_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (g band).", "name": "g_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (g band).", "name": "g_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (g band).", "name": "g_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (g band).", "name": "g_H_g_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (g band).", "name": "g_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (g band).", "name": "g_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (r band).", "name": "r_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (r band).", "name": "r_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (r band).", "name": "r_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (r band).", "name": "r_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (r band).", "name": "r_H_r_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (r band).", "name": "r_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (r band).", "name": "r_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (i band).", "name": "i_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (i band).", "name": "i_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (i band).", "name": "i_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (i band).", "name": "i_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (i band).", "name": "i_H_i_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (i band).", "name": "i_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (i band).", "name": "i_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (z band).", "name": "z_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (z band).", "name": "z_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (z band).", "name": "z_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (z band).", "name": "z_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (z band).", "name": "z_H_z_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (z band).", "name": "z_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (z band).", "name": "z_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "Best fit absolute magnitude (y band).", "name": "y_H", "type": ["null", "float"]}, {"default": null, "doc": "Best fit G12 slope parameter (y band).", "name": "y_G12", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of H (y band).", "name": "y_HErr", "type": ["null", "float"]}, {"default": null, "doc": "Uncertainty of G12 (y band).", "name": "y_G12Err", "type": ["null", "float"]}, {"default": null, "doc": "H-G12 covariance (y band).", "name": "y_H_y_G12_Cov", "type": ["null", "float"]}, {"default": null, "doc": "Chi^2 statistic of the phase curve fit (y band).", "name": "y_Chi2", "type": ["null", "float"]}, {"default": null, "doc": "The number of data points used to fit the phase curve (y band).", "name": "y_Ndata", "type": ["null", "int"]}, {"default": null, "doc": "median `extendedness` value from the DIASource.", "name": "medianExtendedness", "type": ["null", "float"]}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutScience", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}`==<㣖 T!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rV!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rT!Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9`==< \ No newline at end of file diff --git a/tests/data/sample_alerts/lsst/7/4/generate.py b/tests/data/sample_alerts/lsst/7/4/generate.py deleted file mode 100644 index a76189d..0000000 --- a/tests/data/sample_alerts/lsst/7/4/generate.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import json -import lsst.alert.packet as packet -from datetime import datetime -import pandas as pd - -with open("alert.json", "r") as f: - data = json.load(f) - - data_time = datetime.now() - - data['diaSource']['time_processed'] = pd.Timestamp(data_time) - data['diaObject']['validityStart'] = pd.Timestamp(data_time) - -schema = packet.SchemaRegistry.from_filesystem(schema_root="lsst.v7_4.alert").get_by_version("7.4") -with open("fakeAlert.avro", "wb") as f: - schema.store_alerts(f, [data]) From fa9e0e23d3c547311ada9dbc1510232b6ef0f68f Mon Sep 17 00:00:00 2001 From: Troy Raen Date: Mon, 3 Mar 2025 20:08:06 -0800 Subject: [PATCH 15/20] Bugfix sample data lsst.v7_3.avro --- tests/data/sample_alerts/lsst/lsst.v7_3.avro | Bin 903 -> 906 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/data/sample_alerts/lsst/lsst.v7_3.avro b/tests/data/sample_alerts/lsst/lsst.v7_3.avro index 4111239ff560aad24eea07fa1ed1815d5aea8c63..6ebaa985ef7b98cc4739fba2347219fbb3fe2ffa 100644 GIT binary patch delta 26 fcmZo??_!@2KADfHf8tYr5H Date: Tue, 4 Mar 2025 10:22:13 -0500 Subject: [PATCH 16/20] incorporate requested changes --- pittgoogle/.DS_Store | Bin 6148 -> 0 bytes pittgoogle/schemas/.DS_Store | Bin 6148 -> 0 bytes pittgoogle/schemas/lsst/.DS_Store | Bin 6148 -> 0 bytes pittgoogle/schemas/lsst/7/.DS_Store | Bin 6148 -> 0 bytes pittgoogle/schemas/lsst/7/2/.DS_Store | Bin 6148 -> 0 bytes pittgoogle/schemas/lsst/7/3/.DS_Store | Bin 6148 -> 0 bytes .../data/sample_alerts/lsst}/README.md | 0 7 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 pittgoogle/.DS_Store delete mode 100644 pittgoogle/schemas/.DS_Store delete mode 100644 pittgoogle/schemas/lsst/.DS_Store delete mode 100644 pittgoogle/schemas/lsst/7/.DS_Store delete mode 100644 pittgoogle/schemas/lsst/7/2/.DS_Store delete mode 100644 pittgoogle/schemas/lsst/7/3/.DS_Store rename {pittgoogle/schemas/lsst/7 => tests/data/sample_alerts/lsst}/README.md (100%) diff --git a/pittgoogle/.DS_Store b/pittgoogle/.DS_Store deleted file mode 100644 index c45de5e009d5ddb3f08f5353f8b3694642197810..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5EC}5S)cbL`svA(pTUHR+O9|7YHOs6hSGT=wHRTI2yB`g6Jh(C_uB)dhGR% zEl=_GEdX169G-wBfH~a}pFT{@_uVIUR}mx9dB!`QF&u{d@#Qqhz8rAw0|xBzhS#6` z)6utNQa}nw0VyB_q`-|8r~*4*-1uA_Ck3Ry-&erD4~_2F3&+Ixba03kfH-3~jPvLv zh|L4UUN|N)LbIe2lWNssSkf79mDdZ$#H7Qj`LMd#szb53o#(emhxJ5_Qa}ovD{!C7 zrPu!r{Yw9TPSQ#WNP&N)fX&w1^@>lb+B$ih*V;zk(LLvj?#6jgI7B%nMmgrf%kg6* bWnS|+_j}=(7<9&iPSnqU>mri^zpcPG0Y?>t diff --git a/pittgoogle/schemas/.DS_Store b/pittgoogle/schemas/.DS_Store deleted file mode 100644 index 94250e0a0c7d2719b45e5abef072f796dd4d7027..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~F%H5o3`K3|P>H1@V-^m;4WbH8zy%O=tkj{f=jePpUMS3{Lf^>#u~Uoo4NWZ~ z+CPV*NGBpK+*A%07N*D>8D+-rG0gYzHcg`yVVf#qDZG=#er!`nfCNZ@1W14cRzx6< z@piYOd*ZE-012#vfW03Q+%$)ls{ZOg@DTvopzMaV&l1pN1!xW}RZ)RyOb;5Z>SKu2 zy&an3x*S@n)^^btJ~aMWZHj?uZ5K^QV47VRNPq+u1hzHr?EF8&zs>)P7N#UX0)Iw8 zo73gg&E=B)e-D51 z{(mHCB?Y9wTPfhP-C?)Im8!RnF2`Qm;72%fe&96BgMuO2F)-RO7Hr3>NXop%Ire+u UkQj8tgAUZs0CkZ`f&W(E7al=jj+JAO)^R0slTUx??Y#664dsAzA?9is3NM zqn98y4-k9dl*kCpl1fafRf}OsXS`KjFPsvS4y)$F>Sn7B#o~6J-y$8>6E#W!DKJ;y zHkVtk{}1#(`u{meD=8oau1W!0?H~6$KB;Q!;&EPU8~vH?Ip1_Q&V#}s$}us@F&AEr e?;=jj+JAO)^R0slTUx??Y#664dsAzA?9is3NM zqn98y4-k9dl*kCpl1fafRf}OsXS`KjFPsvS4y)$F>Sn7B#o~6J-y$8>6E#W!DKJ;y zHkVtk{}1#(`u{meD=8oau1W!0?H~6$KB;Q!;&EPU8~vH?Ip1_Q&V#}s$}us@F&AEr e?; Date: Tue, 4 Mar 2025 10:23:06 -0500 Subject: [PATCH 17/20] delete remaining .DS_Store files --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 10a7c68e4852eabf5245afa85d8aea1fffa5c44f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKyG{c!5S)b+5i}_&{R{ko6(wK54@4m-LOSV?fc`4Ji%-k!qaZryLKDqe>#_HC zY~2*Mw*YMYd3Xd?0G4z|eEBptf9^iBn~E5b&NGe}IgS|cGRyuw;M_aB;T0boKlq3D z=V3pNgD1$OfE17dQa}nwfr}|nrFD6Ku@iNW6p#YfqJV!N8r`uMPKoj9;1n$YalvpH z*U?K5n+J%!a7tu^W=SO`)vCp?q%+xr7BfD|}a z;5N4_um4;6AN~J1NjoVZ1+Gc~TWp>-Yray|*4fK>t!?xj-E+R_Zd?b2QOaW From b64cba70144517489e97082e53862cfca76d7a2e Mon Sep 17 00:00:00 2001 From: Troy Raen Date: Tue, 4 Mar 2025 11:51:19 -0800 Subject: [PATCH 18/20] Check for .avro or .json suffix before loading sample alerts. Update docstrings. --- tests/conftest.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 897dab5..ee83979 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -15,6 +15,8 @@ @attrs.define(kw_only=True) class SampleAlert: + """Container for a single sample alert.""" + path: Path = attrs.field() dict_: dict = attrs.field() schema_name: str = attrs.field() @@ -22,10 +24,21 @@ class SampleAlert: survey: str = attrs.field() +def _get_sample_alert_paths(survey: str) -> list[Path]: + """Return all paths under 'tests/data/' that look like sample alerts for `survey`.""" + alert_paths = [ + path + for path in (TESTS_DATA_DIR / "sample_alerts" / survey).iterdir() + if path.suffix in [".avro", ".json"] + ] + return alert_paths + + @pytest.fixture def sample_alerts_lsst() -> list[SampleAlert]: + """List of all LSST sample alerts.""" survey = "lsst" - alert_paths = list((TESTS_DATA_DIR / "sample_alerts" / survey).iterdir()) + alert_paths = _get_sample_alert_paths(survey) alerts = [] for alert_path in alert_paths: schema_fname = alert_path.with_suffix(".alert.avsc").name @@ -50,8 +63,9 @@ def sample_alerts_lsst() -> list[SampleAlert]: @pytest.fixture def sample_alerts_ztf() -> list[SampleAlert]: + """List of all ZTF sample alerts.""" survey = "ztf" - alert_paths = list((TESTS_DATA_DIR / "sample_alerts" / survey).iterdir()) + alert_paths = _get_sample_alert_paths(survey) alerts = [] for alert_path in alert_paths: alert_bytes = alert_path.read_bytes() @@ -69,9 +83,11 @@ def sample_alerts_ztf() -> list[SampleAlert]: @pytest.fixture def sample_alerts(sample_alerts_lsst, sample_alerts_ztf) -> list[SampleAlert]: + """List of all sample alerts for all surveys.""" return [*sample_alerts_lsst, *sample_alerts_ztf] @pytest.fixture def sample_alert(sample_alerts_ztf) -> SampleAlert: + """Single sample alert. Useful when a test needs a sample alert but doesn't care which one.""" return sample_alerts_ztf[0] From f18177bf98e4989636950fa7432135921753a030 Mon Sep 17 00:00:00 2001 From: Troy Raen Date: Tue, 4 Mar 2025 12:21:23 -0800 Subject: [PATCH 19/20] Raise SchemaError rather than NotImplementedError --- pittgoogle/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pittgoogle/schema.py b/pittgoogle/schema.py index b382b51..35dc2f8 100644 --- a/pittgoogle/schema.py +++ b/pittgoogle/schema.py @@ -88,7 +88,7 @@ def lsst_schema_helper(schema_dict: dict) -> "_ConfluentWireAvroSchema": ] if schema_dict.get("name") not in supported_versions: - raise NotImplementedError( + raise exceptions.SchemaError( f"Only {', '.join(supported_versions)} are supported for LSST." ) From 3751cc6878427132b8c66c8788771def91d5307c Mon Sep 17 00:00:00 2001 From: Troy Raen Date: Tue, 4 Mar 2025 12:26:11 -0800 Subject: [PATCH 20/20] Test schemas.get with bad name, explicitly for all surveys --- tests/conftest.py | 6 ++++++ tests/test_registry.py | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index ee83979..35dba59 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -13,6 +13,12 @@ SCHEMAS_DIR = pittgoogle.__package_path__ / "schemas" +@pytest.fixture +def survey_names() -> list[str]: + """List of all survey names supported by pittgoogle.""" + return ["lsst", "ztf"] + + @attrs.define(kw_only=True) class SampleAlert: """Container for a single sample alert.""" diff --git a/tests/test_registry.py b/tests/test_registry.py index 06de986..42ddf22 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -36,6 +36,9 @@ def test_get_schema_by_name(self, schema_name): schema = self.schemas.get(schema_name=schema_name) assert isinstance(schema, pittgoogle.schema.Schema) - def test_get_schema_name_not_found(self): + def test_get_schema_with_bad_name(self, survey_names): with pytest.raises(pittgoogle.exceptions.SchemaError): self.schemas.get(schema_name="nonexistent_schema") + for survey in survey_names: + with pytest.raises(pittgoogle.exceptions.SchemaError): + self.schemas.get(schema_name=f"{survey}.vNONE.alert")