Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion python/lsst/alert/packet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@
from .schema import *
from .schemaRegistry import *
from .simulate import *
from .updateSchema import *

# updateSchema.py is optional and only needed for updating the schema version
# independently.
try:
from .updateSchema import *
except ModuleNotFoundError:
# During github testing lsst.pipe is not installed, so updateSchema
# needs to be optional.
pass
24 changes: 24 additions & 0 deletions python/lsst/alert/packet/schema/11/0/lsst.v11_0.alert.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "lsst.v11_0",
"type": "record",
"name": "alert",
"doc": "Rubin Avro alert schema v11.0",
"fields": [
{"name": "diaSourceId", "type": "long", "doc": "Identifier of the triggering DiaSource"},
{"name": "observation_reason", "type": ["null", "string"], "doc": "Scheduler reason for the image containing this diaSource (RTN-097).", "default": null},
{"name": "target_name", "type": ["null", "string"], "doc": "Scheduler target for the image containing this diaSource (RTN-097).", "default": null},
{"name": "diaSource", "type": "lsst.v11_0.diaSource"},
{"name": "prvDiaSources", "type": ["null", {
"type": "array",
"items": "lsst.v11_0.diaSource"}], "default": null},
{"name": "prvDiaForcedSources", "type": ["null", {
"type": "array",
"items": "lsst.v11_0.diaForcedSource"}], "default": null},
{"name": "diaObject", "type": ["null", "lsst.v11_0.diaObject"], "default": null},
{"name": "ssSource", "type": ["null", "lsst.v11_0.ssSource"], "default": null},
{"name": "mpc_orbits", "type": ["null", "lsst.v11_0.mpc_orbits"], "default": null},
{"name": "cutoutDifference", "type": ["null", "bytes"], "default": null},
{"name": "cutoutScience", "type": ["null", "bytes"], "default": null},
{"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null}
]
}
102 changes: 102 additions & 0 deletions python/lsst/alert/packet/schema/11/0/lsst.v11_0.diaForcedSource.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"type": "record",
"namespace": "lsst.v11_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": "Right ascension coordinate of the position of the DiaObject [deg].",
"name": "ra",
"type": "double"
},
{
"doc": "Declination coordinate of the position of the DiaObject [deg].",
"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 [nJy].",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of psfFlux [nJy].",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time [d].",
"name": "midpointMjdTai",
"type": "double"
},
{
"default": null,
"doc": "Forced photometry flux for a point source model measured on the visit image centered at the DiaObject position [nJy].",
"name": "scienceFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of scienceFlux [nJy].",
"name": "scienceFluxErr",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Filter band this source was observed with.",
"name": "band",
"type": [
"null",
"string"
]
},
{
"doc": "Time when this record was generated, expressed as Modified Julian Date, International Atomic Time.",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add units "[d]"

"name": "timeProcessedMjdTai",
"type": "double"
},
{
"default": null,
"doc": "Time when this record was marked invalid, expressed as Modified Julian Date, International Atomic Time.",
"name": "timeWithdrawnMjdTai",
"type": [
"null",
"double"
]
}
],
"confluent:version": 1100
}
Loading
Loading