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: object

A structured spherical geometry varying in altitude and one angle.

Atmospheric locations are flattened with altitude varying fastest. The shape is 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.

altitudes()

Return a copy of the altitude grid in metres.

horizontal_angles()

Return a copy of the horizontal angle grid in radians.

location_index(altitude_index, horizontal_index)

Return the altitude-fastest flattened location index.

Attributes

shape

Location shape ordered as (horizontal, altitude).

altitudes() ndarray[source]#

Return a copy of the altitude grid in metres.

horizontal_angles() ndarray[source]#

Return a copy of the horizontal angle grid in radians.

location_index(altitude_index: int, horizontal_index: int) int[source]#

Return the altitude-fastest flattened location index.

property shape: tuple[int, int]#

Location shape ordered as (horizontal, altitude).