diff --git a/DEPENDENCIES b/DEPENDENCIES index 128063f..08d5825 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -1,4 +1,5 @@ vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4 +nasa-gcn-4-0-0 https://github.com/nasa-gcn/gcn-schema v4.0.0 nasa-gcn-4-1-0 https://github.com/nasa-gcn/gcn-schema v4.1.0 nasa-gcn-4-2-0 https://github.com/nasa-gcn/gcn-schema v4.2.0 osv-schema-1-5-0 https://github.com/ossf/osv-schema v1.5.0 diff --git a/configuration.json b/configuration.json index dcbb495..0817bba 100644 --- a/configuration.json +++ b/configuration.json @@ -67,6 +67,10 @@ "base": "https://gcn.nasa.gov/schema/v4.1.0/gcn", "path": "./vendor/nasa-gcn-4-1-0" }, + "nasa/gcn/v4.0.0": { + "base": "https://gcn.nasa.gov/schema/v4.0.0/gcn", + "path": "./vendor/nasa-gcn-4-0-0" + }, "ossf/osv/v1.6.7": { "base": "https://raw.githubusercontent.com/ossf/osv-schema/main/validation", "path": "./vendor/osv-schema-1-6-7" diff --git a/vendor/nasa-gcn-4-0-0.mask b/vendor/nasa-gcn-4-0-0.mask new file mode 100644 index 0000000..aa3f8ba --- /dev/null +++ b/vendor/nasa-gcn-4-0-0.mask @@ -0,0 +1,31 @@ +.husky/ +.npmrc +index.js +package-lock.json +package.json +README.md +update-tags.mjs +validate.mjs +gcn/notices/glowbug/Alert.example.json +gcn/notices/core/Reporter.example.json +gcn/notices/core/Statistics.example.json +gcn/notices/core/Localization.example.json +gcn/notices/core/Pointing.example.json +gcn/notices/burstcube/test.example.json +gcn/notices/burstcube/alert.example.json +gcn/notices/heasarc/archive_alert.example.json +gcn/notices/swift/bat/guano.loc_map.example.json +gcn/notices/swift/bat/Guano.example.json +gcn/notices/swift/bat/Guano.Retraction.example.json +gcn/notices/swift/bat/guano.loc_arc_min.example.json +gcn/notices/icecube/test/gold_bronze_track_alerts.example.json +gcn/notices/icecube/test/gold_bronze.update.example.json +gcn/notices/icecube/lvk_nu_track_search.example.json +gcn/notices/einstein_probe/wxt/alert.example.json +gcn/notices/svom/eclairs/trigger.catalog.example.json +gcn/notices/svom/eclairs/trigger.slewing.example.json +gcn/notices/svom/eclairs/trigger.not-slewing.example.json +gcn/notices/svom/eclairs/trigger.wakeup.example.json +gcn/notices/svom/grm/trigger.example.json +gcn/circulars.example.json +gcn/notices/einstein_probe/wxt/alert.schema.example.json diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/alert.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/alert.schema.json new file mode 100644 index 0000000..4f6d2ea --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/alert.schema.json @@ -0,0 +1,27 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/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" } + } + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/test.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/test.schema.json new file mode 100644 index 0000000..647f74a --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/burstcube/test.schema.json @@ -0,0 +1,27 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/burstcube/test.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" } + } + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/AdditionalInfo.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/AdditionalInfo.schema.json new file mode 100644 index 0000000..cae200a --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/AdditionalInfo.schema.json @@ -0,0 +1,13 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/AdditionalInfo.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Comments", + "description": "Comments that are not summarized elsewhere in schema", + "properties": { + "additional_info": { + "type": "string", + "description": "Additional information about the event" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Alert.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Alert.schema.json new file mode 100644 index 0000000..a413778 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Alert.schema.json @@ -0,0 +1,28 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Alert.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Alert", + "description": "Alert Information description properties of this notice", + "type": "object", + "properties": { + "alert_datetime": { + "type": "string", + "description": "Date and time of notice creation [UTC, ISO 8601], ex YYYY-MM-DDTHH:MM:SS.ssssssZ" + }, + "alert_tense": { + "enum": [ + "current", + "archival", + "planned", + "injection", + "commanded", + "test" + ], + "description": "Indication of whether this alert refers to a recent observation (current), re-analysis of archival data (archival), a planned observation in the future (planned), a signal injection (injection), commanded trigger (commanded) or a test trigger (test)." + }, + "alert_type": { + "enum": ["initial", "update", "retraction"], + "description": "Indication of alert sequence if multiple of same type sent" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/DateTime.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/DateTime.schema.json new file mode 100644 index 0000000..c8b175e --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/DateTime.schema.json @@ -0,0 +1,25 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/DateTime.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "DateTime", + "description": "Time descriptions of transient event and observation", + "type": "object", + "properties": { + "trigger_time": { + "type": "string", + "description": "Time of the trigger [ISO 8601], ex YYYY-MM-DDTHH:MM:SS.ssssssZ" + }, + "observation_start": { + "type": "string", + "description": "Start time of the observation [ISO 8601]" + }, + "observation_stop": { + "type": "string", + "description": "Stop time of the observation [ISO 8601]" + }, + "observation_livetime": { + "type": "number", + "description": "Livetime of the observation [s]" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/DetectorStatus.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/DetectorStatus.schema.json new file mode 100644 index 0000000..b0e2268 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/DetectorStatus.schema.json @@ -0,0 +1,7 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/DetectorStatus.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "DetectorStatus", + "enum": ["on", "off", "triggered"], + "description": "Status of a specified detector at the time of the alert" +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Distance.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Distance.schema.json new file mode 100644 index 0000000..1603509 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Distance.schema.json @@ -0,0 +1,19 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Distance.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Distance", + "description": "Luminosity Distance", + "properties": { + "luminosity_distance": { + "type": "number", + "description": "Luminosity distance [Mpc]" + }, + "luminosity_distance_error": { + "type": "array", + "items": { "type": "number" }, + "maxItems": 2, + "description": "Luminosity distance uncertainty [Mpc, 1-sigma], with optional asymmetric uncertainty" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Duration.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Duration.schema.json new file mode 100644 index 0000000..10972fc --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Duration.schema.json @@ -0,0 +1,28 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Duration.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Duration", + "properties": { + "t90": { + "type": "number", + "description": "Time duration of central 90% of integrated fluence [s]" + }, + "t90_error": { + "type": "array", + "items": { "type": "number" }, + "maxItems": 2, + "description": "1-sigma uncertainty of the T90 duration [s], with asymmetric statistical errors taken into account" + }, + "t50": { + "type": "number", + "description": "Time duration of central 50% of integrated fluence [s]" + }, + "t50_error": { + "type": "array", + "items": { "type": "number" }, + "maxItems": 2, + "description": "1-sigma uncertainty of the T50 duration [s], with asymmetric statistical errors taken into account" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Event.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Event.schema.json new file mode 100644 index 0000000..19b2244 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Event.schema.json @@ -0,0 +1,23 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Event.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Event Information", + "description": "Name or names of the event", + "properties": { + "event_name": { + "type": "array", + "items": { "type": "string" }, + "description": "Name of the event (ex: GRB 170817A, GW170817, AT2017gfo, SSS 17a)" + }, + "id": { + "type": "array", + "items": { "oneOf": [{ "type": "string" }, { "type": "number" }] }, + "description": "Instrument-specific trigger ID (ex: bn230313485 (Fermi), 1159327 (Swift)) or alternate ID" + }, + "data_archive_page": { + "type": "string", + "description": "URL of archived data files" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/FollowUp.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/FollowUp.schema.json new file mode 100644 index 0000000..c78c755 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/FollowUp.schema.json @@ -0,0 +1,26 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/FollowUp.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "FollowUp", + "description": "Schema specific to follow-up cases", + "type": "object", + "properties": { + "ref_type": { + "type": "string", + "description": "Type of the event detected, ex. GRB, GW, neutrino" + }, + "ref_instrument": { + "type": "string", + "description": "Name of the reference mission or, instrument, ex. Fermi-GBM" + }, + "ref_ID": { + "type": "string", + "description": "Trigger ID as reported by the reference instrument, ex. bnYYMMDDFF" + }, + "reference": { + "type": "object", + "additionalProperties": { "type": ["number", "string"] }, + "description": "Reference as distributed by the notices or circulars or ATel, ex. gcn circulars: 12345, gcn.notices.LVK.alert: SYYMMDDak-2-preliminary. " + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/HardnessRatio.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/HardnessRatio.schema.json new file mode 100644 index 0000000..8ae7f4e --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/HardnessRatio.schema.json @@ -0,0 +1,33 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/HardnessRatio.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "HardnessRatio", + "description": "Hardness Ratio parameterization", + "properties": { + "hardness_ratio": { + "type": "number", + "description": "ratio of flux between high and low energy bands" + }, + "hardness_ratio_error": { + "type": "array", + "items": { "type": "number" }, + "maxItems": 2, + "description": "ratio of flux between high and low energy bands, with asymmetric statistical errors taken into account" + }, + "energy_range_soft": { + "type": "array", + "items": { "type": "number" }, + "description": "Energy range [keV] used in soft band of hardness ratio", + "minItems": 2, + "maxItems": 2 + }, + "energy_range_hard": { + "type": "array", + "items": { "type": "number" }, + "description": "Energy range [keV] used in hard band of hardness ratio", + "minItems": 2, + "maxItems": 2 + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Localization.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Localization.schema.json new file mode 100644 index 0000000..036917d --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Localization.schema.json @@ -0,0 +1,64 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Localization.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Localization", + "description": "Localization of transient", + "properties": { + "ra": { + "type": "number", + "description": "ICRS right ascension [deg], utilizes the J2000 epoch and an equatorial coordinate system" + }, + "dec": { + "type": "number", + "description": "ICRS declination [deg], utilizes the J2000 epoch and an equatorial coordinate system" + }, + "ra_dec_error": { + "anyOf": [ + { + "type": "number", + "description": "Uncertainty region described as a circle with a radius [deg]." + }, + { + "type": "array", + "items": { "type": "number" }, + "minItems": 1, + "maxItems": 3, + "description": "An array of up to three values that describe the localization region as an ellipse: length of the semi-major axis, length of the semi-minor axis (default is the same as the semi-major axis), and astronomical position angle of the semi-major axis (measured from North through East, default is zero)." + } + ] + }, + "containment_probability": { + "type": "number", + "description": "Containment probability [dimensionless, 0-1]; if absent, default is 0.9", + "default": 0.9 + }, + "systematic_included": { + "type": "boolean", + "description": "Contains true when the systematic error is included and false when the systematic error is not included", + "default": false + }, + "instrument_phi": { + "type": "number", + "description": "Instrument phi [deg]" + }, + "instrument_theta": { + "type": "number", + "description": "Instrument theta [deg]" + }, + "instrument_semimajor_angle": { + "type": "number", + "description": "Position angle of semi-major axis in instrument coordinates [deg]" + }, + "healpix_url": { + "type": "string", + "description": "URL of HEALPix localization probability file" + }, + "healpix_file": { + "type": "string", + "contentEncoding": "base64", + "contentMediaType": "image/fits", + "description": "Base 64 encoded content of a FITS file" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Orbit.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Orbit.schema.json new file mode 100755 index 0000000..bcb359e --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Orbit.schema.json @@ -0,0 +1,26 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/GeoLocBase.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Spacecraft Geolocation and McIlwain L", + "description": "Enables GCN providers to include spacecraft geolocation and McIlwain L-Parameter.", + "type": "object", + "properties": { + "latitude": { + "type": "number", + "description": "Geocentric latitude [deg]" + }, + "longitude": { + "type": "number", + "description": "Geocentric longitude [deg]" + }, + "altitude": { + "type": "number", + "description": "Distance from the surface of the Earth [km]." + }, + "mcilwain_l": { "type": "number", "description": "McIlwain L-parameter" }, + "geoloc_time": { + "type": "string", + "description": "Time [UTC, ISO 8601] of the geolocation and McIlwain L-parameter, if different than the trigger time." + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Pointing.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Pointing.schema.json new file mode 100644 index 0000000..93b14e1 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Pointing.schema.json @@ -0,0 +1,44 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Pointing.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Instrument Pointing", + "description": "Instrument pointing and rotational rates.", + "$comment": "Providers should $ref this schema directly but Attitudes.schema.json instead.", + "type": "object", + "properties": { + "ra": { + "type": "number", + "description": "RA pointing of the instrument Z axis" + }, + "dec": { + "type": "number", + "description": "Dec pointing of the instrument Z axis" + }, + "roll": { + "type": "number", + "description": "Roll [deg] of the instrument about its Z axis" + }, + "position_angle": { + "type": "number", + "description": "Rotation angle [deg] between the spacecraft X-Z plane and the plane defined by the spacecraft X-axis and celestial North" + }, + "attitude_quarternion": { + "type": "array", + "items": { "type": "number" }, + "minItems": 4, + "maxItems": 4, + "description": "Representing attitude state of a spacecraft, using four element vector [q1, q2, q3, q4], composed of a scalar and 3 element unit vector." + }, + "rotation_rate": { + "type": "array", + "items": { "type": "number" }, + "minItems": 3, + "maxItems": 3, + "description": "Rotational rate [rad/s] about the X, Y, and Z axes respectively" + }, + "time": { + "type": "string", + "description": "Time [UTC, ISO 8601] of this data, if different than the trigger time." + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Redshift.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Redshift.schema.json new file mode 100644 index 0000000..963e72d --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Redshift.schema.json @@ -0,0 +1,21 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Redshift.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Redshift", + "description": "Redshift measure of transient", + "properties": { + "redshift": { + "type": "number", + "description": "Displacement of spectral lines toward longer wavelengths [sigma]" + }, + "redshift_error": { + "type": "array", + "items": { "type": "number" }, + "maxItems": 2, + "description": "Error in redshift, array for asymmetric statistical errors" + }, + "redshift_measure": { "enum": ["spectroscopic", "photometric"] }, + "redshift_type": { "enum": ["emission", "absorption", "host"] } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Reporter.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Reporter.schema.json new file mode 100644 index 0000000..08fcd02 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Reporter.schema.json @@ -0,0 +1,42 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Reporter.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Reporter", + "description": "Alert Reporter instrument", + "type": "object", + "properties": { + "mission": { + "type": "string", + "description": "Name of Mission or Telescope reporting the event" + }, + "instrument": { + "type": "string", + "description": "Name of the Instrument reporting the event" + }, + "record_number": { + "type": "number", + "description": "Incremental number for messages from the instrument during a given trigger (ex: 1, 2, 3)" + }, + "messenger": { + "enum": ["EM", "GW", "Neutrino"], + "description": "Messenger of report; EM, GW or Neutrino" + }, + "spectrum": { + "enum": ["energy", "wavelength", "frequency"], + "description": "high-energy or optical or radio observations, if not parsed, then default band is energy", + "type": "string", + "default": "energy" + }, + "units": { + "enum": ["keV", "nm", "Hz"], + "description": "Units of band range, if not parsed, then default energy is keV", + "type": "string", + "default": "keV" + }, + "filter": { + "type": "array", + "items": { "type": "string" }, + "description": "Optional filter name, as used in optical observations" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/Statistics.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Statistics.schema.json new file mode 100644 index 0000000..aaa2d82 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/Statistics.schema.json @@ -0,0 +1,69 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Statistics.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Statistics", + "description": "statistical measures of source significance or classification", + "properties": { + "far": { + "type": "number", + "description": "False alarm rate: the rate of occurrence of non-astrophysical events that are of the same intensity or significance as the current event [Hz]" + }, + "trigger_type": { + "enum": ["rate", "image"], + "description": "Type of trigger algorithm used to identify the transient event." + }, + "net_count_rate": { + "type": "number", + "description": "Net count rate of the transient above the background [counts/s] over rate_duration and rate_energy_range. Do specify rate_duration and rate_energy_range with net_count_rate property." + }, + "backgound_count_rate": { + "type": "number", + "description": "Count rate of the background during the transient [counts/s] over same rate_duration and rate_energy_range used for net_count_rate." + }, + "rate_snr": { + "type": "number", + "description": "Rate signal to noise ratio [dimensionless]" + }, + "rate_duration": { + "type": "number", + "description": "Interval over rate signal to noise ratio calculation [s]" + }, + "rate_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used in rate signal to noise ratio calculation, if not parsed in Reporter.schema.json, default unit is keV" + }, + "image_snr": { + "type": "number", + "description": "Image signal to noise ratio [dimensionless]" + }, + "image_duration": { + "type": "number", + "description": "Interval over image signal to noise ratio calculation [s]" + }, + "image_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used in image signal to noise ratio calculation, if not parsed in Reporter.schema.json, default unit is keV" + }, + "p_astro": { + "type": "number", + "description": "Probability [dimensionless, 0-1] that source is of astrophysical origin" + }, + "classification": { + "type": "object", + "additionalProperties": { "type": "number" }, + "description": "Dictionary mapping mutually exclusive source classes to probabilities between 0 and 1, the sum of all values must be 1. e.g. ({'BNS', 0.9}, {'NSBH', 0.05}, {'BBH', 0.05})" + }, + "properties": { + "type": "object", + "additionalProperties": { "type": "number" }, + "description": "Dictionary of binary classifiers, each entry is between 0 and 1. e.g. ({'NS', 0.95}, {'REMNANT', 0.3})" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/GammaRay.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/GammaRay.schema.json new file mode 100644 index 0000000..9c1df42 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/GammaRay.schema.json @@ -0,0 +1,92 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/spectral/GammaRay.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "spectral.GammaRay", + "description": "Spectral properties from gamma-ray data", + "properties": { + "best_fit_model": { + "enum": ["POWERLAW", "CUTOFFPOWERLAW", "BAND"], + "description": "Name of model corresponding to best statistical fit of spectrum" + }, + "power_law": { + "$ref": "./models/PowerLaw.schema.json", + "description": "Fit parameters for PowerLaw model" + }, + "cutoff_power_law": { + "$ref": "./models/CutOffPowerLaw.schema.json", + "description": "Fit parameters for Cutoff PowerLaw model" + }, + "band": { + "$ref": "./models/Band.schema.json", + "description": "Fit parameters for Band model" + }, + "spectral_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used in spectral fit, if not parsed in Reporter.schema.json, default unit is keV" + }, + "hardness_ratio": { + "type": "number", + "description": "ratio of flux between high and low energy bands" + }, + "hardness_ratio_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used for hardness ratio, if not parsed in Reporter.schema.json, default unit is keV" + }, + "photon_flux": { + "type": "number", + "description": "Photon Flux [ph/cm2/s]" + }, + "photon_flux_error": { + "type": "number", + "description": "1-sigma uncertainty in Photon Flux [ph/cm2/s]" + }, + "energy_flux": { + "type": "number", + "description": "Energy Flux [erg/cm2/s]" + }, + "energy_flux_error": { + "type": "number", + "description": "1-sigma uncertainty in Energy Flux [erg/cm2/s]" + }, + "flux_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used in flux calculation, if not parsed in Reporter.schema.json, default unit is keV" + }, + "flux_time_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Start and stop time stamps in array as used in flux calculation, measured since trigger [s]" + }, + "fluence": { "type": "number", "description": "Fluence [erg/cm2]" }, + "fluence_error": { + "type": "number", + "description": "Fluence Error [erg/cm2]" + }, + "fluence_energy_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Low and High energy bounds used in fluence calculation, if not parsed in Reporter.schema.json, default unit is keV" + }, + "fluence_time_range": { + "type": "array", + "items": { "type": "number" }, + "minItems": 2, + "maxItems": 2, + "description": "Start and stop time stamps in array as used in fluence calculation, measured since trigger [s]" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/Band.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/Band.schema.json new file mode 100644 index 0000000..a0c48f9 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/Band.schema.json @@ -0,0 +1,42 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/spectral/models/Band.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "Band", + "description": "Spectral model Band smoothly broken powerlaw (Band et al. 1993)", + "properties": { + "amplitude": { + "type": "number", + "description": "amplitude of spectral model fit at pivot_energy [ph/cm2/s/keV]" + }, + "amplitude_error": { + "type": "number", + "description": "1-sigma uncertainty of amplitude [ph/cm2/s/keV]" + }, + "pivot_energy": { "type": "number", "description": "pivot energy [keV]" }, + "alpha": { + "type": "number", + "description": "power-law index of spectral model" + }, + "alpha_error": { + "type": "number", + "description": "1-sigma uncertainty of alpha" + }, + "epeak": { + "type": "number", + "description": "e-folding energy of exponential rolloff [keV]" + }, + "epeak_error": { + "type": "number", + "description": "1-sigma uncertainty of Epeak [keV]" + }, + "beta": { + "type": "number", + "description": "high-energy power-law index of Band parameterization" + }, + "beta_error": { + "type": "number", + "description": "1-sigma uncertainty of beta" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/CutOffPowerLaw.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/CutOffPowerLaw.schema.json new file mode 100644 index 0000000..9d143a7 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/CutOffPowerLaw.schema.json @@ -0,0 +1,34 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/spectral/models/CutOffPowerLaw.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "CutOffPowerLaw", + "description": "Spectral model known as comptonized or powerlaw with exponential cutoff amplitude*energy^{-alpha}*exp(-energy/beta)", + "properties": { + "amplitude": { + "type": "number", + "description": "amplitude of spectral model fit at pivot_energy [ph/cm2/s/keV]" + }, + "amplitude_error": { + "type": "number", + "description": "1-sigma uncertainty of amplitude [ph/cm2/s/keV]" + }, + "pivot_energy": { "type": "number", "description": "pivot energy [keV]" }, + "alpha": { + "type": "number", + "description": "power-law index of spectral model" + }, + "alpha_error": { + "type": "number", + "description": "1-sigma uncertainty of alpha" + }, + "epeak": { + "type": "number", + "description": "e-folding energy of exponential rolloff [keV]" + }, + "epeak_error": { + "type": "number", + "description": "1-sigma uncertainty of Epeak [keV]" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/PowerLaw.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/PowerLaw.schema.json new file mode 100644 index 0000000..7f51fdc --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/core/spectral/models/PowerLaw.schema.json @@ -0,0 +1,26 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/spectral/models/PowerLaw.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "PowerLaw", + "description": "Spectral model powerlaw with N(E)=amplitude*energy^{-alpha}", + "properties": { + "amplitude": { + "type": "number", + "description": "amplitude of spectral model fit at pivot_energy [ph/cm2/s/keV]" + }, + "amplitude_error": { + "type": "number", + "description": "1-sigma uncertainty of amplitude [ph/cm2/s/keV]" + }, + "pivot_energy": { "type": "number", "description": "pivot energy [keV]" }, + "alpha": { + "type": "number", + "description": "power-law index of spectral model" + }, + "alpha_error": { + "type": "number", + "description": "1-sigma uncertainty of alpha" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/einstein_probe/wxt/alert.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/einstein_probe/wxt/alert.schema.json new file mode 100644 index 0000000..ec3831c --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/einstein_probe/wxt/alert.schema.json @@ -0,0 +1,14 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/einstein_probe/wxt/alert.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "EP/WXT Alert", + "description": "Candidate X-ray transient reported from the EP/WXT on board trigger", + "type": "object", + "allOf": [ + { "$ref": "../../core/DateTime.schema.json" }, + { "$ref": "../../core/Localization.schema.json" }, + { "$ref": "../../core/Reporter.schema.json" }, + { "$ref": "../../core/Statistics.schema.json" }, + { "$ref": "../../core/AdditionalInfo.schema.json" } + ] +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/glowbug/Alert.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/glowbug/Alert.schema.json new file mode 100644 index 0000000..65ea4f2 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/glowbug/Alert.schema.json @@ -0,0 +1,52 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/glowbug/alert.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Glowbug Alert Notice", + "description": "Information about a Glowbug trigger. All fields optional; omitted if not available or not applicable.", + "type": "object", + "allOf": [ + { + "$ref": "../core/Reporter.schema.json", + "description": "mission=GLOWBUG" + }, + { + "$ref": "../core/AdditionalInfo.schema.json", + "description": "Complementary info in text form." + }, + { "$ref": "../core/Alert.schema.json" }, + { + "$ref": "../core/Event.schema.json", + "description": "event_id=[ 'BUGyymmdd.fff', seqnum ], where fff is in millidays with trailing zeros. id_source=GLOWBUG for both." + }, + { + "$ref": "../core/DateTime.schema.json", + "description": "Trigger_time with seconds fraction." + }, + { + "$ref": "../core/Statistics.schema.json", + "description": "rate_duration is the integration time (a.k.a. trigger time scale), over which the rate_snr was measured." + } + ], + "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" }, + "CsI4": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI5": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI6": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI7": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI8": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI9": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI10": { "$ref": "../core/DetectorStatus.schema.json" }, + "CsI11": { "$ref": "../core/DetectorStatus.schema.json" }, + "CLLB0": { "$ref": "../core/DetectorStatus.schema.json" }, + "CLLB1": { "$ref": "../core/DetectorStatus.schema.json" }, + "SSA": { "$ref": "../core/DetectorStatus.schema.json" } + } + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/lvk_nu_track_search.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/lvk_nu_track_search.schema.json new file mode 100644 index 0000000..8ac7451 --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/lvk_nu_track_search.schema.json @@ -0,0 +1,85 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/icecube/lvk_nu_track_search.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "IceCube LVK Alert Nu Track Search", + "description": "IceCube LVK Coincident Neutrino Track Search", + "allOf": [ + { + "$ref": "../core/Alert.schema.json", + "description": "Alert information (alert_datetime and alert_type) from LVK alert notices" + }, + { + "$ref": "../core/FollowUp.schema.json", + "description": "ID (ref_ID) of LVK alert notice" + }, + { "$ref": "../core/AdditionalInfo.schema.json" }, + { + "$ref": "../core/Reporter.schema.json", + "description": "Record/Sequence number of LVK alerts" + }, + { "$ref": "../core/DateTime.schema.json" } + ], + "properties": { + "pval_generic": { + "description": "P-value from generic transient search; consistency with background expectations [0-1]", + "type": ["number", "null"] + }, + "pval_bayesian": { + "description": "P-value from LLAMA Bayesian search; consistency with background expectations [0-1]", + "type": ["number", "null"] + }, + "n_events_coincident": { + "description": "Number of IceCube events in spatial and temporal coincidence with the GW map", + "type": "number" + }, + "coincident_events": { + "type": "array", + "description": "An array of summary of information for each coincident neutrino track event", + "items": { "$ref": "#/$defs/coincevent" } + }, + "most_probable_direction": { + "description": "Most likely source direction based on all coincident events and GW localizations", + "$ref": "../core/Localization.schema.json" + }, + "neutrino_flux_sensitivity_range": { + "description": "Time integrated flux sensitivity ranges assuming an E^-2 spectrum (E^2 dN/dE) within the GW map localization", + "$ref": "#/$defs/fluxlimits" + } + }, + "$defs": { + "fluxlimits": { + "type": "object", + "properties": { + "flux_sensitivity": { + "description": "Time integrated flux sensitivity range (min, max) [GeV cm^-2] assuming an E^-2 spectrum (E^2 dN/dE) found within the 90% region of GW map localization", + "type": "array", + "items": { "type": "number" } + }, + "sensitive_energy_range": { + "description": "Energy sensitivity range (lower, upper) [GeV] assuming an E^-2 spectrum (E^2 dN/dE)", + "type": "array", + "items": { "type": "number" } + } + } + }, + "coincevent": { + "type": "object", + "allOf": [{ "$ref": "../core/Localization.schema.json" }], + "properties": { + "event_dt": { + "description": "Time difference between LVK alert time and neutrino candidate [sec]", + "type": "number" + }, + "event_pval_generic": { + "description": "Per-event P-value from generic transient search; consistency with background expectations [0-1]", + "type": ["number", "null"] + }, + "event_pval_bayesian": { + "description": "Per-event P-value from LLAMA Bayesian search; consistency with background expectations [0-1]", + "type": ["number", "null"] + } + } + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/test/gold_bronze_track_alerts.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/test/gold_bronze_track_alerts.schema.json new file mode 100644 index 0000000..5acba2e --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/icecube/test/gold_bronze_track_alerts.schema.json @@ -0,0 +1,25 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/icecube/test/gold_bronze_track_alerts.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "IceCubeGoldAndBronzeTracks", + "description": "IceCube Astrotrack Gold And Bronze track alert events", + "allOf": [ + { "$ref": "../../core/AdditionalInfo.schema.json" }, + { "$ref": "../../core/Event.schema.json" }, + { "$ref": "../../core/Alert.schema.json" }, + { "$ref": "../../core/Localization.schema.json" }, + { "$ref": "../../core/DateTime.schema.json" }, + { "$ref": "../../core/Statistics.schema.json" } + ], + "properties": { + "nu_energy": { + "description": "Most probable neutrino energy [TeV] that would have produced an event", + "type": "number" + }, + "signalness": { + "description": "Probability [dn] that this is an astrophysical signal relative to backgrounds", + "type": "number" + } + } +} diff --git a/vendor/nasa-gcn-4-0-0/gcn/notices/swift/bat/Guano.schema.json b/vendor/nasa-gcn-4-0-0/gcn/notices/swift/bat/Guano.schema.json new file mode 100644 index 0000000..d18625f --- /dev/null +++ b/vendor/nasa-gcn-4-0-0/gcn/notices/swift/bat/Guano.schema.json @@ -0,0 +1,28 @@ +{ + "$id": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/swift/bat/guano.schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Swift/BAT-GUANO Alert", + "description": "Candidate gamma-ray transient reported from the BAT-GUANO targeted search", + "type": "object", + "allOf": [ + { "$ref": "../../core/Alert.schema.json" }, + { "$ref": "../../core/Event.schema.json" }, + { "$ref": "../../core/DateTime.schema.json" }, + { "$ref": "../../core/Localization.schema.json" }, + { "$ref": "../../core/Statistics.schema.json" }, + { "$ref": "../../core/Reporter.schema.json" }, + { "$ref": "../../core/AdditionalInfo.schema.json" } + ], + "properties": { + "$schema": true, + "follow_up_event": { + "type": "string", + "description": "Name or trigger time of the external trigger that launched the search." + }, + "follow_up_type": { + "type": "string", + "description": "Type of external trigger that launched the search, eg GW, neutrino, etc." + } + }, + "unevaluatedProperties": false +}