datacube.api.query.solar_offset

datacube.api.query.solar_offset(geom, precision='h')[source]

Given a geometry or a Dataset compute offset to add to UTC timestamp to get solar day right.

This only work when geometry is “local enough”.

Parameters
  • geom (Union[Geometry, Dataset]) – Geometry with defined CRS

  • precision (str) – one of 'h' or 's', defaults to hour precision

Return type

timedelta