@nasa-gcn/schema 6.1.0 → 7.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +4 -0
- package/.github/workflows/publish.yml +28 -0
- package/.github/workflows/review.yml +1 -1
- package/.github/workflows/validate.yml +2 -2
- package/README.md +0 -1
- package/eslint.config.js +10 -0
- package/gcn/circulars.example.json +2 -1
- package/gcn/circulars.schema.json +6 -1
- package/gcn/notices/boom/alert.example.json +95 -0
- package/gcn/notices/boom/alert.schema.json +89 -0
- package/gcn/notices/burstcube/alert.example.json +1 -1
- package/gcn/notices/burstcube/alert.schema.json +1 -1
- package/gcn/notices/burstcube/test.example.json +1 -1
- package/gcn/notices/burstcube/test.schema.json +1 -1
- package/gcn/notices/chime/frb.detection.example.json +1 -1
- package/gcn/notices/chime/frb.retraction.example.json +4 -4
- package/gcn/notices/chime/frb.schema.json +1 -1
- package/gcn/notices/chime/frb.subsequent.example.json +1 -1
- package/gcn/notices/chime/frb.update.example.json +1 -1
- package/gcn/notices/core/AdditionalInfo.schema.json +1 -1
- package/gcn/notices/core/Alert.schema.json +1 -1
- package/gcn/notices/core/DateTime.schema.json +1 -1
- package/gcn/notices/core/DetectorStatus.schema.json +1 -1
- package/gcn/notices/core/DispersionMeasure.schema.json +1 -1
- package/gcn/notices/core/Distance.schema.json +1 -1
- package/gcn/notices/core/Duration.schema.json +1 -1
- package/gcn/notices/core/Event.schema.json +1 -1
- package/gcn/notices/core/FollowUp.schema.json +1 -1
- package/gcn/notices/core/GeoLocBase.schema.json +1 -1
- package/gcn/notices/core/HardnessRatio.schema.json +1 -1
- package/gcn/notices/core/Localization.example.json +1 -1
- package/gcn/notices/core/Localization.schema.json +1 -1
- package/gcn/notices/core/Photometry.schema.json +35 -0
- package/gcn/notices/core/Pointing.example.json +1 -1
- package/gcn/notices/core/Pointing.schema.json +1 -1
- package/gcn/notices/core/Redshift.schema.json +1 -1
- package/gcn/notices/core/Reporter.example.json +1 -1
- package/gcn/notices/core/Reporter.schema.json +1 -6
- package/gcn/notices/core/Spectral.example.json +27 -0
- package/gcn/notices/core/Spectral.schema.json +128 -0
- package/gcn/notices/core/Statistics.example.json +1 -1
- package/gcn/notices/core/Statistics.schema.json +2 -2
- package/gcn/notices/core/{spectral/models → models}/Band.schema.json +6 -2
- package/gcn/notices/core/{spectral/models/CutOffPowerLaw.schema.json → models/CutoffPowerLaw.schema.json} +9 -4
- package/gcn/notices/core/{spectral/models → models}/PowerLaw.schema.json +6 -2
- package/gcn/notices/dsa110/frb.detection.example.json +1 -1
- package/gcn/notices/dsa110/frb.retraction.example.json +1 -1
- package/gcn/notices/dsa110/frb.schema.json +1 -1
- package/gcn/notices/dsa110/frb.subsequent.example.json +1 -1
- package/gcn/notices/dsa110/frb.update.example.json +1 -1
- package/gcn/notices/einstein_probe/wxt/alert.example.json +1 -1
- package/gcn/notices/einstein_probe/wxt/alert.schema.json +1 -1
- package/gcn/notices/fermi/gbm/trigger.alert.example.json +1 -1
- package/gcn/notices/fermi/gbm/trigger.final.example.json +1 -1
- package/gcn/notices/fermi/gbm/trigger.flight1.example.json +3 -2
- package/gcn/notices/fermi/gbm/trigger.flight2.example.json +3 -2
- package/gcn/notices/fermi/gbm/trigger.flight3.example.json +3 -2
- package/gcn/notices/fermi/gbm/trigger.ground1.example.json +1 -1
- package/gcn/notices/fermi/gbm/trigger.ground2.example.json +1 -1
- package/gcn/notices/fermi/gbm/trigger.schema.json +2 -2
- package/gcn/notices/fermi/lat/flare.example.json +19 -0
- package/gcn/notices/fermi/lat/flare.schema.json +32 -0
- package/gcn/notices/glowbug/Alert.example.json +1 -1
- package/gcn/notices/glowbug/Alert.schema.json +1 -1
- package/gcn/notices/heasarc/archive_alert.example.json +1 -1
- package/gcn/notices/heasarc/archive_alert.schema.json +1 -1
- package/gcn/notices/icecube/lvk_nu_track_search.example.json +1 -1
- package/gcn/notices/icecube/lvk_nu_track_search.schema.json +1 -1
- package/gcn/notices/icecube/{single_neutrino_alerts.example.json → single_neutrino_alerts.gold_bronze_track_alerts.example.json} +2 -2
- package/gcn/notices/icecube/single_neutrino_alerts.schema.json +1 -1
- package/gcn/notices/km3net/alert.example.json +1 -1
- package/gcn/notices/km3net/alert.multiplet.example.json +1 -1
- package/gcn/notices/km3net/alert.schema.json +1 -1
- package/gcn/notices/maxi/gsc.known.example.json +25 -0
- package/gcn/notices/maxi/gsc.known.retraction.example.json +12 -0
- package/gcn/notices/maxi/gsc.known.schema.json +62 -0
- package/gcn/notices/maxi/gsc.unknown.circle.example.json +25 -0
- package/gcn/notices/maxi/gsc.unknown.ellipse.example.json +25 -0
- package/gcn/notices/maxi/gsc.unknown.noerror.example.json +22 -0
- package/gcn/notices/maxi/gsc.unknown.rectangle.example.json +30 -0
- package/gcn/notices/maxi/gsc.unknown.retraction.example.json +12 -0
- package/gcn/notices/maxi/gsc.unknown.schema.json +53 -0
- package/gcn/notices/neutrino/Alert.schema.json +1 -1
- package/gcn/notices/superk/sn_alert.real.example.json +1 -1
- package/gcn/notices/superk/sn_alert.schema.json +1 -1
- package/gcn/notices/superk/sn_alert.test.example.json +1 -1
- package/gcn/notices/svom/eclairs/trigger.catalog.example.json +1 -1
- package/gcn/notices/svom/eclairs/trigger.not-slewing.example.json +1 -1
- package/gcn/notices/svom/eclairs/trigger.slewing.example.json +1 -1
- package/gcn/notices/svom/eclairs/trigger.wakeup.example.json +1 -1
- package/gcn/notices/svom/grm/trigger.example.json +1 -1
- package/gcn/notices/svom/trigger.schema.json +1 -1
- package/gcn/notices/swift/bat/Guano.Retraction.example.json +1 -1
- package/gcn/notices/swift/bat/Guano.example.json +1 -1
- package/gcn/notices/swift/bat/Guano.schema.json +1 -1
- package/gcn/notices/swift/bat/guano.loc_arc_min.example.json +1 -1
- package/gcn/notices/swift/bat/guano.loc_map.example.json +1 -1
- package/package.json +8 -7
- package/update-tags.mjs +1 -1
- package/.github/workflows/release.yml +0 -27
- package/gcn/notices/core/spectral/GammaRay.schema.json +0 -92
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.known.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"unevaluatedProperties": false,
|
|
6
|
+
"title": "MAXI/GSC Known Source Position",
|
|
7
|
+
"description": "MAXI/GSC known-source detection notice.",
|
|
8
|
+
"allOf": [
|
|
9
|
+
{ "$ref": "../core/Alert.schema.json" },
|
|
10
|
+
{ "$ref": "../core/DateTime.schema.json" },
|
|
11
|
+
{ "$ref": "../core/Event.schema.json" },
|
|
12
|
+
{ "$ref": "../core/GeoLocBase.schema.json" },
|
|
13
|
+
{ "$ref": "../core/Localization.schema.json" },
|
|
14
|
+
{ "$ref": "../core/Reporter.schema.json" },
|
|
15
|
+
{ "$ref": "../core/Statistics.schema.json" },
|
|
16
|
+
{ "$ref": "../core/AdditionalInfo.schema.json" },
|
|
17
|
+
{ "$ref": "../core/Spectral.schema.json" }
|
|
18
|
+
],
|
|
19
|
+
"required": ["mission", "alert_datetime"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"$schema": { "type": "string", "format": "uri" },
|
|
22
|
+
"flux": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"description": "Representative X-ray flux of the source in the most significant energy band specified by flux_spectral_band and flux_spectral_unit [erg/cm^2/s]."
|
|
25
|
+
},
|
|
26
|
+
"flux_error": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"description": "1-sigma statistical uncertainty on flux [erg/cm^2/s]."
|
|
29
|
+
},
|
|
30
|
+
"detection_timescale": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"description": "Detection time scale of the source; unit specified by detection_timescale_units."
|
|
33
|
+
},
|
|
34
|
+
"detection_timescale_units": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["s", "scan", "orbit", "d"],
|
|
37
|
+
"description": "Unit of detection_timescale: s (seconds), scan (one camera scan), orbit (one ISS orbit), or d (days).",
|
|
38
|
+
"default": "s"
|
|
39
|
+
},
|
|
40
|
+
"band_flux_low": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "type": "number" },
|
|
43
|
+
"minItems": 2,
|
|
44
|
+
"maxItems": 2,
|
|
45
|
+
"description": "Two-element array [flux, 1-sigma statistical uncertainty] for the 2-4 keV band [erg/cm^2/s]."
|
|
46
|
+
},
|
|
47
|
+
"band_flux_med": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": { "type": "number" },
|
|
50
|
+
"minItems": 2,
|
|
51
|
+
"maxItems": 2,
|
|
52
|
+
"description": "Two-element array [flux, 1-sigma statistical uncertainty] for the 4-10 keV band [erg/cm^2/s]."
|
|
53
|
+
},
|
|
54
|
+
"band_flux_high": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "number" },
|
|
57
|
+
"minItems": 2,
|
|
58
|
+
"maxItems": 2,
|
|
59
|
+
"description": "Two-element array [flux, 1-sigma statistical uncertainty] for the 10-20 keV band [erg/cm^2/s]."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"mission": "MAXI",
|
|
4
|
+
"instrument": "GSC",
|
|
5
|
+
"alert_datetime": "2023-02-20T09:53:39Z",
|
|
6
|
+
"alert_type": "update",
|
|
7
|
+
"alert_tense": "current",
|
|
8
|
+
"trigger_time": "2023-02-20T08:56:01Z",
|
|
9
|
+
"id": "9995289617",
|
|
10
|
+
"ra": 346.56,
|
|
11
|
+
"dec": 18.61,
|
|
12
|
+
"ra_dec_error": 1.5,
|
|
13
|
+
"containment_probability": 0.9,
|
|
14
|
+
"systematic_included": false,
|
|
15
|
+
"flux": 1.69e-9,
|
|
16
|
+
"flux_error": 2.6e-10,
|
|
17
|
+
"event_name": "GRB 230220A",
|
|
18
|
+
"detection_timescale": 10,
|
|
19
|
+
"detection_timescale_units": "s",
|
|
20
|
+
"flux_spectral_band": [2, 4],
|
|
21
|
+
"flux_spectral_unit": "keV",
|
|
22
|
+
"latitude": 0,
|
|
23
|
+
"longitude": 0,
|
|
24
|
+
"record_number": 1
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"mission": "MAXI",
|
|
4
|
+
"instrument": "GSC",
|
|
5
|
+
"alert_datetime": "2023-02-20T09:53:39Z",
|
|
6
|
+
"alert_type": "update",
|
|
7
|
+
"alert_tense": "current",
|
|
8
|
+
"trigger_time": "2023-02-20T08:56:01Z",
|
|
9
|
+
"id": "9995289617",
|
|
10
|
+
"ra": 346.56,
|
|
11
|
+
"dec": 18.61,
|
|
12
|
+
"ra_dec_error": [0.22, 0.19, 153],
|
|
13
|
+
"containment_probability": 0.9,
|
|
14
|
+
"systematic_included": false,
|
|
15
|
+
"flux": 1.69e-9,
|
|
16
|
+
"flux_error": 2.6e-10,
|
|
17
|
+
"event_name": "GRB 230220A",
|
|
18
|
+
"detection_timescale": 10,
|
|
19
|
+
"detection_timescale_units": "s",
|
|
20
|
+
"flux_spectral_band": [2, 4],
|
|
21
|
+
"flux_spectral_unit": "keV",
|
|
22
|
+
"latitude": 0,
|
|
23
|
+
"longitude": 0,
|
|
24
|
+
"record_number": 1
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"mission": "MAXI",
|
|
4
|
+
"instrument": "GSC",
|
|
5
|
+
"alert_datetime": "2023-02-20T06:19:49Z",
|
|
6
|
+
"alert_type": "initial",
|
|
7
|
+
"alert_tense": "current",
|
|
8
|
+
"trigger_time": "2023-02-20T08:56:01Z",
|
|
9
|
+
"id": "9995289617",
|
|
10
|
+
"ra": 346.56,
|
|
11
|
+
"dec": 18.61,
|
|
12
|
+
"flux": 1.69e-9,
|
|
13
|
+
"flux_error": 2.6e-10,
|
|
14
|
+
"event_name": "GRB 230220A",
|
|
15
|
+
"detection_timescale": 10,
|
|
16
|
+
"detection_timescale_units": "s",
|
|
17
|
+
"flux_spectral_band": [2, 4],
|
|
18
|
+
"flux_spectral_unit": "keV",
|
|
19
|
+
"latitude": 0,
|
|
20
|
+
"longitude": 0,
|
|
21
|
+
"record_number": 1
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"mission": "MAXI",
|
|
4
|
+
"instrument": "GSC",
|
|
5
|
+
"alert_datetime": "2023-02-20T09:53:39Z",
|
|
6
|
+
"alert_type": "update",
|
|
7
|
+
"alert_tense": "current",
|
|
8
|
+
"trigger_time": "2023-02-20T08:56:01Z",
|
|
9
|
+
"id": "9995289617",
|
|
10
|
+
"ra": 346.56,
|
|
11
|
+
"dec": 18.61,
|
|
12
|
+
"rectangular_error_corners": [
|
|
13
|
+
[345.72, 19.547],
|
|
14
|
+
[345.464, 19.29],
|
|
15
|
+
[347.309, 17.634],
|
|
16
|
+
[347.566, 17.889]
|
|
17
|
+
],
|
|
18
|
+
"containment_probability": 0.9,
|
|
19
|
+
"systematic_included": false,
|
|
20
|
+
"flux": 1.69e-9,
|
|
21
|
+
"flux_error": 2.6e-10,
|
|
22
|
+
"event_name": "GRB 230220A",
|
|
23
|
+
"detection_timescale": 10,
|
|
24
|
+
"detection_timescale_units": "s",
|
|
25
|
+
"flux_spectral_band": [2, 4],
|
|
26
|
+
"flux_spectral_unit": "keV",
|
|
27
|
+
"latitude": 0,
|
|
28
|
+
"longitude": 0,
|
|
29
|
+
"record_number": 1
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"mission": "MAXI",
|
|
4
|
+
"instrument": "GSC",
|
|
5
|
+
"alert_datetime": "2023-02-20T08:00:00Z",
|
|
6
|
+
"alert_type": "retraction",
|
|
7
|
+
"alert_tense": "current",
|
|
8
|
+
"trigger_time": "2023-02-20T08:56:01Z",
|
|
9
|
+
"id": "9995289617",
|
|
10
|
+
"event_name": "GRB 230220A",
|
|
11
|
+
"record_number": 2
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/maxi/gsc.unknown.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"unevaluatedProperties": false,
|
|
6
|
+
"title": "MAXI/GSC Unknown Source Position",
|
|
7
|
+
"description": "MAXI/GSC unknown-source detection notice for a GRB or other unknown X-ray transient.",
|
|
8
|
+
"allOf": [
|
|
9
|
+
{ "$ref": "../core/Alert.schema.json" },
|
|
10
|
+
{ "$ref": "../core/DateTime.schema.json" },
|
|
11
|
+
{ "$ref": "../core/Event.schema.json" },
|
|
12
|
+
{ "$ref": "../core/GeoLocBase.schema.json" },
|
|
13
|
+
{ "$ref": "../core/Localization.schema.json" },
|
|
14
|
+
{ "$ref": "../core/Reporter.schema.json" },
|
|
15
|
+
{ "$ref": "../core/Statistics.schema.json" },
|
|
16
|
+
{ "$ref": "../core/AdditionalInfo.schema.json" },
|
|
17
|
+
{ "$ref": "../core/Spectral.schema.json" }
|
|
18
|
+
],
|
|
19
|
+
"required": ["mission", "alert_datetime"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"$schema": { "type": "string", "format": "uri" },
|
|
22
|
+
"rectangular_error_corners": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "type": "number" },
|
|
27
|
+
"minItems": 2,
|
|
28
|
+
"maxItems": 2
|
|
29
|
+
},
|
|
30
|
+
"minItems": 4,
|
|
31
|
+
"maxItems": 4,
|
|
32
|
+
"description": "Coordinates of the four corners of the rectangular error box. Each element is a [RA, Dec] pair in degrees in J2000 equatorial coordinates. RA is in the range [0, 360]."
|
|
33
|
+
},
|
|
34
|
+
"flux": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"description": "X-ray flux of the event in the energy band specified by flux_spectral_band and flux_spectral_unit [erg/cm^2/s]."
|
|
37
|
+
},
|
|
38
|
+
"flux_error": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"description": "1-sigma statistical uncertainty on flux [erg/cm^2/s]."
|
|
41
|
+
},
|
|
42
|
+
"detection_timescale": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "Detection time scale of the event; unit specified by detection_timescale_units."
|
|
45
|
+
},
|
|
46
|
+
"detection_timescale_units": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["s", "scan", "orbit", "d"],
|
|
49
|
+
"description": "Unit of detection_timescale: s (seconds), scan (one camera scan), orbit (one ISS orbit), or d (days).",
|
|
50
|
+
"default": "s"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/neutrino/Alert.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"title": "Neutrino Alert",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/superk/sn_alert.schema.json",
|
|
3
3
|
"mission": "Super-Kamiokande",
|
|
4
4
|
"messenger": "Neutrino",
|
|
5
5
|
"id": "SN.095001.000001",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/superk/sn_alert.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"title": "Super-Kamiokande Supernova Alert",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/superk/sn_alert.schema.json",
|
|
3
3
|
"mission": "Super-Kamiokande",
|
|
4
4
|
"messenger": "Neutrino",
|
|
5
5
|
"id": "SN.095001.000001",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/svom/trigger.schema.json",
|
|
3
3
|
"instrument": "ECLAIRs",
|
|
4
4
|
"alert_datetime": "2024-02-22T08:51:55",
|
|
5
5
|
"alert_tense": "test",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/svom/trigger.schema.json",
|
|
3
3
|
"instrument": "ECLAIRs",
|
|
4
4
|
"alert_datetime": "2024-02-22T08:51:55",
|
|
5
5
|
"alert_tense": "test",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/svom/trigger.schema.json",
|
|
3
3
|
"instrument": "ECLAIRs",
|
|
4
4
|
"alert_datetime": "2024-02-22T08:51:55",
|
|
5
5
|
"alert_tense": "test",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$schema": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/svom/trigger.schema.json",
|
|
3
3
|
"instrument": "ECLAIRs",
|
|
4
4
|
"alert_datetime": "2024-02-22T08:51:55",
|
|
5
5
|
"alert_tense": "test",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/svom/trigger.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"unevaluatedProperties": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://gcn.nasa.gov/schema/
|
|
2
|
+
"$id": "https://gcn.nasa.gov/schema/v7.2.3/gcn/notices/swift/bat/Guano.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"title": "Swift/BAT-GUANO Alert",
|
|
5
5
|
"description": "Candidate gamma-ray transient reported from the BAT-GUANO targeted search",
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nasa-gcn/schema",
|
|
3
3
|
"description": "Unified JSON Schema for multi-messenger and high-energy astronomy alerts",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.2.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "github
|
|
7
|
+
"url": "git+https://github.com/nasa-gcn/gcn-schema.git"
|
|
8
8
|
},
|
|
9
|
+
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"prepare": "husky",
|
|
11
12
|
"test": "node validate.mjs",
|
|
@@ -16,16 +17,16 @@
|
|
|
16
17
|
"node": ">=18"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"@nasa-gcn/eslint-config-gitignore": "^0.0
|
|
20
|
+
"@nasa-gcn/eslint-config-gitignore": "^1.0.0",
|
|
20
21
|
"ajv": "^8.17.1",
|
|
21
22
|
"ajv-formats": "^3.0.1",
|
|
22
|
-
"eslint": "^
|
|
23
|
+
"eslint": "^10.2.1",
|
|
23
24
|
"eslint-config-prettier": "^10.1.2",
|
|
24
25
|
"execa": "^9.3.0",
|
|
25
|
-
"glob": "^
|
|
26
|
+
"glob": "^13.0.6",
|
|
26
27
|
"husky": "^9.1.1",
|
|
27
|
-
"lint-staged": "^
|
|
28
|
-
"prettier": "3.
|
|
28
|
+
"lint-staged": "^17.0.4",
|
|
29
|
+
"prettier": "3.8.3"
|
|
29
30
|
},
|
|
30
31
|
"prettier": {
|
|
31
32
|
"semi": false,
|
package/update-tags.mjs
CHANGED
|
@@ -20,7 +20,7 @@ async function glob(path) {
|
|
|
20
20
|
async function fileUpdates(fileSet, key, oldValue, newValue) {
|
|
21
21
|
await Promise.all(
|
|
22
22
|
fileSet.map(async (fileItem) => {
|
|
23
|
-
|
|
23
|
+
const file = JSON.parse(
|
|
24
24
|
await readFile(fileItem, {
|
|
25
25
|
encoding: 'utf-8',
|
|
26
26
|
}),
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: Main
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- '*'
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
github:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout
|
|
13
|
-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
14
|
-
- name: Release
|
|
15
|
-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
|
|
16
|
-
npm:
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
20
|
-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
|
21
|
-
with:
|
|
22
|
-
node-version: 20
|
|
23
|
-
registry-url: 'https://registry.npmjs.org'
|
|
24
|
-
- run: npm ci
|
|
25
|
-
- run: npm publish --access public
|
|
26
|
-
env:
|
|
27
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "https://gcn.nasa.gov/schema/v6.1.0/gcn/notices/core/spectral/GammaRay.schema.json",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"title": "spectral.GammaRay",
|
|
6
|
-
"description": "Spectral properties from gamma-ray data",
|
|
7
|
-
"properties": {
|
|
8
|
-
"best_fit_model": {
|
|
9
|
-
"enum": ["POWERLAW", "CUTOFFPOWERLAW", "BAND"],
|
|
10
|
-
"description": "Name of model corresponding to best statistical fit of spectrum"
|
|
11
|
-
},
|
|
12
|
-
"power_law": {
|
|
13
|
-
"$ref": "./models/PowerLaw.schema.json",
|
|
14
|
-
"description": "Fit parameters for PowerLaw model"
|
|
15
|
-
},
|
|
16
|
-
"cutoff_power_law": {
|
|
17
|
-
"$ref": "./models/CutOffPowerLaw.schema.json",
|
|
18
|
-
"description": "Fit parameters for Cutoff PowerLaw model"
|
|
19
|
-
},
|
|
20
|
-
"band": {
|
|
21
|
-
"$ref": "./models/Band.schema.json",
|
|
22
|
-
"description": "Fit parameters for Band model"
|
|
23
|
-
},
|
|
24
|
-
"spectral_energy_range": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"items": { "type": "number" },
|
|
27
|
-
"minItems": 2,
|
|
28
|
-
"maxItems": 2,
|
|
29
|
-
"description": "Low and High energy bounds used in spectral fit, if not parsed in Reporter.schema.json, default unit is keV"
|
|
30
|
-
},
|
|
31
|
-
"hardness_ratio": {
|
|
32
|
-
"type": "number",
|
|
33
|
-
"description": "ratio of flux between high and low energy bands"
|
|
34
|
-
},
|
|
35
|
-
"hardness_ratio_energy_range": {
|
|
36
|
-
"type": "array",
|
|
37
|
-
"items": { "type": "number" },
|
|
38
|
-
"minItems": 2,
|
|
39
|
-
"maxItems": 2,
|
|
40
|
-
"description": "Low and High energy bounds used for hardness ratio, if not parsed in Reporter.schema.json, default unit is keV"
|
|
41
|
-
},
|
|
42
|
-
"photon_flux": {
|
|
43
|
-
"type": "number",
|
|
44
|
-
"description": "Photon Flux [ph/cm2/s]"
|
|
45
|
-
},
|
|
46
|
-
"photon_flux_error": {
|
|
47
|
-
"type": "number",
|
|
48
|
-
"description": "1-sigma uncertainty in Photon Flux [ph/cm2/s]"
|
|
49
|
-
},
|
|
50
|
-
"energy_flux": {
|
|
51
|
-
"type": "number",
|
|
52
|
-
"description": "Energy Flux [erg/cm2/s]"
|
|
53
|
-
},
|
|
54
|
-
"energy_flux_error": {
|
|
55
|
-
"type": "number",
|
|
56
|
-
"description": "1-sigma uncertainty in Energy Flux [erg/cm2/s]"
|
|
57
|
-
},
|
|
58
|
-
"flux_energy_range": {
|
|
59
|
-
"type": "array",
|
|
60
|
-
"items": { "type": "number" },
|
|
61
|
-
"minItems": 2,
|
|
62
|
-
"maxItems": 2,
|
|
63
|
-
"description": "Low and High energy bounds used in flux calculation, if not parsed in Reporter.schema.json, default unit is keV"
|
|
64
|
-
},
|
|
65
|
-
"flux_time_range": {
|
|
66
|
-
"type": "array",
|
|
67
|
-
"items": { "type": "number" },
|
|
68
|
-
"minItems": 2,
|
|
69
|
-
"maxItems": 2,
|
|
70
|
-
"description": "Start and stop time stamps in array as used in flux calculation, measured since trigger [s]"
|
|
71
|
-
},
|
|
72
|
-
"fluence": { "type": "number", "description": "Fluence [erg/cm2]" },
|
|
73
|
-
"fluence_error": {
|
|
74
|
-
"type": "number",
|
|
75
|
-
"description": "Fluence Error [erg/cm2]"
|
|
76
|
-
},
|
|
77
|
-
"fluence_energy_range": {
|
|
78
|
-
"type": "array",
|
|
79
|
-
"items": { "type": "number" },
|
|
80
|
-
"minItems": 2,
|
|
81
|
-
"maxItems": 2,
|
|
82
|
-
"description": "Low and High energy bounds used in fluence calculation, if not parsed in Reporter.schema.json, default unit is keV"
|
|
83
|
-
},
|
|
84
|
-
"fluence_time_range": {
|
|
85
|
-
"type": "array",
|
|
86
|
-
"items": { "type": "number" },
|
|
87
|
-
"minItems": 2,
|
|
88
|
-
"maxItems": 2,
|
|
89
|
-
"description": "Start and stop time stamps in array as used in fluence calculation, measured since trigger [s]"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|