# pyresample.spherical_utils module

Functions to support the calculation of a coverage of an area by a set of spherical polygons.

It can for instance be a set of satellite overpasses to be received of a given local stations over a certain time window where we want to calculate how much of an area is covered by the onboard scanning instrument(s).

class pyresample.spherical_utils.GetNonOverlapUnions(polygons)

  Bases: `GetNonOverlapUnionsBaseClass`

  NonOverlapUnions class.

  Init the GetNonOverlapUnions.

  __init__(polygons)

    Init the GetNonOverlapUnions.

class pyresample.spherical_utils.GetNonOverlapUnionsBaseClass(geom_objects)

  Bases: `object`

  Base class to get the smallest set of union objects that does not overlap.

  The objects are here Python sets of integers - but are abstracts for geometrical shapes on a sphere.

  __init__(geom_objects)
  get_ids()

    Get a list of identifiers identifying the gemoetry objects in each polygon union.

  get_polygons()

    Get a list of all non-overlapping polygon unions.

  merge()

    Merge all overlapping objects (sets or polygons).

pyresample.spherical_utils.check_if_two_polygons_overlap(polygon1, polygon2)

  Check if two SphPolygons overlaps.

pyresample.spherical_utils.check_keys_int_or_tuple(adict)

  Check if the dictionary keys are integers or tuples.

  If they are not, raise a KeyError

pyresample.spherical_utils.merge_tuples(atuple)

  Take a nested tuple of integers and concatenate it to a tuple of integers.