Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed May 8, 2024
1 parent 76d5426 commit c486b40
Show file tree
Hide file tree
Showing 43 changed files with 84 additions and 154 deletions.
4 changes: 2 additions & 2 deletions gcn/notices/burstcube/alert.example.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/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",
"id": ["240601000"],
"ra": 232.0,
"ra": 232,
"dec": -53.1,
"ra_dec_error": 10,
"containment_probability": 0.9,
Expand Down
30 changes: 8 additions & 22 deletions gcn/notices/burstcube/alert.schema.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json",
"$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"
}
{ "$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: 2 additions & 2 deletions gcn/notices/burstcube/test.example.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/test.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/burstcube/test.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",
"id": ["240601000"],
"ra": 232.0,
"ra": 232,
"dec": -53.1,
"ra_dec_error": 10,
"containment_probability": 0.9,
Expand Down
30 changes: 8 additions & 22 deletions gcn/notices/burstcube/test.schema.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/test.schema.json",
"$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"
}
{ "$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/core/AdditionalInfo.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/AdditionalInfo.schema.json",
"$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",
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/core/Alert.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Alert.schema.json",
"$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",
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/core/DateTime.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/DateTime.schema.json",
"$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",
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/core/DetectorStatus.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/DetectorStatus.schema.json",
"$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"],
Expand Down
6 changes: 2 additions & 4 deletions gcn/notices/core/Distance.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Distance.schema.json",
"$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",
Expand All @@ -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
10 changes: 3 additions & 7 deletions gcn/notices/core/Duration.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Duration.schema.json",
"$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",
Expand All @@ -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
10 changes: 3 additions & 7 deletions gcn/notices/core/Event.schema.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Event.schema.json",
"$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"
},
"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
2 changes: 1 addition & 1 deletion gcn/notices/core/FollowUp.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/FollowUp.schema.json",
"$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",
Expand Down
14 changes: 4 additions & 10 deletions gcn/notices/core/HardnessRatio.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/HardnessRatio.schema.json",
"$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",
Expand All @@ -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
2 changes: 1 addition & 1 deletion gcn/notices/core/Localization.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Localization.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Localization.schema.json",
"ra": 120,
"dec": 45,
"ra_dec_error": [0.5, 0.8, 0],
Expand Down
6 changes: 2 additions & 4 deletions gcn/notices/core/Localization.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Localization.schema.json",
"$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",
Expand All @@ -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
2 changes: 1 addition & 1 deletion gcn/notices/core/Orbit.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/GeoLocBase.schema.json",
"$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.",
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/core/Pointing.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Pointing.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Pointing.schema.json",
"ra": 120.5,
"dec": 30.2,
"roll": -12.8,
Expand Down
2 changes: 1 addition & 1 deletion gcn/notices/core/Pointing.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Pointing.schema.json",
"$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.",
Expand Down
6 changes: 2 additions & 4 deletions gcn/notices/core/Redshift.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Redshift.schema.json",
"$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",
Expand All @@ -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
2 changes: 1 addition & 1 deletion gcn/notices/core/Reporter.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Reporter.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Reporter.schema.json",
"mission": "Hubble Space Telescope",
"instrument": "Advanced Camera for Surveys",
"record_number": 1,
Expand Down
6 changes: 2 additions & 4 deletions gcn/notices/core/Reporter.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Reporter.schema.json",
"$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",
Expand Down 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
2 changes: 1 addition & 1 deletion gcn/notices/core/Statistics.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Statistics.schema.json",
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/core/Statistics.schema.json",
"far": 0.001,
"trigger_type": "rate",
"net_count_rate": 2000,
Expand Down
10 changes: 3 additions & 7 deletions gcn/notices/core/Statistics.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/core/Statistics.schema.json",
"$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",
Expand Down 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
Loading

0 comments on commit c486b40

Please sign in to comment.