diff --git a/README.rst b/README.rst index 4202576..c26dcb8 100644 --- a/README.rst +++ b/README.rst @@ -39,8 +39,8 @@ Steps to update the alert schema (for example, when the APDB schema is updated). * To update the schema, you must have the path to the apdb.yaml file and have chosen a version number. If the directory for your version * does not already exist, ``updateSchema.py`` will create it. - * run ``python updateSchema.py /path/to/LSST/code/sdm_schemas/yml/apdb.yaml "6.0"`` All Generated files do not need to be altered. - * Navigate to the new schema. Copy in the previous ``lsst.vX_X.avsc`` file and ``lsst.vX_X.diaNondetectionLimit.avsc``. + * run ``python updateSchema.py /path/to/LSST/code/sdm_schemas/yml/apdb.yaml Path/To/alert_packet/lsst/alert/packet/schema "6.0"`` All Generated files do not need to be altered. + * Navigate to the new schema. Copy in the previous ``lsst.vX_X.alert.avsc`` file and ``lsst.vX_X.diaNondetectionLimit.avsc``. * Within the two copied files, update ``"namespace": "lsst.vX_X",`` line at the top of each ``*.avsc`` file to the new version. * Update the contents of those avro schema files to reflect the new schema. * Update the sample alert packet in ``sample_data``: diff --git a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaForcedSource.avsc b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaForcedSource.avsc index de49adb..caead79 100644 --- a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaForcedSource.avsc +++ b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaForcedSource.avsc @@ -19,8 +19,8 @@ "type": "long" }, { - "doc": "Point Source model flux.", "default": null, + "doc": "Point Source model flux.", "name": "psfFlux", "type": [ "null", @@ -28,8 +28,8 @@ ] }, { - "doc": "Uncertainty of psfFlux.", "default": null, + "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": [ "null", @@ -37,8 +37,8 @@ ] }, { - "doc": "x position at which psfFlux has been measured.", "default": null, + "doc": "x position at which psfFlux has been measured.", "name": "x", "type": [ "null", @@ -46,8 +46,8 @@ ] }, { - "doc": "y position at which psfFlux has been measured.", "default": null, + "doc": "y position at which psfFlux has been measured.", "name": "y", "type": [ "null", @@ -65,8 +65,8 @@ "type": "double" }, { - "doc": "Filter band this source was observed with.", "default": null, + "doc": "Filter band this source was observed with.", "name": "band", "type": [ "null", diff --git a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaObject.avsc b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaObject.avsc index 7dd4cb2..5b2c706 100644 --- a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaObject.avsc +++ b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaObject.avsc @@ -14,8 +14,8 @@ "type": "double" }, { - "doc": "Uncertainty of ra.", "default": null, + "doc": "Uncertainty of ra.", "name": "raErr", "type": [ "null", @@ -28,8 +28,8 @@ "type": "double" }, { - "doc": "Uncertainty of dec.", "default": null, + "doc": "Uncertainty of dec.", "name": "decErr", "type": [ "null", @@ -37,8 +37,8 @@ ] }, { - "doc": "Covariance between ra and dec.", "default": null, + "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": [ "null", @@ -46,8 +46,8 @@ ] }, { - "doc": "Time at which the object was at a position ra/dec, expressed as Modified Julian Date, International Atomic Time.", "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", @@ -55,8 +55,8 @@ ] }, { - "doc": "Proper motion in right ascension.", "default": null, + "doc": "Proper motion in right ascension.", "name": "pmRa", "type": [ "null", @@ -64,8 +64,8 @@ ] }, { - "doc": "Uncertainty of pmRa.", "default": null, + "doc": "Uncertainty of pmRa.", "name": "pmRaErr", "type": [ "null", @@ -73,8 +73,8 @@ ] }, { - "doc": "Proper motion of declination.", "default": null, + "doc": "Proper motion of declination.", "name": "pmDec", "type": [ "null", @@ -82,8 +82,8 @@ ] }, { - "doc": "Uncertainty of pmDec.", "default": null, + "doc": "Uncertainty of pmDec.", "name": "pmDecErr", "type": [ "null", @@ -91,8 +91,8 @@ ] }, { - "doc": "Parallax.", "default": null, + "doc": "Parallax.", "name": "parallax", "type": [ "null", @@ -100,8 +100,8 @@ ] }, { - "doc": "Uncertainty of parallax.", "default": null, + "doc": "Uncertainty of parallax.", "name": "parallaxErr", "type": [ "null", @@ -109,8 +109,8 @@ ] }, { - "doc": "Covariance of pmRa and pmDec.", "default": null, + "doc": "Covariance of pmRa and pmDec.", "name": "pmRa_pmDec_Cov", "type": [ "null", @@ -118,8 +118,8 @@ ] }, { - "doc": "Covariance of pmRa and parallax.", "default": null, + "doc": "Covariance of pmRa and parallax.", "name": "pmRa_parallax_Cov", "type": [ "null", @@ -127,8 +127,8 @@ ] }, { - "doc": "Covariance of pmDec and parallax.", "default": null, + "doc": "Covariance of pmDec and parallax.", "name": "pmDec_parallax_Cov", "type": [ "null", @@ -136,8 +136,8 @@ ] }, { - "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "default": null, + "doc": "Natural log of the likelihood of the linear proper motion parallax fit.", "name": "pmParallaxLnL", "type": [ "null", @@ -145,8 +145,8 @@ ] }, { - "doc": "Chi^2 static of the model fit.", "default": null, + "doc": "Chi^2 static of the model fit.", "name": "pmParallaxChi2", "type": [ "null", @@ -154,8 +154,8 @@ ] }, { - "doc": "The number of data points used to fit the model.", "default": null, + "doc": "The number of data points used to fit the model.", "name": "pmParallaxNdata", "type": [ "null", @@ -163,8 +163,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for u filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for u filter.", "name": "u_psfFluxMean", "type": [ "null", @@ -172,8 +172,8 @@ ] }, { - "doc": "Standard error of u_psfFluxMean.", "default": null, + "doc": "Standard error of u_psfFluxMean.", "name": "u_psfFluxMeanErr", "type": [ "null", @@ -181,8 +181,8 @@ ] }, { - "doc": "Standard deviation of the distribution of u_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of u_psfFlux.", "name": "u_psfFluxSigma", "type": [ "null", @@ -190,8 +190,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of u_psfFlux around u_psfFluxMean.", "name": "u_psfFluxChi2", "type": [ "null", @@ -199,8 +199,8 @@ ] }, { - "doc": "The number of data points used to compute u_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute u_psfFluxChi2.", "name": "u_psfFluxNdata", "type": [ "null", @@ -208,8 +208,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for u filter.", "default": null, + "doc": "Weighted mean forced photometry flux for u filter.", "name": "u_fpFluxMean", "type": [ "null", @@ -217,8 +217,8 @@ ] }, { - "doc": "Standard error of u_fpFluxMean.", "default": null, + "doc": "Standard error of u_fpFluxMean.", "name": "u_fpFluxMeanErr", "type": [ "null", @@ -226,8 +226,8 @@ ] }, { - "doc": "Standard deviation of the distribution of u_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of u_fpFlux.", "name": "u_fpFluxSigma", "type": [ "null", @@ -235,8 +235,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for g filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for g filter.", "name": "g_psfFluxMean", "type": [ "null", @@ -244,8 +244,8 @@ ] }, { - "doc": "Standard error of g_psfFluxMean.", "default": null, + "doc": "Standard error of g_psfFluxMean.", "name": "g_psfFluxMeanErr", "type": [ "null", @@ -253,8 +253,8 @@ ] }, { - "doc": "Standard deviation of the distribution of g_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of g_psfFlux.", "name": "g_psfFluxErr", "type": [ "null", @@ -262,8 +262,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of g_psfFlux around g_psfFluxMean.", "name": "g_psfFluxChi2", "type": [ "null", @@ -271,8 +271,8 @@ ] }, { - "doc": "The number of data points used to compute g_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute g_psfFluxChi2.", "name": "g_psfFluxNdata", "type": [ "null", @@ -280,8 +280,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for g filter.", "default": null, + "doc": "Weighted mean forced photometry flux for g filter.", "name": "g_fpFluxMean", "type": [ "null", @@ -289,8 +289,8 @@ ] }, { - "doc": "Standard error of g_fpFluxMean.", "default": null, + "doc": "Standard error of g_fpFluxMean.", "name": "g_fpFluxMeanErr", "type": [ "null", @@ -298,8 +298,8 @@ ] }, { - "doc": "Standard deviation of the distribution of g_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of g_fpFlux.", "name": "g_fpFluxSigma", "type": [ "null", @@ -307,8 +307,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for r filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for r filter.", "name": "r_psfFluxMean", "type": [ "null", @@ -316,8 +316,8 @@ ] }, { - "doc": "Standard error of r_psfFluxMean.", "default": null, + "doc": "Standard error of r_psfFluxMean.", "name": "r_psfFluxMeanErr", "type": [ "null", @@ -325,8 +325,8 @@ ] }, { - "doc": "Standard deviation of the distribution of r_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of r_psfFlux.", "name": "r_psfFluxSigma", "type": [ "null", @@ -334,8 +334,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of r_psfFlux around r_psfFluxMean.", "name": "r_psfFluxChi2", "type": [ "null", @@ -343,8 +343,8 @@ ] }, { - "doc": "The number of data points used to compute r_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute r_psfFluxChi2.", "name": "r_psfFluxNdata", "type": [ "null", @@ -352,8 +352,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for r filter.", "default": null, + "doc": "Weighted mean forced photometry flux for r filter.", "name": "r_fpFluxMean", "type": [ "null", @@ -361,8 +361,8 @@ ] }, { - "doc": "Standard error of r_fpFluxMean.", "default": null, + "doc": "Standard error of r_fpFluxMean.", "name": "r_fpFluxMeanErr", "type": [ "null", @@ -370,8 +370,8 @@ ] }, { - "doc": "Standard deviation of the distribution of r_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of r_fpFlux.", "name": "r_fpFluxSigma", "type": [ "null", @@ -379,8 +379,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for i filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for i filter.", "name": "i_psfFluxMean", "type": [ "null", @@ -388,8 +388,8 @@ ] }, { - "doc": "Standard error of i_psfFluxMean.", "default": null, + "doc": "Standard error of i_psfFluxMean.", "name": "i_psfFluxMeanErr", "type": [ "null", @@ -397,8 +397,8 @@ ] }, { - "doc": "Standard deviation of the distribution of i_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of i_psfFlux.", "name": "i_psfFluxSigma", "type": [ "null", @@ -406,8 +406,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of i_psfFlux around i_psfFluxMean.", "name": "i_psfFluxChi2", "type": [ "null", @@ -415,8 +415,8 @@ ] }, { - "doc": "The number of data points used to compute i_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute i_psfFluxChi2.", "name": "i_psfFluxNdata", "type": [ "null", @@ -424,8 +424,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for i filter.", "default": null, + "doc": "Weighted mean forced photometry flux for i filter.", "name": "i_fpFluxMean", "type": [ "null", @@ -433,8 +433,8 @@ ] }, { - "doc": "Standard error of i_fpFluxMean.", "default": null, + "doc": "Standard error of i_fpFluxMean.", "name": "i_fpFluxMeanErr", "type": [ "null", @@ -442,8 +442,8 @@ ] }, { - "doc": "Standard deviation of the distribution of i_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of i_fpFlux.", "name": "i_fpFluxSigma", "type": [ "null", @@ -451,8 +451,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for z filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for z filter.", "name": "z_psfFluxMean", "type": [ "null", @@ -460,8 +460,8 @@ ] }, { - "doc": "Standard error of z_psfFluxMean.", "default": null, + "doc": "Standard error of z_psfFluxMean.", "name": "z_psfFluxMeanErr", "type": [ "null", @@ -469,8 +469,8 @@ ] }, { - "doc": "Standard deviation of the distribution of z_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of z_psfFlux.", "name": "z_psfFluxSigma", "type": [ "null", @@ -478,8 +478,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of z_psfFlux around z_psfFluxMean.", "name": "z_psfFluxChi2", "type": [ "null", @@ -487,8 +487,8 @@ ] }, { - "doc": "The number of data points used to compute z_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute z_psfFluxChi2.", "name": "z_psfFluxNdata", "type": [ "null", @@ -496,8 +496,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for z filter.", "default": null, + "doc": "Weighted mean forced photometry flux for z filter.", "name": "z_fpFluxMean", "type": [ "null", @@ -505,8 +505,8 @@ ] }, { - "doc": "Standard error of z_fpFluxMean.", "default": null, + "doc": "Standard error of z_fpFluxMean.", "name": "z_fpFluxMeanErr", "type": [ "null", @@ -514,8 +514,8 @@ ] }, { - "doc": "Standard deviation of the distribution of z_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of z_fpFlux.", "name": "z_fpFluxSigma", "type": [ "null", @@ -523,8 +523,8 @@ ] }, { - "doc": "Weighted mean point-source model magnitude for y filter.", "default": null, + "doc": "Weighted mean point-source model magnitude for y filter.", "name": "y_psfFluxMean", "type": [ "null", @@ -532,8 +532,8 @@ ] }, { - "doc": "Standard error of y_psfFluxMean.", "default": null, + "doc": "Standard error of y_psfFluxMean.", "name": "y_psfFluxMeanErr", "type": [ "null", @@ -541,8 +541,8 @@ ] }, { - "doc": "Standard deviation of the distribution of y_psfFlux.", "default": null, + "doc": "Standard deviation of the distribution of y_psfFlux.", "name": "y_psfFluxSigma", "type": [ "null", @@ -550,8 +550,8 @@ ] }, { - "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "default": null, + "doc": "Chi^2 statistic for the scatter of y_psfFlux around y_psfFluxMean.", "name": "y_psfFluxChi2", "type": [ "null", @@ -559,8 +559,8 @@ ] }, { - "doc": "The number of data points used to compute y_psfFluxChi2.", "default": null, + "doc": "The number of data points used to compute y_psfFluxChi2.", "name": "y_psfFluxNdata", "type": [ "null", @@ -568,8 +568,8 @@ ] }, { - "doc": "Weighted mean forced photometry flux for y filter.", "default": null, + "doc": "Weighted mean forced photometry flux for y filter.", "name": "y_fpFluxMean", "type": [ "null", @@ -577,8 +577,8 @@ ] }, { - "doc": "Standard error of y_fpFluxMean.", "default": null, + "doc": "Standard error of y_fpFluxMean.", "name": "y_fpFluxMeanErr", "type": [ "null", @@ -586,8 +586,8 @@ ] }, { - "doc": "Standard deviation of the distribution of y_fpFlux.", "default": null, + "doc": "Standard deviation of the distribution of y_fpFlux.", "name": "y_fpFluxSigma", "type": [ "null", @@ -595,8 +595,8 @@ ] }, { - "doc": "Id of the closest nearby object.", "default": null, + "doc": "Id of the closest nearby object.", "name": "nearbyObj1", "type": [ "null", @@ -604,8 +604,8 @@ ] }, { - "doc": "Distance to nearbyObj1.", "default": null, + "doc": "Distance to nearbyObj1.", "name": "nearbyObj1Dist", "type": [ "null", @@ -613,8 +613,8 @@ ] }, { - "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj1.", "name": "nearbyObj1LnP", "type": [ "null", @@ -622,8 +622,8 @@ ] }, { - "doc": "Id of the second-closest nearby object.", "default": null, + "doc": "Id of the second-closest nearby object.", "name": "nearbyObj2", "type": [ "null", @@ -631,8 +631,8 @@ ] }, { - "doc": "Distance to nearbyObj2.", "default": null, + "doc": "Distance to nearbyObj2.", "name": "nearbyObj2Dist", "type": [ "null", @@ -640,8 +640,8 @@ ] }, { - "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj2.", "name": "nearbyObj2LnP", "type": [ "null", @@ -649,8 +649,8 @@ ] }, { - "doc": "Id of the third-closest nearby object.", "default": null, + "doc": "Id of the third-closest nearby object.", "name": "nearbyObj3", "type": [ "null", @@ -658,8 +658,8 @@ ] }, { - "doc": "Distance to nearbyObj3.", "default": null, + "doc": "Distance to nearbyObj3.", "name": "nearbyObj3Dist", "type": [ "null", @@ -667,8 +667,8 @@ ] }, { - "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "default": null, + "doc": "Natural log of the probability that the observed diaObject is the same as the nearbyObj3.", "name": "nearbyObj3LnP", "type": [ "null", @@ -676,8 +676,8 @@ ] }, { - "doc": "Mean of the u band flux errors.", "default": null, + "doc": "Mean of the u band flux errors.", "name": "u_psfFluxErrMean", "type": [ "null", @@ -685,8 +685,8 @@ ] }, { - "doc": "Mean of the g band flux errors.", "default": null, + "doc": "Mean of the g band flux errors.", "name": "g_psfFluxErrMean", "type": [ "null", @@ -694,8 +694,8 @@ ] }, { - "doc": "Mean of the r band flux errors.", "default": null, + "doc": "Mean of the r band flux errors.", "name": "r_psfFluxErrMean", "type": [ "null", @@ -703,8 +703,8 @@ ] }, { - "doc": "Mean of the i band flux errors.", "default": null, + "doc": "Mean of the i band flux errors.", "name": "i_psfFluxErrMean", "type": [ "null", @@ -712,8 +712,8 @@ ] }, { - "doc": "Mean of the z band flux errors.", "default": null, + "doc": "Mean of the z band flux errors.", "name": "z_psfFluxErrMean", "type": [ "null", @@ -721,8 +721,8 @@ ] }, { - "doc": "Mean of the y band flux errors.", "default": null, + "doc": "Mean of the y band flux errors.", "name": "y_psfFluxErrMean", "type": [ "null", diff --git a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaSource.avsc b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaSource.avsc index 466722b..a409a91 100644 --- a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaSource.avsc +++ b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaSource.avsc @@ -14,8 +14,8 @@ "type": "long" }, { - "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, + "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", @@ -23,8 +23,8 @@ ] }, { - "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, + "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", @@ -32,8 +32,8 @@ ] }, { - "doc": "Id of the parent diaSource this diaSource has been deblended from, if any.", "default": null, + "doc": "Id of the parent diaSource this diaSource has been deblended from, if any.", "name": "parentDiaSourceId", "type": [ "null", @@ -51,8 +51,8 @@ "type": "double" }, { - "doc": "Uncertainty of ra.", "default": null, + "doc": "Uncertainty of ra.", "name": "raErr", "type": [ "null", @@ -65,8 +65,8 @@ "type": "double" }, { - "doc": "Uncertainty of dec.", "default": null, + "doc": "Uncertainty of dec.", "name": "decErr", "type": [ "null", @@ -74,8 +74,8 @@ ] }, { - "doc": "Covariance between ra and dec.", "default": null, + "doc": "Covariance between ra and dec.", "name": "ra_dec_Cov", "type": [ "null", @@ -88,8 +88,8 @@ "type": "float" }, { - "doc": "Uncertainty of x.", "default": null, + "doc": "Uncertainty of x.", "name": "xErr", "type": [ "null", @@ -102,8 +102,8 @@ "type": "float" }, { - "doc": "Uncertainty of y.", "default": null, + "doc": "Uncertainty of y.", "name": "yErr", "type": [ "null", @@ -111,8 +111,8 @@ ] }, { - "doc": "Covariance between x and y.", "default": null, + "doc": "Covariance between x and y.", "name": "x_y_Cov", "type": [ "null", @@ -120,8 +120,8 @@ ] }, { - "doc": "Flux in a 12 pixel radius aperture on the difference image.", "default": null, + "doc": "Flux in a 12 pixel radius aperture on the difference image.", "name": "apFlux", "type": [ "null", @@ -129,8 +129,8 @@ ] }, { - "doc": "Estimated uncertainty of apFlux.", "default": null, + "doc": "Estimated uncertainty of apFlux.", "name": "apFluxErr", "type": [ "null", @@ -138,8 +138,8 @@ ] }, { - "doc": "The signal-to-noise ratio at which this source was detected in the difference image.", "default": null, + "doc": "The signal-to-noise ratio at which this source was detected in the difference image.", "name": "snr", "type": [ "null", @@ -147,8 +147,8 @@ ] }, { - "doc": "Flux for Point Source model. Note this actually measures the flux difference between the template and the visit image.", "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", @@ -156,8 +156,8 @@ ] }, { - "doc": "Uncertainty of psfFlux.", "default": null, + "doc": "Uncertainty of psfFlux.", "name": "psfFluxErr", "type": [ "null", @@ -165,8 +165,8 @@ ] }, { - "doc": "Right ascension coordinate of centroid for point source model.", "default": null, + "doc": "Right ascension coordinate of centroid for point source model.", "name": "psfRa", "type": [ "null", @@ -174,8 +174,8 @@ ] }, { - "doc": "Uncertainty of psfRa.", "default": null, + "doc": "Uncertainty of psfRa.", "name": "psfRaErr", "type": [ "null", @@ -183,8 +183,8 @@ ] }, { - "doc": "Declination coordinate of centroid for point source model.", "default": null, + "doc": "Declination coordinate of centroid for point source model.", "name": "psfDec", "type": [ "null", @@ -192,8 +192,8 @@ ] }, { - "doc": "Uncertainty of psfDec.", "default": null, + "doc": "Uncertainty of psfDec.", "name": "psfDecErr", "type": [ "null", @@ -201,8 +201,8 @@ ] }, { - "doc": "Covariance between psfFlux and psfRa.", "default": null, + "doc": "Covariance between psfFlux and psfRa.", "name": "psfFlux_psfRa_Cov", "type": [ "null", @@ -210,8 +210,8 @@ ] }, { - "doc": "Covariance between psfFlux and psfDec.", "default": null, + "doc": "Covariance between psfFlux and psfDec.", "name": "psfFlux_psfDec_Cov", "type": [ "null", @@ -219,8 +219,8 @@ ] }, { - "doc": "Covariance between psfRa and psfDec.", "default": null, + "doc": "Covariance between psfRa and psfDec.", "name": "psfRa_psfDec_Cov", "type": [ "null", @@ -228,8 +228,8 @@ ] }, { - "doc": "Natural log likelihood of the observed data given the point source model.", "default": null, + "doc": "Natural log likelihood of the observed data given the point source model.", "name": "psfLnL", "type": [ "null", @@ -237,8 +237,8 @@ ] }, { - "doc": "Chi^2 statistic of the point source model fit.", "default": null, + "doc": "Chi^2 statistic of the point source model fit.", "name": "psfChi2", "type": [ "null", @@ -246,8 +246,8 @@ ] }, { - "doc": "The number of data points (pixels) used to fit the point source model.", "default": null, + "doc": "The number of data points (pixels) used to fit the point source model.", "name": "psfNdata", "type": [ "null", @@ -255,8 +255,8 @@ ] }, { - "doc": "Flux for a trailed source model. Note this actually measures the flux difference between the template and the visit image.", "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", @@ -264,8 +264,8 @@ ] }, { - "doc": "Uncertainty of trailFlux.", "default": null, + "doc": "Uncertainty of trailFlux.", "name": "trailFluxErr", "type": [ "null", @@ -273,8 +273,8 @@ ] }, { - "doc": "Right ascension coordinate of centroid for trailed source model.", "default": null, + "doc": "Right ascension coordinate of centroid for trailed source model.", "name": "trailRa", "type": [ "null", @@ -282,8 +282,8 @@ ] }, { - "doc": "Uncertainty of trailRa.", "default": null, + "doc": "Uncertainty of trailRa.", "name": "trailRaErr", "type": [ "null", @@ -291,8 +291,8 @@ ] }, { - "doc": "Declination coordinate of centroid for trailed source model.", "default": null, + "doc": "Declination coordinate of centroid for trailed source model.", "name": "trailDec", "type": [ "null", @@ -300,8 +300,8 @@ ] }, { - "doc": "Uncertainty of trailDec.", "default": null, + "doc": "Uncertainty of trailDec.", "name": "trailDecErr", "type": [ "null", @@ -309,8 +309,8 @@ ] }, { - "doc": "Maximum likelihood fit of trail length.", "default": null, + "doc": "Maximum likelihood fit of trail length.", "name": "trailLength", "type": [ "null", @@ -318,8 +318,8 @@ ] }, { - "doc": "Uncertainty of trailLength.", "default": null, + "doc": "Uncertainty of trailLength.", "name": "trailLengthErr", "type": [ "null", @@ -327,8 +327,8 @@ ] }, { - "doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the trail direction (bearing).", "default": null, + "doc": "Maximum likelihood fit of the angle between the meridian through the centroid and the trail direction (bearing).", "name": "trailAngle", "type": [ "null", @@ -336,8 +336,8 @@ ] }, { - "doc": "Uncertainty of trailAngle.", "default": null, + "doc": "Uncertainty of trailAngle.", "name": "trailAngleErr", "type": [ "null", @@ -345,8 +345,8 @@ ] }, { - "doc": "Covariance of trailFlux and trailRa.", "default": null, + "doc": "Covariance of trailFlux and trailRa.", "name": "trailFlux_trailRa_Cov", "type": [ "null", @@ -354,8 +354,8 @@ ] }, { - "doc": "Covariance of trailFlux and trailDec.", "default": null, + "doc": "Covariance of trailFlux and trailDec.", "name": "trailFlux_trailDec_Cov", "type": [ "null", @@ -363,8 +363,8 @@ ] }, { - "doc": "Covariance of trailFlux and trailLength", "default": null, + "doc": "Covariance of trailFlux and trailLength", "name": "trailFlux_trailLength_Cov", "type": [ "null", @@ -372,8 +372,8 @@ ] }, { - "doc": "Covariance of trailFlux and trailAngle", "default": null, + "doc": "Covariance of trailFlux and trailAngle", "name": "trailFlux_trailAngle_Cov", "type": [ "null", @@ -381,8 +381,8 @@ ] }, { - "doc": "Covariance of trailRa and trailDec.", "default": null, + "doc": "Covariance of trailRa and trailDec.", "name": "trailRa_trailDec_Cov", "type": [ "null", @@ -390,8 +390,8 @@ ] }, { - "doc": "Covariance of trailRa and trailLength.", "default": null, + "doc": "Covariance of trailRa and trailLength.", "name": "trailRa_trailLength_Cov", "type": [ "null", @@ -399,8 +399,8 @@ ] }, { - "doc": "Covariance of trailRa and trailAngle.", "default": null, + "doc": "Covariance of trailRa and trailAngle.", "name": "trailRa_trailAngle_Cov", "type": [ "null", @@ -408,8 +408,8 @@ ] }, { - "doc": "Covariance of trailDec and trailLength.", "default": null, + "doc": "Covariance of trailDec and trailLength.", "name": "trailDec_trailLength_Cov", "type": [ "null", @@ -417,8 +417,8 @@ ] }, { - "doc": "Covariance of trailDec and trailAngle.", "default": null, + "doc": "Covariance of trailDec and trailAngle.", "name": "trailDec_trailAngle_Cov", "type": [ "null", @@ -426,8 +426,8 @@ ] }, { - "doc": "Covariance of trailLength and trailAngle", "default": null, + "doc": "Covariance of trailLength and trailAngle", "name": "trailLength_trailAngle_Cov", "type": [ "null", @@ -435,8 +435,8 @@ ] }, { - "doc": "Natural log likelihood of the observed data given the trailed source model.", "default": null, + "doc": "Natural log likelihood of the observed data given the trailed source model.", "name": "trailLnL", "type": [ "null", @@ -444,8 +444,8 @@ ] }, { - "doc": "Chi^2 statistic of the trailed source model fit.", "default": null, + "doc": "Chi^2 statistic of the trailed source model fit.", "name": "trailChi2", "type": [ "null", @@ -453,13 +453,17 @@ ] }, { + "default": null, "doc": "The number of data points (pixels) used to fit the trailed source model.", "name": "trailNdata", - "type": "int" + "type": [ + "null", + "int" + ] }, { - "doc": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "default": null, + "doc": "Maximum likelihood value for the mean absolute flux of the two lobes for a dipole model.", "name": "dipoleMeanFlux", "type": [ "null", @@ -467,8 +471,8 @@ ] }, { - "doc": "Uncertainty of dipoleMeanFlux.", "default": null, + "doc": "Uncertainty of dipoleMeanFlux.", "name": "dipoleMeanFluxErr", "type": [ "null", @@ -476,8 +480,8 @@ ] }, { - "doc": "Maximum likelihood value for the difference of absolute fluxes of the two lobes for a dipole model.", "default": null, + "doc": "Maximum likelihood value for the difference of absolute fluxes of the two lobes for a dipole model.", "name": "dipoleFluxDiff", "type": [ "null", @@ -485,8 +489,8 @@ ] }, { - "doc": "Uncertainty of dipoleFluxDiff.", "default": null, + "doc": "Uncertainty of dipoleFluxDiff.", "name": "dipoleFluxDiffErr", "type": [ "null", @@ -494,8 +498,8 @@ ] }, { - "doc": " Right ascension coordinate of centroid for dipole model.", "default": null, + "doc": " Right ascension coordinate of centroid for dipole model.", "name": "dipoleRa", "type": [ "null", @@ -503,8 +507,8 @@ ] }, { - "doc": "Uncertainty of dipoleRa.", "default": null, + "doc": "Uncertainty of dipoleRa.", "name": "dipoleRaErr", "type": [ "null", @@ -512,8 +516,8 @@ ] }, { - "doc": " Declination coordinate of centroid for dipole model.", "default": null, + "doc": " Declination coordinate of centroid for dipole model.", "name": "dipoleDec", "type": [ "null", @@ -521,8 +525,8 @@ ] }, { - "doc": "Uncertainty of dipoleDec.", "default": null, + "doc": "Uncertainty of dipoleDec.", "name": "dipoleDecErr", "type": [ "null", @@ -530,8 +534,8 @@ ] }, { - "doc": "Maximum likelihood value for the lobe separation in dipole model.", "default": null, + "doc": "Maximum likelihood value for the lobe separation in dipole model.", "name": "dipoleLength", "type": [ "null", @@ -539,8 +543,8 @@ ] }, { - "doc": "Uncertainty of dipoleLength.", "default": null, + "doc": "Uncertainty of dipoleLength.", "name": "dipoleLengthErr", "type": [ "null", @@ -548,8 +552,8 @@ ] }, { - "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, + "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", @@ -557,8 +561,8 @@ ] }, { - "doc": "Uncertainty of dipoleAngle.", "default": null, + "doc": "Uncertainty of dipoleAngle.", "name": "dipoleAngleErr", "type": [ "null", @@ -566,8 +570,8 @@ ] }, { - "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleFluxDiff.", "name": "dipoleMeanFlux_dipoleFluxDiff_Cov", "type": [ "null", @@ -575,8 +579,8 @@ ] }, { - "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleRa.", "name": "dipoleMeanFlux_dipoleRa_Cov", "type": [ "null", @@ -584,8 +588,8 @@ ] }, { - "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleDec.", "name": "dipoleMeanFlux_dipoleDec_Cov", "type": [ "null", @@ -593,8 +597,8 @@ ] }, { - "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleLength.", "name": "dipoleMeanFlux_dipoleLength_Cov", "type": [ "null", @@ -602,8 +606,8 @@ ] }, { - "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "default": null, + "doc": "Covariance of dipoleMeanFlux and dipoleAngle.", "name": "dipoleMeanFlux_dipoleAngle_Cov", "type": [ "null", @@ -611,8 +615,8 @@ ] }, { - "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleRa.", "name": "dipoleFluxDiff_dipoleRa_Cov", "type": [ "null", @@ -620,8 +624,8 @@ ] }, { - "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleDec.", "name": "dipoleFluxDiff_dipoleDec_Cov", "type": [ "null", @@ -629,8 +633,8 @@ ] }, { - "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleLength.", "name": "dipoleFluxDiff_dipoleLength_Cov", "type": [ "null", @@ -638,8 +642,8 @@ ] }, { - "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "default": null, + "doc": "Covariance of dipoleFluxDiff and dipoleAngle.", "name": "dipoleFluxDiff_dipoleAngle_Cov", "type": [ "null", @@ -647,8 +651,8 @@ ] }, { - "doc": "Covariance of dipoleRa and dipoleDec.", "default": null, + "doc": "Covariance of dipoleRa and dipoleDec.", "name": "dipoleRa_dipoleDec_Cov", "type": [ "null", @@ -656,8 +660,8 @@ ] }, { - "doc": "Covariance of dipoleRa and dipoleLength.", "default": null, + "doc": "Covariance of dipoleRa and dipoleLength.", "name": "dipoleRa_dipoleLength_Cov", "type": [ "null", @@ -665,8 +669,8 @@ ] }, { - "doc": "Covariance of dipoleRa and dipoleAngle.", "default": null, + "doc": "Covariance of dipoleRa and dipoleAngle.", "name": "dipoleRa_dipoleAngle_Cov", "type": [ "null", @@ -674,8 +678,8 @@ ] }, { - "doc": "Covariance of dipoleDec and dipoleLength.", "default": null, + "doc": "Covariance of dipoleDec and dipoleLength.", "name": "dipoleDec_dipoleLength_Cov", "type": [ "null", @@ -683,8 +687,8 @@ ] }, { - "doc": "Covariance of dipoleDec and dipoleAngle.", "default": null, + "doc": "Covariance of dipoleDec and dipoleAngle.", "name": "dipoleDec_dipoleAngle_Cov", "type": [ "null", @@ -692,8 +696,8 @@ ] }, { - "doc": "Covariance of dipoleLength and dipoleAngle.", "default": null, + "doc": "Covariance of dipoleLength and dipoleAngle.", "name": "dipoleLength_dipoleAngle_Cov", "type": [ "null", @@ -701,8 +705,8 @@ ] }, { - "doc": "Natural log likelihood of the observed data given the dipole source model.", "default": null, + "doc": "Natural log likelihood of the observed data given the dipole source model.", "name": "dipoleLnL", "type": [ "null", @@ -710,8 +714,8 @@ ] }, { - "doc": "Chi^2 statistic of the model fit.", "default": null, + "doc": "Chi^2 statistic of the model fit.", "name": "dipoleChi2", "type": [ "null", @@ -719,8 +723,8 @@ ] }, { - "doc": "The number of data points (pixels) used to fit the model.", "default": null, + "doc": "The number of data points (pixels) used to fit the model.", "name": "dipoleNdata", "type": [ "null", @@ -728,8 +732,8 @@ ] }, { - "doc": "Calibrated flux for Point Source model centered on radec but measured on the difference of snaps comprising this visit.", "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", @@ -737,8 +741,8 @@ ] }, { - "doc": "Estimated uncertainty of snapDiffFlux.", "default": null, + "doc": "Estimated uncertainty of snapDiffFlux.", "name": "snapDiffFluxErr", "type": [ "null", @@ -746,8 +750,8 @@ ] }, { - "doc": "Estimated sky background at the position (centroid) of the object.", "default": null, + "doc": "Estimated sky background at the position (centroid) of the object.", "name": "fpBkgd", "type": [ "null", @@ -755,8 +759,8 @@ ] }, { - "doc": "Estimated uncertainty of fpBkgd.", "default": null, + "doc": "Estimated uncertainty of fpBkgd.", "name": "fpBkgdErr", "type": [ "null", @@ -764,8 +768,8 @@ ] }, { - "doc": "Adaptive second moment of the source intensity.", "default": null, + "doc": "Adaptive second moment of the source intensity.", "name": "ixx", "type": [ "null", @@ -773,8 +777,8 @@ ] }, { - "doc": "Uncertainty of ixx.", "default": null, + "doc": "Uncertainty of ixx.", "name": "ixxErr", "type": [ "null", @@ -782,8 +786,8 @@ ] }, { - "doc": "Adaptive second moment of the source intensity.", "default": null, + "doc": "Adaptive second moment of the source intensity.", "name": "iyy", "type": [ "null", @@ -791,8 +795,8 @@ ] }, { - "doc": "Uncertainty of iyy.", "default": null, + "doc": "Uncertainty of iyy.", "name": "iyyErr", "type": [ "null", @@ -800,8 +804,8 @@ ] }, { - "doc": "Adaptive second moment of the source intensity.", "default": null, + "doc": "Adaptive second moment of the source intensity.", "name": "ixy", "type": [ "null", @@ -809,8 +813,8 @@ ] }, { - "doc": "Uncertainty of ixy.", "default": null, + "doc": "Uncertainty of ixy.", "name": "ixyErr", "type": [ "null", @@ -818,8 +822,8 @@ ] }, { - "doc": "Covariance of ixx and iyy.", "default": null, + "doc": "Covariance of ixx and iyy.", "name": "ixx_iyy_Cov", "type": [ "null", @@ -827,8 +831,8 @@ ] }, { - "doc": "Covariance of ixx and ixy.", "default": null, + "doc": "Covariance of ixx and ixy.", "name": "ixx_ixy_Cov", "type": [ "null", @@ -836,8 +840,8 @@ ] }, { - "doc": "Covariance of iyy and ixy.", "default": null, + "doc": "Covariance of iyy and ixy.", "name": "iyy_ixy_Cov", "type": [ "null", @@ -845,8 +849,8 @@ ] }, { - "doc": "Adaptive second moment for the PSF.", "default": null, + "doc": "Adaptive second moment for the PSF.", "name": "ixxPSF", "type": [ "null", @@ -854,8 +858,8 @@ ] }, { - "doc": "Adaptive second moment for the PSF.", "default": null, + "doc": "Adaptive second moment for the PSF.", "name": "iyyPSF", "type": [ "null", @@ -863,8 +867,8 @@ ] }, { - "doc": "Adaptive second moment for the PSF.", "default": null, + "doc": "Adaptive second moment for the PSF.", "name": "ixyPSF", "type": [ "null", @@ -872,8 +876,8 @@ ] }, { - "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.", "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", @@ -881,8 +885,8 @@ ] }, { - "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, + "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", @@ -895,8 +899,8 @@ "type": "long" }, { - "doc": "Filter band this source was observed with.", "default": null, + "doc": "Filter band this source was observed with.", "name": "band", "type": [ "null", diff --git a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.ssObject.avsc b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.ssObject.avsc index 97c6041..46a1984 100644 --- a/python/lsst/alert/packet/schema/6/0/lsst.v6_0.ssObject.avsc +++ b/python/lsst/alert/packet/schema/6/0/lsst.v6_0.ssObject.avsc @@ -9,8 +9,8 @@ "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, + "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", @@ -18,8 +18,8 @@ ] }, { - "doc": "The time of the first LSST observation of this object (could be precovered) as Modified Julian Date, International Atomic Time.", "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", @@ -27,8 +27,8 @@ ] }, { - "doc": "Arc of LSST observations.", "default": null, + "doc": "Arc of LSST observations.", "name": "arc", "type": [ "null", @@ -36,8 +36,8 @@ ] }, { - "doc": "Number of LSST observations of this object.", "default": null, + "doc": "Number of LSST observations of this object.", "name": "numObs", "type": [ "null", @@ -45,8 +45,8 @@ ] }, { - "doc": "Minimum orbit intersection distance to Earth.", "default": null, + "doc": "Minimum orbit intersection distance to Earth.", "name": "MOID", "type": [ "null", @@ -54,8 +54,8 @@ ] }, { - "doc": "True anomaly of the MOID point.", "default": null, + "doc": "True anomaly of the MOID point.", "name": "MOIDTrueAnomaly", "type": [ "null", @@ -63,8 +63,8 @@ ] }, { - "doc": "Ecliptic longitude of the MOID point.", "default": null, + "doc": "Ecliptic longitude of the MOID point.", "name": "MOIDEclipticLongitude", "type": [ "null", @@ -72,8 +72,8 @@ ] }, { - "doc": "DeltaV at the MOID point.", "default": null, + "doc": "DeltaV at the MOID point.", "name": "MOIDDeltaV", "type": [ "null", @@ -81,8 +81,8 @@ ] }, { - "doc": "Best fit absolute magnitude (u band).", "default": null, + "doc": "Best fit absolute magnitude (u band).", "name": "u_H", "type": [ "null", @@ -90,8 +90,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (u band).", "default": null, + "doc": "Best fit G12 slope parameter (u band).", "name": "u_G12", "type": [ "null", @@ -99,8 +99,8 @@ ] }, { - "doc": "Uncertainty of H (u band).", "default": null, + "doc": "Uncertainty of H (u band).", "name": "u_HErr", "type": [ "null", @@ -108,8 +108,8 @@ ] }, { - "doc": "Uncertainty of G12 (u band).", "default": null, + "doc": "Uncertainty of G12 (u band).", "name": "u_G12Err", "type": [ "null", @@ -117,8 +117,8 @@ ] }, { - "doc": "H-G12 covariance (u band).", "default": null, + "doc": "H-G12 covariance (u band).", "name": "u_H_u_G12_Cov", "type": [ "null", @@ -126,8 +126,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (u band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (u band).", "name": "u_Chi2", "type": [ "null", @@ -135,8 +135,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (u band).", "default": null, + "doc": "The number of data points used to fit the phase curve (u band).", "name": "u_Ndata", "type": [ "null", @@ -144,8 +144,8 @@ ] }, { - "doc": "Best fit absolute magnitude (g band).", "default": null, + "doc": "Best fit absolute magnitude (g band).", "name": "g_H", "type": [ "null", @@ -153,8 +153,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (g band).", "default": null, + "doc": "Best fit G12 slope parameter (g band).", "name": "g_G12", "type": [ "null", @@ -162,8 +162,8 @@ ] }, { - "doc": "Uncertainty of H (g band).", "default": null, + "doc": "Uncertainty of H (g band).", "name": "g_HErr", "type": [ "null", @@ -171,8 +171,8 @@ ] }, { - "doc": "Uncertainty of G12 (g band).", "default": null, + "doc": "Uncertainty of G12 (g band).", "name": "g_G12Err", "type": [ "null", @@ -180,8 +180,8 @@ ] }, { - "doc": "H-G12 covariance (g band).", "default": null, + "doc": "H-G12 covariance (g band).", "name": "g_H_g_G12_Cov", "type": [ "null", @@ -189,8 +189,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (g band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (g band).", "name": "g_Chi2", "type": [ "null", @@ -198,8 +198,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (g band).", "default": null, + "doc": "The number of data points used to fit the phase curve (g band).", "name": "g_Ndata", "type": [ "null", @@ -207,8 +207,8 @@ ] }, { - "doc": "Best fit absolute magnitude (r band).", "default": null, + "doc": "Best fit absolute magnitude (r band).", "name": "r_H", "type": [ "null", @@ -216,8 +216,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (r band).", "default": null, + "doc": "Best fit G12 slope parameter (r band).", "name": "r_G12", "type": [ "null", @@ -225,8 +225,8 @@ ] }, { - "doc": "Uncertainty of H (r band).", "default": null, + "doc": "Uncertainty of H (r band).", "name": "r_HErr", "type": [ "null", @@ -234,8 +234,8 @@ ] }, { - "doc": "Uncertainty of G12 (r band).", "default": null, + "doc": "Uncertainty of G12 (r band).", "name": "r_G12Err", "type": [ "null", @@ -243,8 +243,8 @@ ] }, { - "doc": "H-G12 covariance (r band).", "default": null, + "doc": "H-G12 covariance (r band).", "name": "r_H_r_G12_Cov", "type": [ "null", @@ -252,8 +252,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (r band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (r band).", "name": "r_Chi2", "type": [ "null", @@ -261,8 +261,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (r band).", "default": null, + "doc": "The number of data points used to fit the phase curve (r band).", "name": "r_Ndata", "type": [ "null", @@ -270,8 +270,8 @@ ] }, { - "doc": "Best fit absolute magnitude (i band).", "default": null, + "doc": "Best fit absolute magnitude (i band).", "name": "i_H", "type": [ "null", @@ -279,8 +279,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (i band).", "default": null, + "doc": "Best fit G12 slope parameter (i band).", "name": "i_G12", "type": [ "null", @@ -288,8 +288,8 @@ ] }, { - "doc": "Uncertainty of H (i band).", "default": null, + "doc": "Uncertainty of H (i band).", "name": "i_HErr", "type": [ "null", @@ -297,8 +297,8 @@ ] }, { - "doc": "Uncertainty of G12 (i band).", "default": null, + "doc": "Uncertainty of G12 (i band).", "name": "i_G12Err", "type": [ "null", @@ -306,8 +306,8 @@ ] }, { - "doc": "H-G12 covariance (i band).", "default": null, + "doc": "H-G12 covariance (i band).", "name": "i_H_i_G12_Cov", "type": [ "null", @@ -315,8 +315,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (i band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (i band).", "name": "i_Chi2", "type": [ "null", @@ -324,8 +324,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (i band).", "default": null, + "doc": "The number of data points used to fit the phase curve (i band).", "name": "i_Ndata", "type": [ "null", @@ -333,8 +333,8 @@ ] }, { - "doc": "Best fit absolute magnitude (z band).", "default": null, + "doc": "Best fit absolute magnitude (z band).", "name": "z_H", "type": [ "null", @@ -342,8 +342,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (z band).", "default": null, + "doc": "Best fit G12 slope parameter (z band).", "name": "z_G12", "type": [ "null", @@ -351,8 +351,8 @@ ] }, { - "doc": "Uncertainty of H (z band).", "default": null, + "doc": "Uncertainty of H (z band).", "name": "z_HErr", "type": [ "null", @@ -360,8 +360,8 @@ ] }, { - "doc": "Uncertainty of G12 (z band).", "default": null, + "doc": "Uncertainty of G12 (z band).", "name": "z_G12Err", "type": [ "null", @@ -369,8 +369,8 @@ ] }, { - "doc": "H-G12 covariance (z band).", "default": null, + "doc": "H-G12 covariance (z band).", "name": "z_H_z_G12_Cov", "type": [ "null", @@ -378,8 +378,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (z band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (z band).", "name": "z_Chi2", "type": [ "null", @@ -387,8 +387,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (z band).", "default": null, + "doc": "The number of data points used to fit the phase curve (z band).", "name": "z_Ndata", "type": [ "null", @@ -396,8 +396,8 @@ ] }, { - "doc": "Best fit absolute magnitude (y band).", "default": null, + "doc": "Best fit absolute magnitude (y band).", "name": "y_H", "type": [ "null", @@ -405,8 +405,8 @@ ] }, { - "doc": "Best fit G12 slope parameter (y band).", "default": null, + "doc": "Best fit G12 slope parameter (y band).", "name": "y_G12", "type": [ "null", @@ -414,8 +414,8 @@ ] }, { - "doc": "Uncertainty of H (y band).", "default": null, + "doc": "Uncertainty of H (y band).", "name": "y_HErr", "type": [ "null", @@ -423,8 +423,8 @@ ] }, { - "doc": "Uncertainty of G12 (y band).", "default": null, + "doc": "Uncertainty of G12 (y band).", "name": "y_G12Err", "type": [ "null", @@ -432,8 +432,8 @@ ] }, { - "doc": "H-G12 covariance (y band).", "default": null, + "doc": "H-G12 covariance (y band).", "name": "y_H_y_G12_Cov", "type": [ "null", @@ -441,8 +441,8 @@ ] }, { - "doc": "Chi^2 statistic of the phase curve fit (y band).", "default": null, + "doc": "Chi^2 statistic of the phase curve fit (y band).", "name": "y_Chi2", "type": [ "null", @@ -450,8 +450,8 @@ ] }, { - "doc": "The number of data points used to fit the phase curve (y band).", "default": null, + "doc": "The number of data points used to fit the phase curve (y band).", "name": "y_Ndata", "type": [ "null", @@ -459,8 +459,8 @@ ] }, { - "doc": "median `extendedness` value from the DIASource.", "default": null, + "doc": "median `extendedness` value from the DIASource.", "name": "medianExtendedness", "type": [ "null", diff --git a/python/lsst/alert/packet/schema/6/0/sample_data/fakeAlert.avro b/python/lsst/alert/packet/schema/6/0/sample_data/fakeAlert.avro index f32f89c..1c62f85 100644 --- a/python/lsst/alert/packet/schema/6/0/sample_data/fakeAlert.avro +++ b/python/lsst/alert/packet/schema/6/0/sample_data/fakeAlert.avro @@ -1,4 +1,4 @@ -Objavro.codecnullavro.schema{"type": "record", "doc": "sample avro alert schema v6.0", "name": "lsst.v6_0.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v6_0.diaSource", "fields": [{"doc": "Unique identifier of this DiaSource.", "name": "diaSourceId", "type": "long"}, {"doc": "Id of the ccdVisit where this diaSource was measured.", "name": "ccdVisitId", "type": "long"}, {"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": "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": "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": "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.", "name": "trailNdata", "type": "int"}, {"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": "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": "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.", "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": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}, {"doc": "Filter band this source was observed with.", "default": null, "name": "band", "type": ["null", "string"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v6_0.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v6_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 ccdVisit where this forcedSource was measured.", "name": "ccdVisitId", "type": "long"}, {"doc": "Point Source model flux.", "default": null, "name": "psfFlux", "type": ["null", "float"]}, {"doc": "Uncertainty of psfFlux.", "default": null, "name": "psfFluxErr", "type": ["null", "float"]}, {"doc": "x position at which psfFlux has been measured.", "default": null, "name": "x", "type": ["null", "float"]}, {"doc": "y position at which psfFlux has been measured.", "default": null, "name": "y", "type": ["null", "float"]}, {"doc": "Flags, bitwise OR tbd", "name": "flags", "type": "long"}, {"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.v6_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.v6_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"}, {"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_psfFluxErr", "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"]}, {"doc": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v6_0.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"]}, {"doc": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}J.jo՞Szƈu 㣖  !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -r !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -r !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A -rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9J.jo՞Szƈu \ No newline at end of file +Objavro.codecnullavro.schemaڀ{"type": "record", "doc": "sample avro alert schema v6.0", "name": "lsst.v6_0.alert", "fields": [{"doc": "unique alert identifer", "name": "alertId", "type": "long"}, {"name": "diaSource", "type": {"type": "record", "name": "lsst.v6_0.diaSource", "fields": [{"doc": "Unique identifier of this DiaSource.", "name": "diaSourceId", "type": "long"}, {"doc": "Id of the ccdVisit where this diaSource was measured.", "name": "ccdVisitId", "type": "long"}, {"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": "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": "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": "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": "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": "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": "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"]}, {"doc": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}, {"default": null, "doc": "Filter band this source was observed with.", "name": "band", "type": ["null", "string"]}]}}, {"default": null, "name": "prvDiaSources", "type": ["null", {"type": "array", "items": "lsst.v6_0.diaSource"}]}, {"default": null, "name": "prvDiaForcedSources", "type": ["null", {"type": "array", "items": {"type": "record", "name": "lsst.v6_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 ccdVisit where this forcedSource was measured.", "name": "ccdVisitId", "type": "long"}, {"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": "Flags, bitwise OR tbd", "name": "flags", "type": "long"}, {"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.v6_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.v6_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_psfFluxErr", "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"]}, {"doc": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}]}]}, {"default": null, "name": "ssObject", "type": ["null", {"type": "record", "name": "lsst.v6_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"]}, {"doc": "Flags, bitwise OR tbd.", "name": "flags", "type": "long"}]}]}, {"default": null, "name": "cutoutDifference", "type": ["null", "bytes"]}, {"default": null, "name": "cutoutTemplate", "type": ["null", "bytes"]}]}qYs;&فp 㣖  !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +r !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +r !Aw5 u@̒9eVt(?̒9$ 933B?33B̌?? D@Aff$B D@A +rw5 u@̒9eVt(?̒9$ 9!AP9P99P9@P9P9P9P9P9P9qYs;&فp \ No newline at end of file diff --git a/python/lsst/alert/packet/updateSchema.py b/python/lsst/alert/packet/updateSchema.py index 3c1a800..21ee178 100644 --- a/python/lsst/alert/packet/updateSchema.py +++ b/python/lsst/alert/packet/updateSchema.py @@ -24,26 +24,22 @@ import fastavro import yaml import json -from lsst.alert.packet import get_schema_root, SchemaRegistry +__all__ = ['generate_schema'] -__all__ = ['update_schema'] +def write_schema(schema, path): -def write_schema(schema, version, path): - - updated_schema_loc = path[0:-3] + version[0]+'/'+version[2] - - if not os.path.exists(updated_schema_loc): - if not os.path.exists(updated_schema_loc[0:-2]): - os.mkdir(updated_schema_loc[0:-2]) - os.mkdir(updated_schema_loc) + if not os.path.exists(path): + if not os.path.exists(path[0:-2]): + os.mkdir(path[0:-2]) + os.mkdir(path) else: - os.mkdir(updated_schema_loc) + os.mkdir(path) updated_schema_name = schema['namespace'] + '.' + schema['name'] + '.avsc' - with open(updated_schema_loc + '/' + updated_schema_name, "w") as f: + with open(path + '/' + updated_schema_name, "w") as f: json.dump(schema, f, indent=2) @@ -57,32 +53,30 @@ def add_namespace(schema): return schema -def populate_fields(apdb): +def populate_fields(apdb_table): """Make a dictionary of fields to populate the avro schema. At present, a number of rules must be included to ensure certain fields are excluded. Parameters ---------- - apdb: `dict` - The name of the schema as a string. E.G. diaSource. + apdb_table: `dict` + The dictionary used to generate the avro schema. """ field_dictionary_array = [] - for column in apdb['columns']: + for column in apdb_table['columns']: # We are still finalizing the time series feature names. - if (column['name'] != 'validityStart') and ( - column['name'] != 'validityEnd') and "Periodic" not in column[ - 'name'] and "max" not in column['name'] and "min" not in column[ - 'name'] and "Science" not in column['name'] and "Percentile" not in column[ - 'name'] and "Max" not in column['name'] and "Min" not in column[ - 'name'] and "science" not in column['name'] and "LowzGal" not in column[ - 'name'] and "MAD" not in column['name'] and "Skew" not in column[ - 'name'] and "Intercept" not in column['name'] and "Slope" not in column[ - 'name'] and "Stetson" not in column['name'] and "lastNonForcedSource" not in column[ - 'name'] and "nDiaSources" not in column['name'] and "ExtObj" not in column[ - 'name'] and "time_" not in column['name'] and "Time" not in column[ - 'name'] and "isDipole" not in column['name'] and "bboxSize" not in column['name']: + excluded_fields = ['validityStart', 'validityEnd', 'Periodic', 'max', 'min', + 'Science', 'Percentile', 'Max', 'Min', 'science', 'LowzGal', + 'MAD', 'Skew', 'Intercept', 'Slope', 'Stetson', 'lastNonForcedSource', + 'nDiaSources', 'ExtObj', 'Time', 'time_', 'isDipole', 'bboxSize'] + exclude = False + for excluded_field in excluded_fields: + if excluded_field in column['name']: + exclude = True + + if not exclude: if 'char' in column['datatype']: column['datatype'] = "string" # Check if a column is nullable. If it is, it needs a default. @@ -90,30 +84,30 @@ def populate_fields(apdb): if column['nullable'] is False: # Check if a column has a description, if so, include "doc" if 'description' in column: - field = {"name": column['name'], - "type": column["datatype"], - "doc": column["description"]} + field = {'name': column['name'], + 'type': column['datatype'], + 'doc': column['description']} field_dictionary_array.append(field) else: - field = {"name": column['name'], - "type": column["datatype"], "doc": ""} + field = {'name': column['name'], + 'type': column['datatype'], 'doc': ''} field_dictionary_array.append(field) else: # nullable == True if 'description' in column: - field = {"name": column['name'], - "type": ["null", str(column["datatype"])], - "doc": column["description"], "default": None} + field = {'name': column['name'], + 'type': ['null', str(column['datatype'])], + 'doc': column['description'], 'default': None} field_dictionary_array.append(field) else: - field = {"name": column['name'], - "type": ["null", str(column["datatype"])], - "doc": "", "default": None} + field = {'name': column['name'], + 'type': ['null', str(column['datatype'])], + 'doc': '', 'default': None} field_dictionary_array.append(field) else: # nullable not in columns (nullable == True) if 'description' in column: - field = {"name": column['name'], - "type": ["null", str(column["datatype"])], - "doc": column["description"], "default": None} + field = {'name': column['name'], + 'type': ['null', str(column['datatype'])], + 'doc': column['description'], 'default': None} field_dictionary_array.append(field) else: field = {"name": column['name'], @@ -125,21 +119,21 @@ def populate_fields(apdb): def create_schema(name, field_dictionary_array, version): - """ Create a schema using the field dictionary. fastavro will automatically + """ Create a schema using a field dictionary. fastavro will automatically take the name and namespace and put them as one, so the name should just be the schema name and the namespace needs to be created separately. The fastavro keys also need to be removed from the schema. - Parameters + Parameters ---------- name: `string` - The name of the schema as a string. E.G. diaSource. + The name of the schema as a string. (e.g., `'diaSource'`). field_dictionary_array: 'np.array' An array containing dictionary entries for the individual fields. version: 'string' - The version number of the schema + The version number of the schema. """ name = name[0:2].lower() + name[2:] schema = fastavro.parse_schema({ @@ -159,60 +153,60 @@ def create_schema(name, field_dictionary_array, version): return schema -def update_schema(apdb_filepath, update_version=None): - """Compare an avro schemas docstrings with the apdb.yaml file. - - If there are no docstrings, add the field. If the docstrings do - not match, update the schema docstrings to the apdb docstrings. +def generate_schema(apdb_filepath, schema_path, schema_version): + """Generate avro schemas using an apdb.yaml file. - Once it is updated, write out the new schema. + Using a provided path to the apdb.yaml file and schema folder, + generate a new schema, using a provided version number. Parameters ---------- apdb_filepath: `string` - Input string for the apdb.yaml file where the docstrings - will be compared. + Input path to the apdb.yaml file which contains the information + used to generate the new schemas. + Example: path/to/sdm_schemas/yml/apdb.yaml + + schema_path: `string` + Input path to the schema folder where the new schemas will + be added. + Example: /path/to/alert_packet/python/lsst/alert/packet/schema - update_version: 'string' - If a string is included, update schema to provided version. + schema_version: 'string' + Provide the version number of the schema as a string. Example: "5.1" """ - registry = SchemaRegistry.from_filesystem() + path = os.path.join(schema_path, *schema_version.split(".")) - for version in registry.known_versions: - schema_root = get_schema_root() - path = os.path.join(schema_root, *version.split(".")) + with open(apdb_filepath, 'r') as file: + apdb = yaml.safe_load(file) - with open(apdb_filepath, 'r') as file: - apdb = yaml.safe_load(file) - - if update_version: - version_name = update_version.split(".")[0] + "_" + update_version.split(".")[1] - else: - version_name = version.split(".")[0] + "_" + version.split(".")[1] + version_name = schema_version.split(".")[0] + "_" + schema_version.split(".")[1] - # The first 4 columns in the apdb are the ones we use for alerts - for x in range(0, 4): + table_names = ['DiaForcedSource', 'DiaObject', 'DiaSource', 'SSObject'] + for name in table_names: - name = apdb['tables'][x]['name'] - field_dictionary = populate_fields(apdb['tables'][x]) - schema = create_schema(name, field_dictionary, version_name) + for table in apdb['tables']: + if name in table['name']: + field_dictionary = populate_fields(table) + schema = create_schema(name, field_dictionary, version_name) - write_schema(schema, version_name, path) + write_schema(schema, path) if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Update the schema docstrings so that they' - 'match the docstrings in apdb.yaml and include the ' - 'desired version number. Example input:' + parser = argparse.ArgumentParser(description='Generate a schema using an apdb.yaml as the source' + 'of truth andinclude a desired version number' + 'Example input:' 'python3 updateSchema.py ' - '"Path/To/Yaml/sdm_schemas/yml/apdb.yaml" "6.0"') + 'Path/To/Yaml/sdm_schemas/yml/apdb.yaml ' + 'Path/To/alert_packet/lsst/alert/packet/schema "6.0"') parser.add_argument('apdb_filepath') - parser.add_argument('update_version') + parser.add_argument('schema_path') + parser.add_argument('schema_version') args = parser.parse_args() - update_schema(args.apdb_filepath, args.update_version) + generate_schema(args.apdb_filepath, args.schema_path, args.schema_version)