SpatioTemporal / STAREPandas

STAREpandas adds SpatioTemporal Adaptive Resolution Encoding (STARE) support to pandas DataFrames. https://starepandas.readthedocs.io/en/latest/
MIT License
4 stars 1 forks source link

Solution for trixels crossing antimeridian #72

Closed NiklasPhabian closed 2 years ago

NiklasPhabian commented 2 years ago

Trixels that have vertices with long >180 and long<180 are plotted ungracefully. Since we wrap around 180 degrees

https://towardsdatascience.com/around-the-world-in-80-lines-crossing-the-antimeridian-with-python-and-shapely-c87c9b6e1513

Since trixels are only rings, we might get away with just running an intersection with the western and eastern hemisphere.

NiklasPhabian commented 2 years ago

To make this possible, we first need to make the wrapping of the longitude optional.

NiklasPhabian commented 2 years ago

oh; this got solved by a nasty push to master. We can now set "wrap_lon" for all trixel creation methods. And then we also have STAREDataFrame.split_antimeridian()