Skip to content

Commit

Permalink
Migrate to v7.0 schema.
Browse files Browse the repository at this point in the history
Changes ccdVisitId to visit, detector.
  • Loading branch information
ebellm authored and parejkoj committed May 3, 2024
1 parent 237b4f6 commit c85fe66
Show file tree
Hide file tree
Showing 15 changed files with 2,396 additions and 6 deletions.
24 changes: 24 additions & 0 deletions python/lsst/alert/packet/schema/7/0/lsst.v7_0.alert.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "lsst.v7_0",
"type": "record",
"name": "alert",
"doc": "Rubin Avro alert schema v7.0",
"fields": [
{"name": "alertId", "type": "long", "doc": "unique alert identifer"},
{"name": "diaSource", "type": "lsst.v7_0.diaSource"},
{"name": "prvDiaSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_0.diaSource"}], "default": null},
{"name": "prvDiaForcedSources", "type": ["null", {
"type": "array",
"items": "lsst.v7_0.diaForcedSource"}], "default": null},
{"name": "prvDiaNondetectionLimits", "type": ["null", {
"type": "array",
"items": "lsst.v7_0.diaNondetectionLimit"}], "default": null},
{"name": "diaObject", "type": ["null", "lsst.v7_0.diaObject"], "default": null},
{"name": "ssObject", "type": ["null", "lsst.v7_0.ssObject"], "default": null},
{"name": "cutoutDifference", "type": ["null", "bytes"], "default": null},
{"name": "cutoutScience", "type": ["null", "bytes"], "default": null},
{"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null}
]
}
86 changes: 86 additions & 0 deletions python/lsst/alert/packet/schema/7/0/lsst.v7_0.diaForcedSource.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"type": "record",
"namespace": "lsst.v7_0",
"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": "Id of the visit where this forcedSource was measured.",
"name": "visit",
"type": "long"
},
{
"doc": "Id of the detector where this forcedSource was measured.",
"name": "detector",
"type": "int"
},
{
"default": null,
"doc": "Point Source model flux.",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of psfFlux.",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "x position at which psfFlux has been measured.",
"name": "x",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "y position at which psfFlux has been measured.",
"name": "y",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Flags, bitwise OR tbd",
"name": "flags",
"type": [
"null",
"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"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "lsst.v7_0",
"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 c85fe66

Please sign in to comment.