Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new GCN alerts and SCIMMA broker #84

Merged
merged 33 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
45c68c3
Replace voeventparse with hop message class
martinjohndyer Aug 23, 2023
066e25b
Raise non-packet errors
martinjohndyer Aug 23, 2023
de812bb
Raise a better error
martinjohndyer Aug 23, 2023
955688f
Better to use default than fail totally
martinjohndyer Aug 23, 2023
324211b
Allow both notice formats
martinjohndyer Aug 25, 2023
db49ca5
Replace gcn-kafka with hop-client
martinjohndyer May 22, 2024
b4eac3f
Fix for some single group events
martinjohndyer May 22, 2024
c8477bd
Always listen to heartbeat
martinjohndyer May 23, 2024
6fe3f5c
Heartbeat is SCIMMA specific
martinjohndyer May 23, 2024
51fbac8
Try JSON first
martinjohndyer May 23, 2024
134aca5
Handle invalid errors better
martinjohndyer May 23, 2024
de5e03a
Log payload for debugging
martinjohndyer May 23, 2024
e03c1a5
Require any message within 60 seconds
martinjohndyer May 23, 2024
3d017e3
Add backfilling to Kafka
martinjohndyer Jul 4, 2024
a1ec8ec
Allow swapping between brokers
martinjohndyer Jul 8, 2024
4d4630a
Catch unbound errors
martinjohndyer Jul 8, 2024
a935f71
Notice within try
martinjohndyer Jul 8, 2024
0f74e8c
Rename module
martinjohndyer Jul 10, 2024
37f09bb
Rename as not all GCNs now
martinjohndyer Jul 10, 2024
b3bf7fd
Allow non-VOEvent notices
martinjohndyer Jul 12, 2024
b3d3352
Decode string skymaps
martinjohndyer Jul 17, 2024
cce4948
Add new example notices, fix formatting
martinjohndyer Jul 17, 2024
649b030
Reorganise test notices
martinjohndyer Jul 18, 2024
e84859d
Handle notices with no distance
martinjohndyer Jul 18, 2024
13eff87
Need to decode coinc skymaps too
martinjohndyer Jul 18, 2024
f1217bc
Split GRB notices by source
martinjohndyer Jul 18, 2024
f8db696
Add EP alerts
martinjohndyer Jul 19, 2024
1a07859
Use matplotlib agg backend for slack plots
martinjohndyer Jul 19, 2024
21ec393
Add NASA GCN auth
martinjohndyer Jul 22, 2024
9f2c6c2
Hardcode topics
martinjohndyer Jul 23, 2024
d9dd8c4
Move to GOTO-tile
martinjohndyer Jul 24, 2024
efc4b26
Add EP IDs
martinjohndyer Jul 26, 2024
2b518cf
Use feal EP alert
martinjohndyer Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .alert.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
#############################################################

# Sentinel parameters
# # If using a socket host:
VOSERVER_HOST = 68.169.57.253
VOSERVER_PORT = 8099
LOCAL_IVO = ivo://org.TEST
# # If using Kafka:
KAFKA_CLIENT_ID = unknown
KAFKA_CLIENT_SECRET = unknown
KAFKA_USER = <add user here>
KAFKA_PASSWORD = <add password here>

# Set this to 1 to process test notices as if they were real:
PROCESS_TEST_NOTICES = 0

Expand Down
7 changes: 5 additions & 2 deletions gtecs/alert/data/configspec.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ PYRO_TIMEOUT = integer(default=5)
LOCAL_IVO = string(default='ivo://gtecs_alert/anonymous')
VOSERVER_HOST = string(default='68.169.57.253')
VOSERVER_PORT = integer(default=8099)
KAFKA_CLIENT_ID = string(default='unknown')
KAFKA_CLIENT_SECRET = string(default='unknown')
KAFKA_USER = string(default='unknown')
KAFKA_PASSWORD = string(default='unknown')
KAFKA_BROKER = string(default='SCIMMA')
KAFKA_GROUP_ID = string(default='gtecs_alert')
KAFKA_BACKDATE = integer(default=1)

# Filter parameters
PROCESS_TEST_NOTICES = integer(default=0)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/einstein_probe/wxt/alert.schema.json",
"instrument": "WXT",
"trigger_time": "2024-07-28T05:49:10.549Z",
"id": [
"01709002661"
],
"ra": 330.538,
"dec": 37.965,
"ra_dec_error": 0.05107808,
"image_energy_range": [
0.5,
4
],
"net_count_rate": 0.05,
"image_snr": 8.3,
"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."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://gcn.nasa.gov/schema/v4.0.0/gcn/notices/einstein_probe/wxt/alert.schema.json",
"instrument": "WXT",
"trigger_time": "2024-06-18T05:44:19.949Z",
"ra": 281.612999999,
"dec": 23.829999999,
"ra_dec_error": 0.05081966,
"image_energy_range": [
0.5,
4
],
"net_count_rate": 0.06,
"image_snr": 10.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."
}
109 changes: 0 additions & 109 deletions gtecs/alert/data/test_notices/Fermi#624500874-GBM_Fin_Pos.xml

This file was deleted.

109 changes: 0 additions & 109 deletions gtecs/alert/data/test_notices/Fermi#632717654-GBM_Fin_Pos.xml

This file was deleted.

105 changes: 0 additions & 105 deletions gtecs/alert/data/test_notices/Fermi#637664914-GBM_Fin_Pos.xml

This file was deleted.

Loading