Skip to content

Commit

Permalink
Add ra and dec and remove x and y from diaForcedSource schema
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed May 29, 2024
1 parent 0b9251b commit 34003b4
Show file tree
Hide file tree
Showing 10 changed files with 2,638 additions and 1 deletion.
24 changes: 24 additions & 0 deletions python/lsst/alert/packet/schema/7/1/lsst.v7_1.alert.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "lsst.v7_1",
"type": "record",
"name": "alert",
"doc": "Rubin Avro alert schema v7.1",
"fields": [
{"name": "alertId", "type": "long", "doc": "unique alert identifer"},
{"name": "diaSource", "type": "lsst.v7_1.diaSource"},
{"name": "prvDiaSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_1.diaSource"}], "default": null},
{"name": "prvDiaForcedSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_1.diaForcedSource"}], "default": null},
{"name": "prvDiaNondetectionLimits", "type": ["null", {
"type": "array",
"items": "lsst.v7_1.diaNondetectionLimit"}], "default": null},
{"name": "diaObject", "type": ["null", "lsst.v7_1.diaObject"], "default": null},
{"name": "ssObject", "type": ["null", "lsst.v7_1.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/1/lsst.v7_1.diaForcedSource.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"type": "record",
"namespace": "lsst.v7_1",
"name": "diaForcedSource",
"fields": [
{
"doc": "Unique id.",
"name": "diaForcedSourceId",
"type": "long"
},
{
"doc": "Id of the DiaObject that this DiaForcedSource was associated with.",
"name": "diaObjectId",
"type": "long"
},
{
"doc": "Right ascension coordinate of the position of the object at time radecMjdTai.",
"name": "ra",
"type": "double"
},
{
"doc": "Declination coordinate of the position of the object at time radecMjdTai.",
"name": "dec",
"type": "double"
},
{
"doc": "Id of the visit where this forcedSource was measured.",
"name": "visit",
"type": "long"
},
{
"doc": "Id of the detector where this forcedSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.",
"name": "detector",
"type": "int"
},
{
"default": null,
"doc": "Point Source model flux.",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of psfFlux.",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time.",
"name": "midpointMjdTai",
"type": "double"
},
{
"default": null,
"doc": "Filter band this source was observed with.",
"name": "band",
"type": [
"null",
"string"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "lsst.v7_1",
"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 34003b4

Please sign in to comment.