feat: add SNEWS2 coincidence alert schema#352
Conversation
4aeb4e8 to
b5c541d
Compare
…hema for Supernova Early Warning System 2.0 (SNEWS2)\ncoincidence tier alerts.\n\nFiles added:\n- gcn/notices/snews2/coincidence.schema.json\n- gcn/notices/snews2/coincidence.test_alert.example.json\n\nUpdates to address reviewer feedback:\n- Renamed schema_version to snews_schema_version to prevent JSON Schema conflicts.\n- Replaced detector_names array with a detector_status object referencing the core DetectorStatus schema.\n- Updated event_times_utc to directly reuse the core DateTime trigger_time property referencing ISO 8601 definitions.\n- Transitioned timezone offsets to standard Zulu time (Z).
b5c541d to
160e2ec
Compare
|
Key Changes: Schema Versioning: Renamed schema_version to snews_schema_version to completely eliminate any ambiguity with the standard JSON $schema keyword. Detector Status Enrichment: Replaced the simple detector_names string array with a detector_status object pattern mapping to DetectorStatus.schema.json via additionalProperties. This matches patterns established by missions like BurstCube and allows tracking whether detectors were triggered, on, or off. Core DateTime Referencing: Updated the event_times_utc array to explicitly use a JSON Pointer $ref to ../core/DateTime.schema.json#/properties/trigger_time. By doing this, we seamlessly inherit the core schema's documentation and standard ISO 8601 constraints without duplicating logic. |
|
Is there a formal scheme for naming these SNEWS events with an |
|
In the GCN Classic notices, you also had the number of neutrinos detected and event duration. It would be interesting to have the number of neutrinos per detector. |
|
Additionally, run |
We don't have neutrino counts in the coincidence tier. This information is reported in the timing tier, which is out of the scope of this initial effort. I expect our GCN schema will be extended to handle this information in future efforts. |
No there is no formal event name, just the uuid passed generated which is passed into the $id field in the schema. |
Fixed in latest update |
Summary
Adds the initial JSON schema for Supernova Early Warning System 2.0 (SNEWS2) coincidence tier alerts to the GCN schema repository.
Files Added
gcn/notices/snews2/coincidence.schema.json— JSON schema defining the SNEWS2 CoincidenceTier alert formatgcn/notices/snews2/coincidence.test_alert.example.json— Example payload conforming to the schemaSchema Design
The schema inherits from 5 GCN Core schemas using
allOf:core/Alert.schema.jsoncore/Event.schema.jsoncore/Reporter.schema.jsoncore/DateTime.schema.jsoncore/Statistics.schema.jsonSNEWS2-specific fields include:
snews2_tier— The SNEWS tier (CoincidenceTier only at this stage)detector_names— Array of contributing detector namesevent_times_utc— Array of neutrino arrival times per detectortier_data— Tier-specific payload (p_values, false_alarm_prob, etc.)Notes
CoincidenceTieralert type is published to GCN at this timenpm run test