refraction_render.calcs.std_atmosphere¶
- 
class refraction_render.calcs.std_atmosphere(h0=0.0, T0=15.0, P0=101325.0, g=9.81, dT=None, wavelength=0.545, moist_lapse_rate=False, T_prof=None, dT_prof=None, T_prof_args=())[source]¶
- Bases: - object- Object which calculates the standard atmospheric model. - 
__init__(h0=0.0, T0=15.0, P0=101325.0, g=9.81, dT=None, wavelength=0.545, moist_lapse_rate=False, T_prof=None, dT_prof=None, T_prof_args=())[source]¶
- Intializes the std_atmosphere object. - Parameters
- h0: float, optional
- height (in \(m\)) to determine initial conditions on atmospheric model 
- T0: float, optional
- Temperature (in degrees \(C\)) at h0 
- P0: float, optional
- Pressure (in \(Pa\)) at h0 
- g: float, optional
- gravitational acceleration (in \(m/s^2\)) 
- dT: float, optional
- Temperature lapse rate (in \(C/m\)) defined as minus the slope of the temperature 
- wavelength: float, optional
- wavelength of light (in \(\mu m\)) used calculate the index of refraction 
- moist_lapse_rate: bool, optional
- Uses the temperature and pressure to calculate the moist lapse rate, use when the humidity is at 100% 
- T_prof: callable, optional
- user defined function, see description. 
- dT_prof: callable, optional
- derivative of T_prof, see description. 
- T_prof_args: array_like, optional
- optional arguments to pass into T_prof and dT_prof. 
 
 
 - Methods - P(h)- Pressure function for this atmospheric model. - T(h)- Temperature function for this atmospheric model. - __init__([h0, T0, P0, g, dT, wavelength, …])- Intializes the std_atmosphere object. - dTdh(h)- density function for this atmospheric model. - k(h)- Curvature of light rays at given height. - n(h)- Index of refraction function for this atmospheric model. - rho(h)- density function for this atmospheric model. - Attributes - Ideal gas constant for the atmosphere - Temperature Lapse rate for this atmospheric model. - scale factor used to calculate the index of refraction of air. - gravitational acceleration. - 
property R¶
- Ideal gas constant for the atmosphere 
 - 
property dT¶
- Temperature Lapse rate for this atmospheric model. 
 - 
property deltan¶
- scale factor used to calculate the index of refraction of air. 
 - 
property g¶
- gravitational acceleration. 
 
-