Skip to content

Improvements to utils/neutrino_astronomy.py #236

Closed
@mlincett

Description

@mlincett

Some time ago, I had started a review of this module, in particular I would like to tidy up the "Total Flux" and "Flux from the nearest source" calculations.

In the following snippet:

# Energy requires a 1/(1+z) factor
zfactor = find_zfactor(lumdist)
etot = (si * area * e_integral).to(u.erg / u.s) * zfactor

the energy-integrated flux at Earth is multiplied by 1+z as a consequence of the energy range on which the integral takes place being redshifted w.r.t. the rest frame of the source.

From my calculations this should be (1+z)^(1-gamma) that for gamma = 2 should give 1/(1+z). Note that the comment mentions a 1/(1+z) factor while code multiplies by (1+z). For sure this should depend on EnergyPDF and gamma.

Probably my calculations should be double-checked as well, I am attaching here the file that @JannisNe and @robertdstein have already received by mail: nu_astro.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions