Atmosphere
- class showermodel.atmosphere.Atmosphere(h0=2.2, h_top=112.8292, N_steps=550, model=1)
Bases:
DataFrameDataFrame containing an atmosphere discretization.
Use sm.Atmosphere() to construct the default Atmosphere object.
- Parameters
h0 (float) – Ground level in km above sea level.
h_top (float) – Top level of the atmosphere in km above sea level.
N_steps (int) – Number of discretization steps.
model (int) – CORSIKA atmospheric model. Presently either 1 or 17. More models to be implemented.
- h
Column 0, height in km above sea level.
- Type
float
- X_vert
Column 1, vertical depth in g/cm^2.
- Type
float
- rho
Column 2, mass density in g/cm^3.
- Type
float
- temp
Column 3, temperature in K.
- Type
float
- P
Column 4, pressure in hPa.
- Type
float
- P_w
Column 5, partial pressure of water vapor in hPa.
- Type
float
- E_th
Column 6, cherenkov energy threshold in MeV at 350 nm.
- Type
float
- r_M
Column 7, Moliere radius in km.
- Type
float
- h0
Ground level in km above sea level.
- Type
float
- h_top
Top level of the atmosphere in km above sea level.
- Type
float
- N_steps
Number of discretization steps.
- Type
int
- h_step
Size of discretization step in km.
- Type
float
- Xv_total
Total vertical depth of the atmosphere.
- Type
float
- model
CORSIKA atmospheric model. Presently either 1 or 17. More models to be implemented.
- Type
int
- h_to_Xv()
Get vertical depth from height.
- h_to_rho()
Get mass density from height.
- Xv_to_h()
Get height from vertical depth.
See also
TrackDataFrame containing a shower track discretization.
ProfileDataFrame containing a shower profile discretization.
ShowerMake a discretization of a shower.
- Methods:
- Atmosphere.h_to_Xv(h)
Get vertical depth in g/cm^2 from height in km above sea level.
- Parameters
h (float or array_like) – Height in km.
- Returns
Xv
- Return type
float or array_like
- Atmosphere.h_to_rho(h)
Get mass density in g/cm^3 from height in km above sea level.
- Parameters
h (float or array_like) – Height in km.
- Returns
rho
- Return type
float or array_like
- Atmosphere.Xv_to_h(Xv)
Get height in km above sea level from vertical depth in g/cm^2.
- Parameters
Xv (float) – Vertical depth in g/cm^2.
- Returns
h
- Return type
float