icecube_tools.detector.angular_resolution module

class icecube_tools.detector.angular_resolution.AngularResolution(filename, ret_ang_err_p=0.68, offset=0, scale=1, scatter=None, minimum=0.1, maximum=10)

Bases: object

Generic angular resolution class.

classmethod from_dataset(dataset_id, fetch=True, **kwargs)

Load angular resolution from publicly available data.

Dataset_id:

ID date of the dataset e.g. “20181018”

Parameters:

fetch – If true, download dataset if missing

get_reader()

Define an IceCubeAeffReader based on the filename.

get_ret_ang_err(E)

Get the median angular resolution for the given Etrue/Ereco, corresponsing to ret_ang_err_p.

property ret_ang_err
sample(Etrue, coord)

Sample new ra, dec values given a true energy and direction.

supported_datasets = ['20181018']
class icecube_tools.detector.angular_resolution.FixedAngularResolution(ang_err=1.0, ang_err_p=0.68, ret_ang_err_p=0.68)

Bases: object

Simple fixed angular resolution.

property kappa
property ret_ang_err
sample(coord)

Sample reconstructed coord given original position.

Coord:

ra, dec in [rad].

class icecube_tools.detector.angular_resolution.FromPlotAngResReader(filename)

Bases: IceCubeAngResReader

Reader for the plots from the Aartsen+2018 point source analysis paper.

read()
class icecube_tools.detector.angular_resolution.IceCubeAngResReader(filename)

Bases: ABC

Abstract base class for different input files from the IceCube website.

abstract read()
class icecube_tools.detector.angular_resolution.R2015AngResReader(filename)

Bases: IceCubeAngResReader

Reader for the 2015 release.

read()
class icecube_tools.detector.angular_resolution.R2018AngResReader(filename)

Bases: IceCubeAngResReader

Reader for the 2018 Oct 18 release. Link: https://icecube.wisc.edu/science/data/PS-3years.

read()
icecube_tools.detector.angular_resolution.icrs_to_unit_vector(ra, dec)

Convert to unit vector.

icecube_tools.detector.angular_resolution.unit_vector_to_icrs(unit_vector)

Convert to ra, dec.