pystare.spatial#

adapt_resolution_to_proximity(sids)

Adapts the resolution of SIDs to match the geographical distanc between the SIDs.

cmp_spatial(sids1, sids2[, flatten])

Performs an n by m containment test between two sets of sids.

cover_from_hull(lat, lon, level)

Converts a set of hull vertices to a trixel cover.

cover_from_ring(lat, lon, level)

Converts ring vertices to a trixel cover.

expand_intervals(intervals, level[, ...])

Expand intervals

from_intervals(intervals)

Parameters:

from_latlon(lat, lon, level)

Converts latitudes and longitudes to SIDs at the given level.

from_latlon_2d(lat, lon[, level, ...])

Coverts latitudes and longitudes to SIDs.

from_lonlat(lon, lat, level)

Converts longitudes and latitudes to SIDs at the given level.

hex2int(sids)

Converts hex SIDs to int SIDs

int2bin(sids)

Converts 64 bit integer to binary

int2hex(sids)

Converts int sids to hex sids

intersect(indices1, indices2[, multi_resolution])

Depreciated alias to intersection()

intersection(sids1, sids2[, multi_resolution])

Creates an intersection of sids1 and sids2

intersects(cover, sids[, method])

Intersects tests between a cover and a collection of sids.

latlon2circular_cover(lat, lon, radius, level)

Creates a circular cover around a lat/lon center

lon_wrap_180(lon)

Wrap angle in degrees to [-180 180]

sid2circular_cover(index, radius, level)

Creates a circular cover around an SID center

spatial_clear_to_resolution(sids)

Clears the SID location bits up to the encoded spatial resolution Clears the SID location bits up to the encoded spatial resolution

spatial_coerce_resolution(sid, resolution)

spatial_increment_from_level(level)

spatial_resolution(sids)

Returns the spatial resolution of an sid

spatial_resolution_from_km(km[, return_int])

spatial_scale_km(level)

Returns a rough estimate for the length scale at level."

spatial_terminator(sid)

spatial_terminator_mask(levels)

Creates a STARE mask for a given STARE resolution.

speedy_subset(sids_left, sids_right[, ...])

Fast subsetting of data

to_area(sids)

Returns areas of trixels of SIDs in sterdians.

to_box_cover_from_latlon(lat, lon, resolution)

Constructs a numpy array of intervals covering a 4-corner box specified using lat and lon.

to_compressed_range(sids)

Parameters:

to_hull_range(indices, level)

Parameters:

to_hull_range_from_latlon(lat, lon, level)

to_latlon(sids)

Converts SIDs to latitudes and longitudes

to_latlonlevel(sids)

Converts SIDs to latitudes, longitudes and levels

to_level(sids)

Converts SIDs to levels

to_neighbors(sids)

Parameters:

to_nonconvex_hull_range_from_latlon(lat, ...)

Depreciated alias to cover_from_ring() .

to_vertices_latlon(sids)

Converts SIDs into latitudes and longiutdes of the trixel vertices and the centers

triangulate(lats, lons)

Helps prepare data for matplotlib.tri.Triangulate.

triangulate_indices(indices)

Prepare data for matplotlib.tri.Triangulate.