hypso.processing.georeference#

Georeferencing of an L1B: pixel latitude and longitude, and sun and sensor angles.

Two sources of pixel coordinates:

  • indirect: latitude and longitude arrays you supply (e.g. the GCP-corrected processing-temp/latitudes_indirectgeoref.dat files), written as latitude/longitude;

  • direct: from ADCS attitude and position telemetry alone, written as latitude_direct/longitude_direct.

Without indirect coordinates the direct ones become latitude and longitude too. Frame interpolation, direct georeferencing and the angles use hypso.geometry.

Functions#

georeference_l1b(tree[, latitudes, longitudes, direct])

Add pixel coordinates and sun and sensor angles to an L1B tree.

Module Contents#

hypso.processing.georeference.georeference_l1b(tree, latitudes=None, longitudes=None, direct=True)[source]#

Add pixel coordinates and sun and sensor angles to an L1B tree.

An already georeferenced L1B gets new geometry; none of the old is kept.

Parameters:
  • tree (xarray.DataTree) – L1B product tree.

  • latitudes (array_like or path, optional) – Indirect pixel coordinates, (lines, samples) arrays or paths to raw float32 files. Omit both to use direct georeferencing as the main geometry.

  • longitudes (array_like or path, optional) – Indirect pixel coordinates, (lines, samples) arrays or paths to raw float32 files. Omit both to use direct georeferencing as the main geometry.

  • direct (bool, default True) – Also compute direct georeferencing from the ADCS telemetry (latitude_direct, longitude_direct, <angle>_direct). Skipped with a warning if the telemetry points off the Earth.

Returns:

L1B tree with geometry.

Return type:

xarray.DataTree