Skip to main content

Polypix

Polypix

Batch coverage of circles, polygons, and swept paths on a HEALPix grid.

PyPI Python 3.12+ License Tests Docs Benchmarks

Documentation | Changelog | PyPI | Repository | Issues

Hand Polypix a batch of spherical regions and it gives you back the HEALPix cells they cover, as standard RING IDs in NumPy arrays. The spherical geometry runs in a native kernel, which uses several cores for large calls. Use the result for coverage maps, visibility counts, and revisit analysis.

How many Starlink satellites can you see?

Global map of the mean number of catalogued Starlink objects in view

All 10,771 catalogued Starlink objects, propagated for an hour and counted cell by cell. Two dense bands around 40° north and south see 70 to 90 objects at once, the equator about 37, the poles about 20. Behind it are 137 million cap-cell hits, counted by one cover_cap() call per timestamp, never stored, and done in well under a second.

Read the case study for the propagation, the service-cap geometry, and the timings.

Install

pip install polypix

There are wheels for CPython 3.12 and newer on Linux x86-64 and ARM64, macOS 11+ on Intel and Apple Silicon, and Windows x86-64. NumPy is the only runtime dependency.

Quick start

Two satellites overhead, each serving a circle on the ground. Centers are Cartesian directions and radii are in radians:

import numpy as np
import polypix as px

centers = np.array([[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]])
radii = np.radians([6.0, 4.0])

coverage = px.cover_cap(centers, radii, resolution=6)
print(np.diff(coverage.offsets))  # [134  56]

coverage[i] holds the cells covered by satellite i. A cell is covered when its center falls inside the circle, so partial overlap at the boundary does not count.

Ask for counts instead and the region-cell pairs are never built, which is how the map above is made:

counts = px.cover_cap(centers, radii, resolution=6, reduce=px.Count())
print(counts.shape)  # (49152,) one value per cell on the grid

Documentation

Start with Getting started. The site also carries the API reference, a resolution guide, and two constellation case studies that run end to end.

License

Apache License 2.0. See THIRD_PARTY_NOTICES.md for the dependency and embedded-code notices.

Metadata

Release files for polypix 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polypix 0.4.0
File Size Uploaded Provenance
polypix-0.4.0.tar.gz 77.9 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for polypix 0.4.0
File
polypix-0.4.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
polypix-0.4.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
polypix-0.4.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details
polypix-0.4.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details
polypix-0.4.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details

Total release size: 2.3 MB

Release files / polypix-0.4.0.tar.gz

Download URL polypix-0.4.0.tar.gz
Size 77.9 kB
Tags Source
SHA-256 checksum
How to use checksums
81430021f8c774661173cad549bbb6d059ed45605aa3856a4bde9b774afd63b9
BLAKE2b-256 checksum
How to use checksums
c061896858089b1bfbfad1027989891633204637f9861dbe451a752bbbc7cd47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / polypix-0.4.0-cp312-abi3-win_amd64.whl

Download URL polypix-0.4.0-cp312-abi3-win_amd64.whl
Size 407.3 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
73b2a17a990638522da37102a6abeadc04947ca6391451a09b558d2805787be2
BLAKE2b-256 checksum
How to use checksums
f02a28ba753aff5ee83cc1c809d7db1edbf4a5486a0a9cf5df3cd0f2f793db14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / polypix-0.4.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL polypix-0.4.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 488.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b0123bc5bdec95ba008074b5e005b89ba9719175f02e7e60c10bfb01665a6a44
BLAKE2b-256 checksum
How to use checksums
30649958f63db378451225142b36b8afbf772f2660af39415708dcdb35a8abda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / polypix-0.4.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL polypix-0.4.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 453.6 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
20ed6a334e83861cbc376efb03f2d3342c202e041d1d49c7ef9fafd9b952b7db
BLAKE2b-256 checksum
How to use checksums
71b54fd6b1adc947374bfb4e6e04fd7ad3725f3481302db9d572b9dbb0a46065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / polypix-0.4.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL polypix-0.4.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 456.2 kB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
e1326a2ef8f7a3f21f9cc0d324df95732a725410904f9a8e50e2e22672df784f
BLAKE2b-256 checksum
How to use checksums
dae68fac40e84d40fdde28c9e5e9c71025b60803b33b98e67d807347a7aa47b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / polypix-0.4.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL polypix-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
Size 430.2 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1ff2f89963abac784acf70cb75fe7ed55f19da8219b2f4fd61cbde74ecd2ea70
BLAKE2b-256 checksum
How to use checksums
c4efba25e1507b5934929c9f27e5801d940eab4156ad223cc6d31bad2b9bc7b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Security for polypix 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for polypix-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page