Skip to content

Commit

Permalink
Update alert packet for renaming of dipole classification flags
Browse files Browse the repository at this point in the history
  • Loading branch information
abudlong committed Jan 13, 2025
1 parent dfe88ab commit 21ba58b
Show file tree
Hide file tree
Showing 11 changed files with 2,648 additions and 2 deletions.
24 changes: 24 additions & 0 deletions python/lsst/alert/packet/schema/7/2/lsst.v7_2.alert.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "lsst.v7_2",
"type": "record",
"name": "alert",
"doc": "Rubin Avro alert schema v7.2",
"fields": [
{"name": "alertId", "type": "long", "doc": "unique alert identifer"},
{"name": "diaSource", "type": "lsst.v7_2.diaSource"},
{"name": "prvDiaSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_2.diaSource"}], "default": null},
{"name": "prvDiaForcedSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_2.diaForcedSource"}], "default": null},
{"name": "prvDiaNondetectionLimits", "type": ["null", {
"type": "array",
"items": "lsst.v7_2.diaNondetectionLimit"}], "default": null},
{"name": "diaObject", "type": ["null", "lsst.v7_2.diaObject"], "default": null},
{"name": "ssObject", "type": ["null", "lsst.v7_2.ssObject"], "default": null},
{"name": "cutoutDifference", "type": ["null", "bytes"], "default": null},
{"name": "cutoutScience", "type": ["null", "bytes"], "default": null},
{"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null}
]
}
69 changes: 69 additions & 0 deletions python/lsst/alert/packet/schema/7/2/lsst.v7_2.diaForcedSource.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"type": "record",
"namespace": "lsst.v7_2",
"name": "diaForcedSource",
"fields": [
{
"doc": "Unique id.",
"name": "diaForcedSourceId",
"type": "long"
},
{
"doc": "Id of the DiaObject that this DiaForcedSource was associated with.",
"name": "diaObjectId",
"type": "long"
},
{
"doc": "Right ascension coordinate of the position of the DiaObject at time radecMjdTai.",
"name": "ra",
"type": "double"
},
{
"doc": "Declination coordinate of the position of the DiaObject at time radecMjdTai.",
"name": "dec",
"type": "double"
},
{
"doc": "Id of the visit where this forcedSource was measured.",
"name": "visit",
"type": "long"
},
{
"doc": "Id of the detector where this forcedSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.",
"name": "detector",
"type": "int"
},
{
"default": null,
"doc": "Point Source model flux.",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of psfFlux.",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.",
"name": "midpointMjdTai",
"type": "double"
},
{
"default": null,
"doc": "Filter band this source was observed with.",
"name": "band",
"type": [
"null",
"string"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "lsst.v7_2",
"name": "diaNondetectionLimit",
"type": "record",
"fields": [
{"name": "ccdVisitId", "type": "long"},
{"name": "midpointMjdTai", "type": "double"},
{"name": "band", "type": "string"},
{"name": "diaNoise", "type": "float"}
]
}
Loading

0 comments on commit 21ba58b

Please sign in to comment.