Skip to content

PySTARE

Rilee edited this page Sep 22, 2019 · 1 revision

STARE has a growing Python interface for working with the spatial and temporal indices.

Spatial

indices = from_latlon(lat, lon, level)
lat,lon = to_latlon(indices)
lat,lon,levels = to_latlonlevel(indices)
levels = to_level(indices)
range_indices = to_compressed_range(indices)
result = expand_intervals(intervals,resolution,result_size_limit=1000)
range_indices = to_hull_range(indices,resolution,range_size_limit=1000)
range_indices = to_hull_range_from_latlon(lat,lon,resolution,range_size_limit=1000)
latsv,lonsv,latc,lonc = to_vertices_latlon(indices)
cmp = cmp_spatial(indices1, indices2)
intersected = intersect(indices1, indices2, multiresolution=True)
starts,terminators = from_intervals(intervals)

Temporal

indices = from_utc(datetime,resolution)