Skip to content

Commit

Permalink
count and trigger type
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidushi-GitHub committed Mar 14, 2024
2 parents 9119fdc + e84f4da commit 821ec5b
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/Test.schema.json",
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json",
"alert_datetime": "2024-06-01T00:05:00.00Z",
"alert_tense": "current",
"alert_type": "initial",
Expand All @@ -9,9 +9,7 @@
"id": ["240601000"],
"ra": 232.0,
"dec": -53.1,
"uncertainty_shape": "circle",
"ra_uncertainty": [10],
"dec_uncertainty": [10],
"ra_dec_error": 10,
"containment_probability": 0.9,
"systematic_included": false,
"healpix_url": "https://heasarc.gsfc.nasa.gov/burstcube/trigger/240601000/current/240601000_locmap.fits",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/Alert.schema.json",
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/alert.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Alert",
"description": "BurstCube Trigger Alert",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/Alert.schema.json",
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/test.schema.json",
"alert_datetime": "2024-06-01T00:05:00.00Z",
"alert_tense": "current",
"alert_type": "initial",
Expand All @@ -9,9 +9,7 @@
"id": ["240601000"],
"ra": 232.0,
"dec": -53.1,
"uncertainty_shape": "circle",
"ra_uncertainty": [10],
"dec_uncertainty": [10],
"ra_dec_error": 10,
"containment_probability": 0.9,
"systematic_included": false,
"healpix_url": "https://heasarc.gsfc.nasa.gov/burstcube/trigger/240601000/current/240601000_locmap.fits",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/Test.schema.json",
"$id": "https://gcn.nasa.gov/schema/main/gcn/notices/burstcube/test.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Alert",
"description": "BurstCube Trigger Alert",
Expand Down
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
17 changes: 13 additions & 4 deletions gcn/notices/core/Statistics.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"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]"
},
<<<<<<< HEAD
=======
"trigger_type": {
"enum": ["rate", "image"],
"description": "Type of trigger algorithm used to identify the transient event."
},
>>>>>>> e84f4da1964f4b46bc9da752a3c009fd71d17e68
"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."
Expand All @@ -17,10 +24,6 @@
"type": "number",
"description": "Count rate of the background for the transient [counts/s] for rate_duration and rate_energy_range used for net count rate."
},
"trigger_type": {
"enum": ["rate", "image"],
"description": "Specifies the type of trigger; rate, or image trigger"
},
"rate_snr": {
"type": "number",
"description": "Rate signal to noise ratio [dimensionless]"
Expand All @@ -31,6 +34,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 @@ -45,6 +51,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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"singleQuote": true
},
"lint-staged": {
"*.(json,js,mjs)": "prettier --write",
"*.{json,js,mjs}": "prettier --write",
"*.schema.json": "node validate.mjs"
},
"dependencies": {
Expand Down

0 comments on commit 821ec5b

Please sign in to comment.