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

Additions and strategy changes for LVK O4 run #73

Merged
merged 37 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fc6e533
Add timeout to download
martinjohndyer May 22, 2023
834f34e
Allow local files for debug
martinjohndyer May 22, 2023
7b65de5
Add command to see subscribed topics
martinjohndyer May 22, 2023
4e61b4a
Get latest notice for debugging
martinjohndyer May 22, 2023
bcd536f
Add IGNORE & RETRACTION
martinjohndyer May 22, 2023
a5621ca
Add more info to GW alerts
martinjohndyer May 22, 2023
96a3665
Ignore far BBH alerts
martinjohndyer May 22, 2023
27bff4a
Fix Fermi listener, add timeout
martinjohndyer May 24, 2023
5533d42
Add pipeline and better FAR in alert
martinjohndyer May 26, 2023
d290932
Add significant flag
martinjohndyer May 26, 2023
fbad530
Add external coinc
martinjohndyer May 26, 2023
cda95a6
Fix Burst notices, add test example
martinjohndyer May 30, 2023
7ea6405
Disable all coloured filters
martinjohndyer May 31, 2023
dc88f37
Ignore Python build
martinjohndyer May 31, 2023
7196f51
Remove event valid times
martinjohndyer Jun 1, 2023
d1b7e33
Add significance definition
martinjohndyer Jun 5, 2023
3882055
Add rank change option
martinjohndyer Jun 7, 2023
e56a739
Update GW strategy
martinjohndyer Jun 7, 2023
288ea47
Add ExtCoinc priority
martinjohndyer Jun 7, 2023
02c7954
New Fermi example
martinjohndyer Jun 9, 2023
1a9eede
Add alert forwarding
martinjohndyer Jun 9, 2023
a12fb66
Fix significant bool
martinjohndyer Jun 12, 2023
0d740b3
Add WAKEUP forwarding
martinjohndyer Jun 13, 2023
554ac5b
Use combined skymap
martinjohndyer Jun 15, 2023
1132237
Split alerts into their own channels
martinjohndyer Jun 15, 2023
fbd0a45
Forward to correct channel
martinjohndyer Jun 19, 2023
e29a01e
Fix if no strategy (no map yet)
martinjohndyer Jun 19, 2023
5dc78ce
Send errors if report fails
martinjohndyer Jun 19, 2023
b9a323e
Don't wait again!
martinjohndyer Jun 19, 2023
98b05c3
How many days in a year?
martinjohndyer Jun 19, 2023
1cf3730
Add from_gracedb option for GW notices
martinjohndyer Jun 21, 2023
3ea4d9f
Fix for retraction events
martinjohndyer Jun 21, 2023
22578f1
Add download options
martinjohndyer Jun 21, 2023
f31c32f
New GW strategy
martinjohndyer Jun 21, 2023
d77aef5
Decide channel earlier
martinjohndyer Jul 25, 2023
0cee31f
Send retractions to the same channel
martinjohndyer Jul 26, 2023
6da61d0
Check running pointings
martinjohndyer Aug 10, 2023
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
6 changes: 5 additions & 1 deletion .alert.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ DATABASE_HOST = localhost
# Slack bot parameters
ENABLE_SLACK = 0
SLACK_BOT_TOKEN = slack_token
SLACK_DEFAULT_CHANNEL = slack_channel
SLACK_DEFAULT_CHANNEL = slack_channel_id
[SLACK_EVENT_CHANNELS]
GW = slack_channel_id
GRB = slack_channel_id
NU = slack_channel_id
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*.egg-info/
*build/

# Visual Studio Code files
*.browse*
Expand Down
18 changes: 18 additions & 0 deletions gtecs/alert/data/cadences.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"NO_DELAY": {
"num_todo": 99,
"wait_hours": 0,
"rank_change": 20,
"valid_days": 3
},
"TWO_NIGHTS": {
"num_todo": 2,
"wait_hours": 12,
"rank_change": 10,
"valid_days": 3
},
"TWO_FIRST_ONE_SECOND": {
Expand All @@ -15,6 +17,7 @@
4,
12
],
"rank_change": 10,
"valid_days": 3
},
"MANY_FIRST_ONE_SECOND": {
Expand All @@ -28,11 +31,13 @@
2,
12
],
"rank_change": 10,
"valid_days": 3
},
"HAMMER_EARLY": {
"num_todo": 8,
"wait_hours": 0.25,
"rank_change": 10,
"valid_days": 0.125
},
"FOLLOW_LATE": {
Expand All @@ -43,6 +48,19 @@
4
],
"delay_days": 0.125,
"rank_change": 10,
"valid_days": 2.875
},
"1H_REPEATED": {
"num_todo": 99,
"wait_hours": [
1,
0
],
"rank_change": [
0,
10
],
"valid_days": 3
}
}
11 changes: 9 additions & 2 deletions gtecs/alert/data/configspec.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ DATABASE_PRE_PING = integer(default=1)

