Skip to content

Commit

Permalink
Merge branch 'nasa-gcn:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
timroland authored May 27, 2024
2 parents d18745f + ed28ed2 commit 9930540
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 113 deletions.
2 changes: 1 addition & 1 deletion gcn/notices/burstcube/alert.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"record_number": 1,
"trigger_time": "2024-06-01T00:00:00.0Z",
"id": ["240601000"],
"ra": 232.0,
"ra": 232,
"dec": -53.1,
"ra_dec_error": 10,
"containment_probability": 0.9,
Expand Down
28 changes: 7 additions & 21 deletions gcn/notices/burstcube/alert.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,13 @@
"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"
}
{ "$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": {
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/burstcube/test.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"record_number": 1,
"trigger_time": "2024-06-01T00:00:00.0Z",
"id": ["240601000"],
"ra": 232.0,
"ra": 232,
"dec": -53.1,
"ra_dec_error": 10,
"containment_probability": 0.9,
Expand Down
28 changes: 7 additions & 21 deletions gcn/notices/burstcube/test.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,13 @@
"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"
}
{ "$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": {
Expand Down
4 changes: 1 addition & 3 deletions gcn/notices/core/Distance.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
},
"luminosity_distance_error": {
"type": "array",
"items": {
"type": "number"
},
"items": { "type": "number" },
"maxItems": 2,
"description": "Luminosity distance uncertainty [Mpc, 1-sigma], with optional asymmetric uncertainty"
}
Expand Down
8 changes: 2 additions & 6 deletions gcn/notices/core/Duration.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
},
"t90_error": {
"type": "array",
"items": {
"type": "number"
},
"items": { "type": "number" },
"maxItems": 2,
"description": "1-sigma uncertainty of the T90 duration [s], with asymmetric statistical errors taken into account"
},
Expand All @@ -22,9 +20,7 @@
},
"t50_error": {
"type": "array",
"items": {
"type": "number"
},
"items": { "type": "number" },
"maxItems": 2,
"description": "1-sigma uncertainty of the T50 duration [s], with asymmetric statistical errors taken into account"
}
Expand Down
8 changes: 2 additions & 6 deletions gcn/notices/core/Event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@
"properties": {
"event_name": {
"type": "array",
"items": {
"type": "string"
},
"items": { "type": "string" },
"description": "Name of the event (ex: GRB 170817A, GW170817, AT2017gfo, SSS 17a)"
},
"id": {
"type": "array",
"items": {
"oneOf": [{ "type": "string" }, { "type": "number" }]
},
"items": { "oneOf": [{ "type": "string" }, { "type": "number" }] },
"description": "Instrument-specific trigger ID (ex: bn230313485 (Fermi), 1159327 (Swift)) or alternate ID"
},
"data_archive_page": {
Expand Down
12 changes: 3 additions & 9 deletions gcn/notices/core/HardnessRatio.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,20 @@
},
"hardness_ratio_error": {
"type": "array",
"items": {
"type": "number"
},
"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"
},
"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"
},
"items": { "type": "number" },
"description": "Energy range [keV] used in hard band of hardness ratio",
"minItems": 2,
"maxItems": 2
Expand Down
4 changes: 1 addition & 3 deletions gcn/notices/core/Localization.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
},
{
"type": "array",
"items": {
"type": "number"
},
"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)."
Expand Down
4 changes: 1 addition & 3 deletions gcn/notices/core/Redshift.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
},
"redshift_error": {
"type": "array",
"items": {
"type": "number"
},
"items": { "type": "number" },
"maxItems": 2,
"description": "Error in redshift, array for asymmetric statistical errors"
},
Expand Down
4 changes: 1 addition & 3 deletions gcn/notices/core/Reporter.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"items": { "type": "string" },
"description": "Optional filter name, as used in optical observations"
}
}
Expand Down
8 changes: 2 additions & 6 deletions gcn/notices/core/Statistics.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
},
"rate_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
Expand All @@ -48,9 +46,7 @@
},
"image_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
Expand Down
24 changes: 6 additions & 18 deletions gcn/notices/core/spectral/GammaRay.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
},
"spectral_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
Expand All @@ -36,9 +34,7 @@
},
"hardness_ratio_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
Expand All @@ -61,18 +57,14 @@
},
"flux_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
},
"items": { "type": "number" },
"minItems": 2,
"maxItems": 2,
"description": "Start and stop time stamps in array as used in flux calculation, measured since trigger [s]"
Expand All @@ -84,18 +76,14 @@
},
"fluence_energy_range": {
"type": "array",
"items": {
"type": "number"
},
"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"
},
"items": { "type": "number" },
"minItems": 2,
"maxItems": 2,
"description": "Start and stop time stamps in array as used in fluence calculation, measured since trigger [s]"
Expand Down
6 changes: 3 additions & 3 deletions gcn/notices/einstein_probe/wxt/alert.schema.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"ra": 120,
"dec": 40,
"ra_dec_error": 0.02,
"image_energy_range": [0.5, 4.0],
"net_count_rate": 1.0,
"image_snr": 1.0,
"image_energy_range": [0.5, 4],
"net_count_rate": 1,
"image_snr": 1,
"additional_info": "The net count rate is derived from an accumulated image (up to 20 min) in 0.5-4 keV, assuming a constant flux. However, it can be significantly lower than the actual count rate of a burst with a duration much shorter than 20 min."
}
13 changes: 13 additions & 0 deletions gcn/notices/heasarc/archive_alert.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/heasarc/archive_alert.schema.json",
"mission": "HEASARC",
"alert_datetime": "2022-05-04T00:00:00Z",
"alert_tense": "archival",
"alert_type": "initial",
"observation_start": "2022-02-21T16:12:23.000",
"data_archive_page": "https://heasarc.gsfc.nasa.gov/FTP/ixpe/data/obs/01/01001099/",
"obs_id": "01001099",
"target_name": "Crab",
"mission_page": "https://heasarc.gsfc.nasa.gov/docs/ixpe/",
"facility_name": "IXPE"
}
39 changes: 39 additions & 0 deletions gcn/notices/heasarc/archive_alert.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/heasarc/archive_alert.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "HEASARC - Data in Archive",
"description": "Data Archived at HEASARC",
"allOf": [
{
"$ref": "../core/Alert.schema.json"
},
{
"$ref": "../core/DateTime.schema.json"
},
{
"$ref": "../core/Event.schema.json"
},
{
"$ref": "../core/Reporter.schema.json"
}
],
"properties": {
"obs_id": {
"type": "string",
"description": "The observation identifier of the sequence. Also called the observation id, sequence number, and seqnum, it is a series of numerical digits, each signifying different aspects for the observation, such as AO year, proposal number, and target number. Each mission has their own specification for how the obsid is defined. Every observation by an observatory is identified by the obsid. The data set identified by the obsid contains the level one and level 2 data created by that mission's processing pipeline. [Fields to align with IVOA ObsCore]"
},
"target_name": {
"type": "string",
"description": "Name of the target object for the observation [IVOA ObsCore]"
},
"mission_page": {
"type": "string",
"description": "Web page of the creator mission at HEASARC"
},
"facility_name": {
"type": "string",
"description": "Name of the creator of the data [IVOA ObsCore]"
}
}
}
8 changes: 2 additions & 6 deletions gcn/notices/icecube/lvk_nu_track_search.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@
"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"
}
"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"
}
"items": { "type": "number" }
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nasa-gcn/schema",
"version": "3.0.0",
"version": "4.0.0",
"scripts": {
"prepare": "husky install",
"validate:prettier": "prettier --check .",
Expand Down

0 comments on commit 9930540

Please sign in to comment.