density_profiles (MCEq.geometry.density_profiles)#

This module includes classes and functions modeling the Earth’s atmosphere. Currently, two different types models are supported:

  1. Linsley-type/CORSIKA-style parameterization

  2. Numerical atmosphere via external routine (NRLMSISE-00)

Both implementations have to inherit from the abstract class MCEq.geometry.density_profiles.EarthsAtmosphere, which provides the functions for other parts of the program. In particular the function MCEq.geometry.density_profiles.EarthsAtmosphere.get_density().

Typical interaction:

atm_object = CorsikaAtmosphere("BK_USStd")
atm_object.set_theta(90)
print(density at X=100, atm_object.X2rho(100.))

The class MCEq.core.MCEqRun will only the following routines:

  • EarthsAtmosphere.set_theta()

  • EarthsAtmosphere.r_X2rho()

If you are extending this module make sure to provide these functions without breaking compatibility.

Reference/API#

MCEq.geometry.density_profiles Module#

Classes#

ABCMeta(name, bases, namespace, /, **kwargs)

Metaclass for defining Abstract Base Classes (ABCs).

AIRSAtmosphere(location, season[, extrapolate])

Interpolation class for tabulated atmospheres.

CorsikaAtmosphere(location[, season])

Class, holding the parameters of a Linsley type parameterization similar to the Air-Shower Monte Carlo CORSIKA.

EarthsAtmosphere(*args, **kwargs)

Abstract class containing common methods on atmosphere.

GeneralizedTarget([len_target, env_density, ...])

This class provides a way to run MCEq on piece-wise constant one-dimenional density profiles.

IsothermalAtmosphere(location, season[, ...])

Isothermal model of the atmosphere.

MSIS00Atmosphere(location[, season, doy, ...])

Wrapper class for a python interface to the NRLMSISE-00 model.

MSIS00IceCubeCentered(location, season)

Extension of MSIS00Atmosphere which couples the latitude setting with the zenith angle of the detector.

Class Inheritance Diagram#

Inheritance diagram of MCEq.geometry.density_profiles.AIRSAtmosphere, MCEq.geometry.density_profiles.CorsikaAtmosphere, MCEq.geometry.density_profiles.EarthsAtmosphere, MCEq.geometry.density_profiles.GeneralizedTarget, MCEq.geometry.density_profiles.IsothermalAtmosphere, MCEq.geometry.density_profiles.MSIS00Atmosphere, MCEq.geometry.density_profiles.MSIS00IceCubeCentered