# Slack bot parameters
ENABLE_SLACK = integer(default=0)
SLACK_BOT_TOKEN = string(default=slack_token)
SLACK_DEFAULT_CHANNEL = string(default=slack_channel)
SLACK_BOT_TOKEN = string(default=none)

SLACK_DEFAULT_CHANNEL = string(default=none)
SLACK_WAKEUP_CHANNEL = string(default=none)
SLACK_IGNORED_CHANNEL = string(default=none)
[SLACK_EVENT_CHANNELS]
GW = string(default=none)
GRB = string(default=none)
NU = string(default=none)
77 changes: 63 additions & 14 deletions gtecs/alert/data/strategies.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,93 @@
"tile_limit": 200,
"prob_limit": 0
},
"GW_CLOSE_NS": {
"rank": 2,
"GW_RANK_1_WIDE": {
"rank": 11,
"cadence": "1H_REPEATED",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0,
"wakeup_alert": 1
},
"GW_RANK_1_NARROW": {
"rank": 11,
"cadence": "NO_DELAY",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0,
"wakeup_alert": 1
},
"GW_RANK_2_WIDE": {
"rank": 22,
"cadence": "1H_REPEATED",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0,
"wakeup_alert": 1
},
"GW_RANK_2_NARROW": {
"rank": 22,
"cadence": "NO_DELAY",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0,
"wakeup_alert": 1
},
"GW_RANK_3_WIDE": {
"rank": 33,
"cadence": "1H_REPEATED",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0
},
"GW_FAR_NS": {
"rank": 13,
"GW_RANK_3_NARROW": {
"rank": 33,
"cadence": "NO_DELAY",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0
},
"GW_CLOSE_BH": {
"rank": 24,
"cadence": "TWO_NIGHTS",
"GW_RANK_4_WIDE": {
"rank": 44,
"cadence": "1H_REPEATED",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0
},
"GW_FAR_BH": {
"rank": 105,
"cadence": "TWO_NIGHTS",
"GW_RANK_4_NARROW": {
"rank": 44,
"cadence": "NO_DELAY",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0
},
"GW_BURST": {
"rank": 52,
"GW_RANK_5_WIDE": {
"rank": 55,
"cadence": "1H_REPEATED",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 200,
"prob_limit": 0
},
"GW_RANK_5_NARROW": {
"rank": 55,
"cadence": "NO_DELAY",
"constraints": "LENIENT",
"exposure_sets": "4x90L",
Expand All @@ -60,7 +109,7 @@
"FOLLOW_LATE"
],
"constraints": "NORMAL",
"exposure_sets": "6x90LRGB",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 4,
"prob_limit": 0.05
Expand All @@ -81,7 +130,7 @@
"FOLLOW_LATE"
],
"constraints": "NORMAL",
"exposure_sets": "6x90LRGB",
"exposure_sets": "4x90L",
"skymap_contour": 0.95,
"tile_limit": 8,
"prob_limit": 0.005
Expand Down
106 changes: 106 additions & 0 deletions gtecs/alert/data/test_notices/Fermi#706601200-GBM_Fin_Pos.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?xml version='1.0' encoding='UTF-8'?>
<voe:VOEvent xmlns:voe="http://www.ivoa.net/xml/VOEvent/v2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ivorn="ivo://nasa.gsfc.gcn/Fermi#GBM_Fin_Pos2023-05-24T06:06:35.81_706601200_0-482" role="observation" version="2.0" xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml/VOEvent/VOEvent-v2.0.xsd">
<Who>
<AuthorIVORN>ivo://nasa.gsfc.tan/gcn</AuthorIVORN>
<Author>
<shortName>Fermi (via VO-GCN)</shortName>
<contactName>Julie McEnery</contactName>
<contactPhone>+1-301-286-1632</contactPhone>
<contactEmail>[email protected]</contactEmail>
</Author>
<Date>2023-05-24T06:15:50</Date>
<Description>This VOEvent message was created with GCN VOE version: 15.08 17jun22</Description>
</Who>
<What>
<Param name="Packet_Type" value="115"/>
<Param name="Pkt_Ser_Num" value="23"/>
<Param name="TrigID" value="706601200" ucd="meta.id"/>
<Param name="Sequence_Num" value="0" ucd="meta.id.part"/>
<Param name="Burst_TJD" value="20088" unit="days" ucd="time"/>
<Param name="Burst_SOD" value="21995.81" unit="sec" ucd="time"/>
<Param name="Burst_Inten" value="0" unit="cts" ucd="phot.count"/>
<Param name="Data_Integ" value="0.000" unit="sec" ucd="time.interval"/>
<Param name="Burst_Signif" value="0.00" unit="sigma" ucd="stat.snr"/>
<Param name="Phi" value="110.00" unit="deg" ucd="pos.az.azi"/>
<Param name="Theta" value="93.00" unit="deg" ucd="pos.az.zd"/>
<Param name="Algorithm" value="41731" unit="dn"/>
<Param name="Lo_Energy" value="44032" unit="keV"/>
<Param name="Hi_Energy" value="279965" unit="keV"/>
<Param name="Trigger_ID" value="0x28000002"/>
<Param name="Misc_flags" value="0x40000000"/>
<Group name="Trigger_ID">
<Param name="Def_NOT_a_GRB" value="false"/>
<Param name="Target_in_Blk_Catalog" value="false"/>
<Param name="Human_generated" value="false"/>
<Param name="Robo_generated" value="true"/>
<Param name="Bright_Hard_GBM" value="false"/>
<Param name="Long_short" value="Long"/>
<Param name="Spatial_Prox_Match" value="false"/>
<Param name="Temporal_Prox_Match" value="true"/>
<Param name="Test_Submission" value="false"/>
</Group>
<Group name="Misc_Flags">
<Param name="Values_Out_of_Range" value="false"/>
<Param name="Flt_Generated" value="false"/>
<Param name="Gnd_Generated" value="true"/>
<Param name="CRC_Error" value="false"/>
</Group>
<Param name="LightCurve_URL" value="http://heasarc.gsfc.nasa.gov/FTP/fermi/data/gbm/triggers/2023/bn230524255/quicklook/glg_lc_medres34_bn230524255.gif" ucd="meta.ref.url"/>
<Param name="LocationMap_URL" value="http://heasarc.gsfc.nasa.gov/FTP/fermi/data/gbm/triggers/2023/bn230524255/quicklook/glg_locplot_all_bn230524255.png" ucd="meta.ref.url"/>
<Param name="Coords_Type" value="1" unit="dn"/>
<Param name="Coords_String" value="source_object"/>
<Group name="Obs_Support_Info">
<Description>The Sun and Moon values are valid at the time the VOEvent XML message was created.</Description>
<Param name="Sun_RA" value="60.80" unit="deg" ucd="pos.eq.ra"/>
<Param name="Sun_Dec" value="20.73" unit="deg" ucd="pos.eq.dec"/>
<Param name="Sun_Distance" value="107.97" unit="deg" ucd="pos.angDistance"/>
<Param name="Sun_Hr_Angle" value="-7.80" unit="hr"/>
<Param name="Moon_RA" value="118.92" unit="deg" ucd="pos.eq.ra"/>
<Param name="Moon_Dec" value="26.05" unit="deg" ucd="pos.eq.dec"/>
<Param name="MOON_Distance" value="55.33" unit="deg" ucd="pos.angDistance"/>
<Param name="Moon_Illum" value="19.97" unit="%" ucd="arith.ratio"/>
<Param name="Galactic_Long" value="246.89" unit="deg" ucd="pos.galactic.lon"/>
<Param name="Galactic_Lat" value="72.12" unit="deg" ucd="pos.galactic.lat"/>
<Param name="Ecliptic_Long" value="171.06" unit="deg" ucd="pos.ecliptic.lon"/>
<Param name="Ecliptic_Lat" value="13.96" unit="deg" ucd="pos.ecliptic.lat"/>
</Group>
<Description>The Fermi-GBM location of a transient.</Description>
</What>
<WhereWhen>
<ObsDataLocation>
<ObservatoryLocation id="GEOLUN"/>
<ObservationLocation>
<AstroCoordSystem id="UTC-FK5-GEO"/>
<AstroCoords coord_system_id="UTC-FK5-GEO">
<Time unit="s">
<TimeInstant>
<ISOTime>2023-05-24T06:06:35.81</ISOTime>
</TimeInstant>
</Time>
<Position2D unit="deg">
<Name1>RA</Name1>
<Name2>Dec</Name2>
<Value2>
<C1>177.4700</C1>
<C2>16.3400</C2>
</Value2>
<Error2Radius>3.2200</Error2Radius>
</Position2D>
</AstroCoords>
</ObservationLocation>
</ObsDataLocation>
<Description>The RA,Dec coordinates are of the type: source_object.</Description>
</WhereWhen>
<How>
<Description>Fermi Satellite, GBM Instrument</Description>
<Reference uri="http://gcn.gsfc.nasa.gov/fermi.html" type="url"/>
</How>
<Why importance="0.95">
<Inference probability="1.0">
<Concept>process.variation.burst;em.gamma</Concept>
</Inference>
</Why>
<Description>
</Description>
</voe:VOEvent>
Loading