Skip to main content

1 geometry

geometry

1.1 Classes

Name Description
InitGeometry Initialize geometrical variables:

1.1.1 InitGeometry

geometry.InitGeometry(ds, calc_scat_angle=False, calc_air_mass=False)

Initialize geometrical variables: - cosines of the view and zenith angles (muv, mus) - relative azimuth angle (raa) - air mass (1/mus + 1/muv) - scattering angle

The view angles (vza, vaa) may have a bands dimension (per-band viewing geometry): the variables derived from them (muv, raa, air mass, scattering angle) then also have this dimension.

1.2 Functions

Name Description
reduce_geometry Reduce a geometry variable to a single band
scattering_angle Scattering angle in degrees

1.2.1 reduce_geometry

geometry.reduce_geometry(da, band=None, dim='bands')

Reduce a geometry variable to a single band

The geometry variables (view angles and derived quantities) may have a spectral dimension dim (per-band viewing geometry). This function is used by the processing steps which do not support a per-band geometry, to reduce it to the geometry of a reference band.

da: geometry variable band: label of the reference band. If None, the first band is used. dim: name of the spectral dimension

Returns da unchanged if it has no dimension dim.

1.2.2 scattering_angle

geometry.scattering_angle(mu_s, mu_v, phi)

Scattering angle in degrees

mu_s: cos of the sun zenith angle (degrees) mu_v: cos of the view zenith angle (degrees) phi: relative azimuth angle in degrees