SpatioTemporal / pystare

The Python interface for the SpatioTemporal Adaptive Resolution Encoding (STARE), a unified indexing for geolocated data.
https://pystare.readthedocs.io/en/latest/
12 stars 2 forks source link

pystare.expand_intervals() multi_resolution=True doesn't work. #122

Open michaelleerilee opened 1 year ago

michaelleerilee commented 1 year ago

pystare.expand_intervals(intervals, resolution, multi_resolution=True ) expands all intervals to sids of resolution, not respecting the resolution of the interval.

michaelleerilee commented 1 year ago

Setting the resolution to a non-negative value overrides the multi_resolution flag. The solution is to set the resolution to -1, which tells the function to adapt its output to the resolutions of the input data.

This should be clarified in the documentation.