-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from lsst/tickets/DM-41530
DM-41530: Add individual flag fields to APDB schema
- Loading branch information
Showing
18 changed files
with
2,667 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
] | ||
} |
77 changes: 77 additions & 0 deletions
77
python/lsst/alert/packet/schema/7/0/lsst.v7_0.diaForcedSource.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"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" | ||
] | ||
}, | ||
{ | ||
"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" | ||
] | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
python/lsst/alert/packet/schema/7/0/lsst.v7_0.diaNondetectionLimit.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
] | ||
} |
Oops, something went wrong.