Skip to main content

skyloc: Sky Locator

Convenience tools related to Sidereal or Solar System Objects (SSO) locator (e.g., apparent position and movements) for general purposes.

This project provides both kete-dependent and kete-independent features. Many utility functions can be used without installing kete.

Initially motivated by NASA's SPHEREx mission (and NEO Surveyor mission - kete).

"Why are your codes here so superficial and crude/messy?"

Documentation

Orbit data and propagation

Keep using orb, m_ng = fetch_orb(...) to obtain the orbital-element DataFrame and its non-gravitational-force mask. Pass orb to SSOLocator or locator_twice for the usual field-of-view workflow.

For repeated full-catalog propagation, optionally build catalog = CachedOrbPropagator(orb, m_ng) once and reuse its validated state caches. It does not replace the DataFrame or shorten the fetch step. See the complete fetch-to-cache example.

Installation

Basic Installation (without kete)

To install skyloc without the large Rust-based kete dependency:

pip install skyloc

This provides access to utility functions, SPICE tools, and other features that don't require kete.

pqfilt>=0.4.0 is installed with Skyloc and provides expression filtering.

Installation with Kete

For FOV analysis and SSO propagation, use the default Kete extra. It installs kete (>=3.3) and is also included in skyloc[full].

pip install 'skyloc[kete]'

From a Skyloc checkout, use uv to install the Caltech-IPAC fork at v1.1.4. This fork requires Python 3.9–3.13 and a Rust toolchain.

UV_PROJECT_ENVIRONMENT=.venv-ipac uv sync --python 3.13 --extra kete_ipac

For pip, specify the Git source explicitly. The published extra alone selects the kete_ipac (v1.x) package from PyPI.

pip install --config-settings='build-args=--bindings pyo3 --features kete_core/pyo3' 'kete @ git+https://github.com/Caltech-IPAC/kete.git@v1.1.4'
pip install 'skyloc[kete_ipac]'

Both branches install and import as kete. The uv command above keeps the IPAC build in .venv-ipac.

Features

  • SSO Orbital Elements (no kete required)

    • Query and manage SSO orbital elements from SBDB (Small-Body Database)
    • Convenient file management for orbital element data
  • JPL Horizons Integration (no kete required for most features)

    • Download and manage DE (Development Ephemeris) files
    • Query vectors and ephemeris data using astroquery
  • SPICE toolkits (no kete required)

    • Some convenience tools for SPICE toolkits (such as meta kernel generations)
  • Field of View (FOV) Analysis (requires kete)

    • Check which FOVs contain specific sidereal sky locations and/or SSOs (similar to kete)
    • Easy-to-use interface for FOVs (FOVCollection class)
  • SSO Position and Motion (requires kete)

    • Calculate apparent positions and movements of SSOs (uses kete)
    • Compute SSO magnitudes and phase angles
    • Additional ephemeris-related convenience tools

Code Style

This project uses a 92-character line length (inspired by Julia's BlueStyle) for code and 79 characters for docstrings. While this differs from the standard Python PEP8 recommendations, it provides a good balance for modern displays.

To maintain consistent formatting, use the black formatter:

black **/*.py

Citation

skyloc is not intended to be published as an independent, citable package. Depending on your usage, simply cite this repo as a URL link, but always consider citing any of the following as appropriate: kete, spiceypy, or NAIF SPICE.

Metadata

Release files for skyloc 0.4

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

Source distribution (sdist)

Source distribution for skyloc 0.4
File Size Uploaded Provenance Actions
skyloc-0.4.tar.gz 4.8 MB Without provenance Details for skyloc-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skyloc 0.4
File Interpreter ABI Platform Actions
skyloc-0.4-py3-none-any.whl Python 3 none any Details for skyloc-0.4-py3-none-any.whl

Total release size: 7.3 MB

Release files / skyloc-0.4.tar.gz

Download URL skyloc-0.4.tar.gz
Size 4.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ab7935286c50d94a91fa3c01c0ec212579571f6f2908b4fea13dda8a45d06ecf
BLAKE2b-256 checksum
How to use checksums
9955fa05230dfe3433afcae130abbac57818ab8893e19f5bb8dd60ed3de46dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / skyloc-0.4-py3-none-any.whl

Download URL skyloc-0.4-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1abdf248cddaa42cb5183487089125a2682ed7571113f1854ad98c6da30ee564
BLAKE2b-256 checksum
How to use checksums
c20406f71ff2e49a3b7fdd871821138a84124e51f5e3d63b23faa654b958301f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for skyloc 0.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files No provenance

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