-
Notifications
You must be signed in to change notification settings - Fork 22
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
add first notices for svom/eclairs #126
Conversation
@timroland, something weird happened with this PR; you seem to have altered almost every file in the repository. |
He ran the steps for releasing a new version. We should probably clarify in the readme that this is not required for making PRs |
@dakota002, would you please help @timroland fix this? |
Ok that's done I deleted the commits that were problematic. Tell me if it is ok |
Co-authored-by: Leo Singer <[email protected]>
Co-authored-by: Leo Singer <[email protected]>
I had a question about the topics that will be created with the new schema I defined. Will it be the same than the naming of the example files (i.e. begins with "gcn.notices.svom.alert.*" where * is the notice type) ? |
No, it doesn't have to be exactly the same. You could create the Kafka topic |
@jracusin, @Vidushi-GitHub, would one of you please review this? |
gcn/notices/svom/alert.schema.json
Outdated
"$schema": true, | ||
"notice_level": { | ||
"enum": ["N1e", "N1g"], | ||
"description": "SVOM notice reference id." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Core Schema, we have "id" field in Event Schema, that should serve for instrument id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is not just a field specifying the instrument, but the type of notice produced. In the SVOM terminology N1 notices corresponds to the first notice (trigger notice) SVOM produces. N2 notices correspond to refined analysis and N3 notices to final parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah Ok! Both are N1 (first notices), what are 'e' and 'g'? Better description is required for users.
Record_number field from Reporter.schema.json might be useful if multiple triggers are expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed "e" and "g" stand for the instrument... I will update the description
gcn/notices/svom/alert.schema.json
Outdated
"description": "Spacecraft slew status" | ||
}, | ||
"trigger_type": { | ||
"enum": ["count_rate", "image"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is specifying if it's a rate or image trigger (just like Swift-BAT), not the count rate itself. We have info in gcn.notices.core.statistics on rate and image SNR, duration, energy range. I'd rather we add an enum to core.statistics with which type of trigger it is ["rate","image"] since it would be applicable to both BAT and SVOM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right. It is specifying if its a rate or image trigger... I just thought it was clearer to specify "count_rate" instead of just "rate", but if it is a standard, I will modify.
However, even if the ECLAIRs trigger is a rate trigger, the SNR and other info are based on the image it produces on the sky, so we still have image_snr, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just submitted PR #135 to add "trigger_type" to the core statistics schema. @Vidushi-GitHub, please review. Once that's merged in, it can be used from core here. We will also have to do a minor version release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timroland please use core.statistics.trigger_type
@timroland As a gentle reminder, please make the following changes:
Thanks |
Hi, sorry for the late reply... I updated the schema. I remove the notice_level parameter as it is in fact just an alias of the schema in the SVOM nomenclature (N1 are "trigger" notices and the letter stands for the instrument, it will appear in the documentation). |
Hi, no worries. Thanks for the corrections. Nice catch. While it may not be an issue for the archive in future, but consumers can easily get confused with localization (ra, dec), will come up with a better solution. |
Hi Tim (@timroland), thanks for the suggestion, we have recently updated the pointing schema to avoid the confusion of the same (ra, dec) pairs in localization as well. Please update the schema accordingly for renamed properties: (ra_pointing, dec_pointing), in the updated pointing schema. |
{ "$ref": "../core/Localization.schema.json" }, | ||
{ "$ref": "../core/Reporter.schema.json" }, | ||
{ "$ref": "../core/Statistics.schema.json" }, | ||
{ "$ref": "../core/Pointing.schema.json" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @timroland, could you please tell us where you have used the Pointing Schema in examples? I was going through the examples, and all of them have (ra, dec, ra_dec_error), these parameters together should be used for the Localization schema. Is at any place are you using Pointing Schema?
It seems this branch is complete and quite old. I double-checked it, and it validates. |
Here are the first 2 notices example of the SVOM/ECLAIRs alerts, with the associated "alert" schema.