AtmosphereDensityProfile¶
-
class
ctapipe.atmosphere.
AtmosphereDensityProfile
[source]¶ Bases:
abc.ABC
Base class for models of atmosphere density.
Methods Summary
__call__
(height)- Returns
from_table
(table)return a subclass of AtmosphereDensityProfile from a serialized table
integral
(height)Integral of the profile along the height axis, i.e. the atmospheric depth \(X\).
line_of_sight_integral
(distance[, …])Line-of-sight integral from the shower distance to infinity, along the direction specified by the zenith angle.
peek
()Draw quick plot of profile
Methods Documentation
-
abstract
__call__
(height: astropy.units.quantity.Quantity) → astropy.units.quantity.Quantity[source]¶ - Returns
- u.Quantity[“g cm-3”]
the density at height h
-
classmethod
from_table
(table: astropy.table.table.Table)[source]¶ return a subclass of AtmosphereDensityProfile from a serialized table
-
abstract
integral
(height: astropy.units.quantity.Quantity) → astropy.units.quantity.Quantity[source]¶ Integral of the profile along the height axis, i.e. the atmospheric depth \(X\).
\[X(h) = \int_{h}^{\infty} \rho(h') dh'\]- Returns
- u.Quantity[“g/cm2”]:
Integral of the density from height h to infinity
-
line_of_sight_integral
(distance: astropy.units.quantity.Quantity, zenith_angle=<Quantity 0. deg>, output_units=Unit("g / cm2"))[source]¶ Line-of-sight integral from the shower distance to infinity, along the direction specified by the zenith angle. This is sometimes called the slant depth. The atmosphere here is assumed to be Cartesian, the curvature of the Earth is not taken into account.
\[X(h, \Psi) = \int_{h}^{\infty} \rho(h' \cos{\Psi}) dh'\]- Parameters
- distance: u.Quantity[“length”]
line-of-site distance from observer to point
- zenith_angle: u.Quantity[“angle”]
zenith angle of observation
- output_units: u.Unit
unit to output (must be convertible to g/cm2)