Closed pforshay closed 10 months ago
Adding package versions:
numpy 1.24.3 pypi_0 pypi
python 3.11.0 he550d4f_1_cpython conda-forge
spherical-geometry 1.2.23 pypi_0 pypi
@pforshay Thanks for reporting this.
While generating spatial footprints involving multiple polygons, we've run into sporadic cases where trying to generate the convex hull results in a "ValueError: Null vector." Our processing is set up to close all generated polygons by repeating the first coordinate pair again at the end. While investigating one particular case where the closed polygons resulted in this ValueError, we found that removing the repeated coordinates resulted in a successful convex hull calculation. However, we do not routinely run into these errors with other closed multi-polygon shapes, so it seems to be something about these specific cases that causes trouble for the convex hull.
Below is a bit of code that should replicate the error we are seeing, including the steps we take to get from a set of ra/dec coordinates to the convex hull calculation, along with the full output from the included fail case:
Error output: