Skip to content

Commit

Permalink
Add item types to all arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Mar 1, 2024
1 parent 6517ba0 commit e3b760b
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gcn/notices/core/Distance.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
"luminosity_distance_error": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 2,
"description": "Luminosity distance uncertainty [Mpc, 1-sigma], with optional asymmetric uncertainty"
}
Expand Down
6 changes: 6 additions & 0 deletions gcn/notices/core/Duration.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"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"
},
Expand All @@ -19,6 +22,9 @@
},
"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"
}
Expand Down
6 changes: 6 additions & 0 deletions gcn/notices/core/Event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
"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": {
Expand Down
9 changes: 9 additions & 0 deletions gcn/notices/core/HardnessRatio.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,26 @@
},
"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
Expand Down
3 changes: 3 additions & 0 deletions gcn/notices/core/Redshift.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
"redshift_error": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 2,
"description": "Error in redshift, array for asymmetric statistical errors"
},
Expand Down
3 changes: 3 additions & 0 deletions gcn/notices/core/Reporter.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional filter name, as used in optical observations"
}
}
Expand Down
6 changes: 6 additions & 0 deletions gcn/notices/core/Statistics.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
},
"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"
Expand All @@ -33,6 +36,9 @@
},
"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"
Expand Down
18 changes: 18 additions & 0 deletions gcn/notices/core/spectral/GammaRay.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
"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"
Expand All @@ -33,6 +36,9 @@
},
"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"
Expand All @@ -55,12 +61,18 @@
},
"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]"
Expand All @@ -72,12 +84,18 @@
},
"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]"
Expand Down
10 changes: 8 additions & 2 deletions gcn/notices/icecube/lvk_nu_track_search.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,17 @@
"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"
"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"
"type": "array",
"items": {
"type": "number"
}
}
}
},
Expand Down

0 comments on commit e3b760b

Please sign in to comment.