From 3533f29dfa154b2d1e750e0fe41c028c00df94d3 Mon Sep 17 00:00:00 2001 From: Judith Racusin Date: Tue, 21 Nov 2023 10:49:39 -0500 Subject: [PATCH] initial BurstCube schema --- gcn/notices/burstcube/Alert.example.json | 31 ++++++++++++++++++ gcn/notices/burstcube/Alert.schema.json | 41 ++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 gcn/notices/burstcube/Alert.example.json create mode 100644 gcn/notices/burstcube/Alert.schema.json diff --git a/gcn/notices/burstcube/Alert.example.json b/gcn/notices/burstcube/Alert.example.json new file mode 100644 index 00000000..040b6302 --- /dev/null +++ b/gcn/notices/burstcube/Alert.example.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json", + "alert_datetime": "2024-06-01T00:05:00.00Z", + "alert_tense": "current", + "alert_type": "initial", + "mission": "BurstCube", + "record_number": 1, + "trigger_time": "2024-06-01T00:00:00.0Z", + "event_name": ["GRB240601A"], + "id": ["b240601000"], + "ra": 232.0, + "dec": -53.1, + "uncertainty_shape": "circle", + "ra_uncertainty": [-4.6, 6.1], + "dec_uncertainty": [-3.4, 5.6], + "systematic_included": false, + "healpix_url": "https://heasarc.gsfc.nasa.gov/burstcube/trigger/b240601000/current/b240601000_locmap.fits", + "healpix_file": "stuff", + "rate_snr": 7.2, + "rate_duration": 1.024, + "rate_energy_range": [50, 300], + "classification": { "GRB": 0.95, "SF": 0.03, "Local Particles": 0.02 }, + "t90": 2.3, + "t90_error": [0.1, 0.1], + "detector_status": { + "CsI0": "triggered", + "CsI1": "triggered", + "CsI2": "on", + "CsI3": "on" + } +} diff --git a/gcn/notices/burstcube/Alert.schema.json b/gcn/notices/burstcube/Alert.schema.json new file mode 100644 index 00000000..cc88f6b9 --- /dev/null +++ b/gcn/notices/burstcube/Alert.schema.json @@ -0,0 +1,41 @@ +{ + "$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Alert", + "description": "BurstCube Trigger Alert", + "type": "object", + "allOf": [ + { + "$ref": "../core/Alert.schema.json" + }, + { + "$ref": "../core/Reporter.schema.json" + }, + { + "$ref": "../core/DateTime.schema.json" + }, + { + "$ref": "../core/Event.schema.json" + }, + { + "$ref": "../core/Localization.schema.json" + }, + { + "$ref": "../core/Statistics.schema.json" + }, + { + "$ref": "../core/Duration.schema.json" + } + ], + "properties": { + "detector_status": { + "type": "object", + "properties": { + "CsI0": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI1": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI2": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI3": { "$ref": "../core/DetectorStatus.schema.json" } + } + } + } +}