llama.files.i3.txt module¶
FileHandler
for making a nicely-formatted ascii table of IceCube neutrinos
including their reconstructed properties and their joint significance when
combined with a gravitational wave. Can also be used as a stand-alone
command-line script to generate a human-readable table with neutrinos for this
event from an input JSON file. Used for GCN circulars.
-
class
llama.files.i3.txt.
IceCubeNeutrinoListCoincTxt
¶ Bases:
llama.filehandler.FileHandler
A space-delimited, table-formatted list of neutrinos meant for human consumption in GCN Circulars. Contains coincidence significance measures in addition to the base neutrino properties.
-
DEPENDENCIES
= (<class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>)¶
-
FILENAME
= 'icecube_neutrino_list_coinc.txt'¶
-
MANIFEST_TYPES
= (<class 'llama.files.i3.txt.IceCubeNeutrinoListCoincTxt'>,)¶
-
UR_DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.lvc_skymap.LvcSkymapFits'>, <class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.gracedb.LVCGraceDbEventData'>, <class 'llama.files.lvc_skymap.LvcDistancesJson'>, <class 'llama.files.lvc_skymap.LvcSkymapHdf5'>, <class 'llama.files.gracedb.PAstro'>, <class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>)¶
-
UR_DEPENDENCY_TREE
= ImmutableDict({<class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>: ImmutableDict({<class 'llama.files.gracedb.PAstro'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.lvc_skymap.LvcSkymapHdf5'>: ImmutableDict({<class 'llama.files.lvc_skymap.LvcSkymapFits'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.lvc_skymap.LvcDistancesJson'>: ImmutableDict({<class 'llama.files.lvc_skymap.LvcSkymapFits'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({}), <class 'llama.files.gracedb.LVCGraceDbEventData'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.i3.json.IceCubeNeutrinoList'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.i3.json.IceCubeNeutrinoList'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})¶
-
-
class
llama.files.i3.txt.
IceCubeNeutrinoListTxt
¶ Bases:
llama.filehandler.FileHandler
A space-delimited, table-formatted list of neutrinos formatted for human consumption in GCN Circulars.
-
DEPENDENCIES
= (<class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
FILENAME
= 'icecube_neutrino_list.txt'¶
-
MANIFEST_TYPES
= (<class 'llama.files.i3.txt.IceCubeNeutrinoListTxt'>,)¶
-
UR_DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.i3.json.IceCubeNeutrinoList'>)¶
-
UR_DEPENDENCY_TREE
= ImmutableDict({<class 'llama.files.i3.json.IceCubeNeutrinoList'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})¶
-
-
class
llama.files.i3.txt.
RctGwaIceCubeNeutrinoListTxt
¶ Bases:
llama.files.gwastro.GWAstroReceipt
-
DEPENDENCIES
= (<class 'llama.files.i3.txt.IceCubeNeutrinoListTxt'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
FILENAME
= 'rct_gwa_icecube_neutrino_list.txt.log'¶
-
MANIFEST_TYPES
= (<class 'llama.files.i3.txt.RctGwaIceCubeNeutrinoListTxt'>,)¶
-
RSYNC_DEST
= 'gwhen@gw-astronomy.org:/home/gwhen/content/events/'¶
-
UPLOAD
¶ alias of
IceCubeNeutrinoListTxt
-
UR_DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.i3.txt.IceCubeNeutrinoListTxt'>)¶
-
UR_DEPENDENCY_TREE
= frozenset({<class 'llama.files.i3.txt.IceCubeNeutrinoListTxt'>})¶
-
-
llama.files.i3.txt.
convert_json_neutrinos_to_txt
(infilename, outfilename, gpstime=None, p_values=None)¶ Take a json-formatted input filename and an output filename (both full paths) as arguments. Convert the neutrino list in the infile into a space-delimited, table-formatted list of neutrinos intended for human readability and saved to the path specified in outfilename. If an optional gpstime is given, then the time column will be given as the time difference in seconds between the neutrino’s arrival and the GPS time provided, i.e. the neutrino detection time with t=0 defined as the GPS time.
-
llama.files.i3.txt.
main
()¶ Can also use this module as a command-line script to make this file conversion.