KM3Flux

https://readthedocs.org/projects/km3flux/badge/?version=latest

KM3Flux is a collection of neutrino flux models + assorted utilities for computing event weights.

Install

This is developed on python 3.6. Lower versions (especially py2) might or might not work.

Install the dependencies

  • numpy
  • pandas
  • h5py
  • pytables

In your python env, do

pip install km3flux

Contents

API Reference

km3flux.flux

Assorted Fluxes, in (m^2 sec sr GeV)^-1

BaseFlux(**kwargs) Base class for fluxes.
AllFlavorFlux([fluxclass]) Get mixed-flavor fluxes.
Honda2015([flavor]) Get Honda 2015 atmospheric neutrino fluxes.
HondaSarcevic([flavor]) Get Honda + Sarcevic atmospheric neutrino fluxes.
PowerlawFlux([gamma, scale]) E^-gamma flux.
DarkMatterFlux([source, flavor, channel, mass]) Get Dark Matter spectra (taken from M.
dmflux(energy, **kwargs) Get the DM flux for your energies.
e2flux(energy, **kwargs)
all_dmfluxes([source]) Get all dark matter fluxes from all channels, masses, flavors.
all_dmfluxes_samplesd

km3flux.weights

nu_wgt
atmu_wgt
make_weights
strange_flavor_to_mupage
add_flavor
add_weights_and_fluxes

km3flux.aeff

Utilities for effective Area computation.

All energies in GeV.

integrated_energy
integrated_zenith([zen_min, zen_max]) Integrate zenith.
aeff_scale_factor