make_azimuth

pyrt.observation.make_azimuth(incidence, emission, phase)[source]

Construct azimuth angles from a set of incidence, emission, and phase angles.

Parameters
  • incidence (ArrayLike) – Incidence (solar zenith) angles [degrees]. All values must be between 0 and 90.

  • emission (ArrayLike) – Emission (emergence) angles [degrees]. All values must be between 0 and 180.

  • phase (ArrayLike) – Phase angles [degrees]. All values must be between 0 and 180.

Raises
  • TypeError – Raised if any values in the input arrays are nonnumerical.

  • ValueError – Raised if any values of the input arrays are outside their mathematically valid range or if the input arrays do not have the same shapes.

Return type

numpy.ndarray

Examples

Create the azimuth angles from an assortment of angles.

>>> import numpy as np
>>> from pyrt.observation import make_azimuth
>>> incidence_angles = np.array([20, 30, 40])
>>> emission_angles = np.array([30, 40, 50])
>>> phase_angles = np.array([25, 30, 35])
>>> make_azimuth(incidence_angles, emission_angles, phase_angles)
array([122.74921226, 129.08074256, 131.57329276])