-
Notifications
You must be signed in to change notification settings - Fork 4
DM-50837: Schema Update for First Alerts #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
115 changes: 115 additions & 0 deletions
115
python/lsst/alert/packet/schema/8/0/lsst.v8_0.MPCORB.avsc
This file contains hidden or 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,115 @@ | ||
| { | ||
| "type": "record", | ||
| "namespace": "lsst.v8_0", | ||
| "name": "MPCORB", | ||
| "fields": [ | ||
| { | ||
| "default": null, | ||
| "doc": "Number or provisional designation (in packed form).", | ||
| "name": "mpcDesignation", | ||
| "type": [ | ||
| "null", | ||
| "string" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "LSST unique identifier (if observed by LSST).", | ||
| "name": "ssObjectId", | ||
| "type": [ | ||
| "null", | ||
| "long" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Absolute magnitude, H [mag].", | ||
| "name": "mpcH", | ||
| "type": [ | ||
| "null", | ||
| "float" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Epoch (in MJD, .0 TT) [d].", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While I think it's true that the epoch mod 1 is always .0, I don't think we need to specify that for a double.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm going to defer this for now. |
||
| "name": "epoch", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Mean anomaly at the epoch [deg].", | ||
| "name": "M", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Argument of perihelion, J2000.0 [deg].", | ||
| "name": "peri", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Longitude of the ascending node, J2000.0 [deg].", | ||
| "name": "node", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Inclination to the ecliptic, J2000.0 [deg].", | ||
| "name": "incl", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Orbital eccentricity.", | ||
| "name": "e", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Semimajor axis [AU].", | ||
| "name": "a", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "Perihelion distance [AU].", | ||
| "name": "q", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| }, | ||
| { | ||
| "default": null, | ||
| "doc": "MJD of pericentric passage [d].", | ||
| "name": "t_p", | ||
| "type": [ | ||
| "null", | ||
| "double" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or 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.v8_0", | ||
| "type": "record", | ||
| "name": "alert", | ||
| "doc": "Rubin Avro alert schema v8.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.v8_0.diaSource"}, | ||
| {"name": "prvDiaSources", "type": ["null", { | ||
| "type": "array", | ||
| "items": "lsst.v8_0.diaSource"}], "default": null}, | ||
| {"name": "prvDiaForcedSources", "type": ["null", { | ||
| "type": "array", | ||
| "items": "lsst.v8_0.diaForcedSource"}], "default": null}, | ||
| {"name": "diaObject", "type": ["null", "lsst.v8_0.diaObject"], "default": null}, | ||
| {"name": "ssSource", "type": ["null", "lsst.v8_0.ssSource"], "default": null}, | ||
| {"name": "MPCORB", "type": ["null", "lsst.v8_0.MPCORB"], "default": null}, | ||
| {"name": "cutoutDifference", "type": ["null", "bytes"], "default": null}, | ||
| {"name": "cutoutScience", "type": ["null", "bytes"], "default": null}, | ||
| {"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null} | ||
| ] | ||
| } |
95 changes: 95 additions & 0 deletions
95
python/lsst/alert/packet/schema/8/0/lsst.v8_0.diaForcedSource.avsc
This file contains hidden or 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,95 @@ | ||
| { | ||
| "type": "record", | ||
| "namespace": "lsst.v8_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].", | ||
|
ebellm marked this conversation as resolved.
|
||
| "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.", | ||
| "name": "time_processed", | ||
| "type": { | ||
| "logicalType": "timestamp-micros", | ||
| "type": "long" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.