-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating public webpages * document if on realtime * don't label events if not 1000s tw * look in albert home while lvk_dropbox is down * new script to convert multiorder maps * pointing back to dropbox * nside checks, 512 for 1000s followup * nside arg for moc conversion script * public webpage labels for sig and subthr * return if real event in heartbeat mode * Merge branch 'master' of github.com:icecube/FastResponseAnalysis into o4_realtime * load up to 5000s to check for events in realtime * add internal public webpage fxn * event time def earlier * get gcn in case p<0.1 * try for pickle load * index at 1 instead of 0 for events on skymap * add a try to convert from moc * add email/sms notif * internal alerts pub webpage updates * formatting for alerts webpage * increment versioning * dont send most prob direction if no coinc events * change header for public wp * make plots w file modification time * precomp gw bg trials
- Loading branch information
Showing
15 changed files
with
226 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
fast_response/scripts/convert_moc_to_healpix.py
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python | ||
|
||
import numpy as np | ||
import matplotlib as mpl | ||
mpl.use('agg') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
|
||
import pandas as pd | ||
from fast_response.web_utils import update_internal_public | ||
import argparse, glob, os, sys | ||
|
||
parser = argparse.ArgumentParser(description='Fast Response Followup') | ||
parser.add_argument('--alert_gcn', type=int, default=None, | ||
help='GCN circular number for the initial alert, or (run_id, event_id) to link notice') | ||
parser.add_argument('--fra_circular', type=int, default=None, | ||
help='GCN circular number for FRA circular') | ||
parser.add_argument('--alert_name', type=str, default=None, | ||
help='Alert identifier. Format - track: IceCube-YYMMDDA, cascade: IceCube-Cascade YYMMDDA') | ||
parser.add_argument('--save_location', type=str, default=None, | ||
help='Path to saved FRA results (default uses FAST_RESPONSE_OUTPUT env variable)') | ||
args = parser.parse_args() | ||
|
||
output = os.environ.get('FAST_RESPONSE_OUTPUT') if args.save_location is None else args.save_location | ||
name = args.alert_name.replace(' ','_') | ||
|
||
results_1000s = glob.glob(os.path.join(output, '*{}_1.0e+03_s/*.pickle'.format(name))) | ||
results_2d = glob.glob(os.path.join(output, '*{}_1.7e+05_s/*.pickle'.format(name))) | ||
|
||
if len(results_1000s) != 1 or len(results_2d) != 1: | ||
print('Results pickle files not found. Check output location and re-run') | ||
sys.exit() | ||
|
||
with open(results_1000s[0], 'rb') as f: | ||
analysis_1000 = pd.read_pickle(f) | ||
with open(results_2d[0], 'rb') as fi: | ||
analysis_2d = pd.read_pickle(fi) | ||
|
||
update_internal_public(analysis_1000, analysis_2d, | ||
alert_gcn=args.alert_gcn, fra_circular=args.fra_circular) | ||
print('done.') |
Oops, something went wrong.