regionate.regions.Regions

class regionate.regions.Regions(region_dict, name=None)[source]

Bases: object

A dictionary of polygonal regions defined by a list or array of geographical coordinates.

Methods

copy([remove_duplicate_points])

Returns a copy of the Regions.

find_all_overlaps([closeness_threshold, ...])

Finds indices of self.overlaps between region boundaries

copy(remove_duplicate_points=False)[source]

Returns a copy of the Regions.

Parameters:

remove_duplicate_points (bool) – Default: False. If True, prunes any duplicate points from the input arrays (lons, lats).

Returns:

region_copy – Copy of the region.

Return type:

regionate.regions.Regions type

find_all_overlaps(closeness_threshold=5000.0, face_indices=False)[source]

Finds indices of self.overlaps between region boundaries

Combined with sectionate, this can be used to determine transports across shared boundaries between two adjacent regions.