regionate.utilitiesΒΆ

Functions

consecutive_lists(data[, mod])

TO DO

coord_list(lons, lats)

Turns iterable longitudes and latitudes into a list of coordinate pairs

flatten_dict_values(d)

Flattens iterable dictionary values into a single list.

flatten_lol(lol)

Flattens a list of lists into a single list

lon_mod(lon, lon_ref)

Longitudes modulo 360 degrees

loop(x)

Loop a list or numpy array by appending the first value to the end.

split_non_consecutive_list(data[, mod])

TO DO

unique_coords(coords[, closeness_threshold])

Removes duplicate coordinates from a list of (lon, lat) coordinate pairs

unique_list(l)

Removes duplicate entries from list

unique_lonlat(lons, lats[, closeness_threshold])

Removes duplicate coordinates from geographical coordinate arrays

wrap_non_consecutive_listsoflists(lol[, mod])

TO DO