pyrex.ice_model.UniformIce¶
-
class
pyrex.ice_model.
UniformIce
(index, valid_range=(- 2850, 0), index_above=1, index_below=None)¶ Class describing ice with a uniform index of refraction.
In all methods, the depth z should be given as a negative value if it is below the surface of the ice.
- Parameters
- indexfloat
Index of refraction of the ice.
- valid_rangearray_like of float
Range of depths over which the uniform index of refraction applies. Assumed to have two elements where the first value is lower (deeper, more negative) than the second.
- index_abovefloat or None, optional
Index of refraction above the ice region. If None, uses the same index of refraction.
- index_belowfloat or None, optional
Index of refraction below the ice region. If None, uses the same index of refraction.
- Attributes
- nfloat
Index of refraction of the ice.
- valid_rangetuple
Range of depths over which the ice model is valid. Consists of two elements where the first value is lower (deeper, more negative) than the second.
index_above
The index of refraction above the ice’s valid range.
index_below
The index of refraction below the ice’s valid range.
Methods
attenuation_length
(z, f)Calculates attenuation lengths for given depths and frequencies.
contains
(point)Determines if the given point is within the ice’s valid range.
Calculates the corresponding depth for a given index of refraction.
gradient
(z)Calculates the gradient of the index of refraction at a given depth.
index
(z)Calculates the index of refraction of the ice at a given depth.
temperature
(z)Calculates the temperature of the ice at a given depth.