sasktran2.Geometry2D#
- class sasktran2.Geometry2D(cos_sza: float, solar_azimuth: float, earth_radius_m: float, altitude_grid_m: ndarray, horizontal_angle_grid_radians: ndarray, interpolation_method: InterpolationMethod = InterpolationMethod.LinearInterpolation)[source]#
Bases:
objectA structured spherical geometry varying in altitude and one angle.
Atmospheric locations are flattened with altitude varying fastest. The
shapeis ordered as(horizontal, altitude).Construct a structured spherical 2D geometry.
- Parameters:
cos_sza – Cosine of the solar zenith angle at the reference point.
solar_azimuth – Solar azimuth at the reference point in radians.
earth_radius_m – Spherical Earth radius in metres.
altitude_grid_m – Strictly increasing altitude locations in metres.
horizontal_angle_grid_radians – Strictly increasing horizontal angles measured from reference-z toward reference-x. Their total span must be less than pi.
interpolation_method – Altitude interpolation method. Horizontal interpolation is linear.
- __init__(cos_sza: float, solar_azimuth: float, earth_radius_m: float, altitude_grid_m: ndarray, horizontal_angle_grid_radians: ndarray, interpolation_method: InterpolationMethod = InterpolationMethod.LinearInterpolation)[source]#
Construct a structured spherical 2D geometry.
- Parameters:
cos_sza – Cosine of the solar zenith angle at the reference point.
solar_azimuth – Solar azimuth at the reference point in radians.
earth_radius_m – Spherical Earth radius in metres.
altitude_grid_m – Strictly increasing altitude locations in metres.
horizontal_angle_grid_radians – Strictly increasing horizontal angles measured from reference-z toward reference-x. Their total span must be less than pi.
interpolation_method – Altitude interpolation method. Horizontal interpolation is linear.
Methods
__init__(cos_sza, solar_azimuth, ...[, ...])Construct a structured spherical 2D geometry.
Return a copy of the altitude grid in metres.
Return a copy of the horizontal angle grid in radians.
location_index(altitude_index, horizontal_index)Return the altitude-fastest flattened location index.
Attributes
Location shape ordered as
(horizontal, altitude).