Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Error on integral method + solar mod not used for primary flux #2

Description

@GallegoSav

Hello,

The quad integrate method from scipy on CreateBackgroundSpectrumMEGAlib.py lead to several errors. Using the method trapz from numpy solved the issue.
I just had to replace the line

IntSpectrum, err = quad(Megalibfunc[i], 10**Elow, 10**Ehigh)
per IntSpectrum = np.trapz(Megalibfunc[i](Energies),Energies)

Also for the computation of the flux for the primary particles, the solar mod factor is computed but not implemented :

""" Solar modulation factor from Gleeson & Axford 1968"""

the output should look like that : f(E)*redfac*solmodfac ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions