Skip to main content

Fayde

The fayde Python package provides the Fayde astrometric plate solver. You provide a FITS image of a star field and information about the frame, such as its pointing, pixel scale, and observation time. Fayde finds the stars in the image, matches them against the UCAC4 star catalog, and returns a verified world coordinate system (WCS) solution with its measured accuracy.

Prerequisites

To use the package, you need the following:

  • CPython 3.10 or later. One wheel works with every later version, and you don't need Rust to install it.
  • A local copy of the UCAC4 catalog. The catalog isn't included with this package. For download instructions, see Get the UCAC4 catalog.

To install the package from PyPI, follow these steps:

  1. Activate a virtual environment.

  2. Install the package with pip:

    python -m pip install fayde
    

    The package also installs the fayde command. It runs the same code as the release binaries.

For more information about installation, see Install the Python package.

Solve a frame

To open the catalog and load the indexes only once, reuse one solver for every frame. To find the stars in an image and solve it, create the solver and call solve_image:

import fayde

solver = fayde.Solver("/path/to/UCAC4")
report = solver.solve_image("frame.fits")
if report["solved"]:
    cards = report["wcs_cards"]

Replace /path/to/UCAC4 with the path to your catalog directory and frame.fits with the path to your FITS image.

The image argument accepts the path to a FITS file, a 2-D NumPy array, or an Astropy HDU. For an array, pass the frame's header with header. You can use Fayde without NumPy or Astropy.

If you detect the stars yourself, pass their positions to solve. In this example, x, y, and flux are sequences of the source positions and fluxes from your detector, and hdr is the image header. The indexes and instrument arguments are optional. To solve the source list, check the WCS, and find catalog stars at the source positions, use these methods:

solver = fayde.Solver("/path/to/UCAC4", indexes=["allsky-1.0.fidx"])
report = solver.solve(x, y, flux=flux, header=hdr, instrument="profiles/example.json",
                      deadline=5.0)
if report["solved"]:
    cards = report["wcs_cards"]
    check = solver.verify(x, y, cards, header=hdr)
    stars = solver.stars_at(cards, x, y, header=hdr)

To find the stars in an image without solving it, use fayde.detect:

detection = fayde.detect("frame.fits")
sources = detection["sources"]

The Python interface follows the fayde command line:

  • The solve, solve_image, and verify methods take the command-line options under the same names with underscores, such as pointing_sigma and relax_priors_on_failure. In Python, run help(fayde) to list them. The detect and stars_at functions have their own options. To list those options, run help(fayde.detect) and help(fayde.Solver.stars_at).
  • Input coordinates x and y are 0-based unless you pass origin=1. Pixel fields in the report are 1-based, as in FITS.
  • The header argument accepts a dictionary, a list of header cards, or an astropy.io.fits.Header.
  • The instrument argument accepts a profile dictionary or the path to a profile file.
  • The report is a dictionary with the same fields as the command-line JSON report.
  • An invalid option raises ValueError. A solver failure raises fayde.FaydeError, which stores the report in its report attribute.
  • Fayde releases the global interpreter lock (GIL) while it solves, so threads can share one Solver.

The package includes type information: the py.typed marker and the fayde.Report, fayde.AtReport, and fayde.DetectReport types.

For more information about priors, pattern indexes, and versioning, see the Fayde README. For the changes in each version, see the changelog.

License

Fayde uses the Apache License 2.0. The wheel includes LICENSE, NOTICE, and THIRD-PARTY-LICENSES.md. The latter lists the licenses of the Rust crates compiled into the wheel. If you use Fayde in a publication, cite it as described in CITATION.cff.

Metadata

Release files for fayde 0.3.1

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

Source distribution (sdist)

Source distribution for fayde 0.3.1
File Size Uploaded Provenance Actions
fayde-0.3.1.tar.gz 356.1 kB With provenance Details for fayde-0.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fayde 0.3.1
File Actions
fayde-0.3.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for fayde-0.3.1-cp310-abi3-win_amd64.whl
fayde-0.3.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for fayde-0.3.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fayde-0.3.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for fayde-0.3.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
fayde-0.3.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for fayde-0.3.1-cp310-abi3-macosx_11_0_arm64.whl
fayde-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for fayde-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 5.9 MB

Release files / fayde-0.3.1.tar.gz

Download URL fayde-0.3.1.tar.gz
Size 356.1 kB
Tags Source
SHA-256 checksum
How to use checksums
71d57e174f6e69d9fd5253e5e1f8a30f5e02be8400831c1c3d76aab52041f407
BLAKE2b-256 checksum
How to use checksums
7d413b4c87010bb2c74ff69ce89dc3bcd781065b9dff65d146afa057446655f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / fayde-0.3.1-cp310-abi3-win_amd64.whl

Download URL fayde-0.3.1-cp310-abi3-win_amd64.whl
Size 1.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3a926f0830541da99648638d91567fd6b62da2c17f6acd141f6a29a7984aa1de
BLAKE2b-256 checksum
How to use checksums
0745aa197f60c02e4bdf72f1f4028e1438ff43661b0d8aa0a7427158178ec2d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / fayde-0.3.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fayde-0.3.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
69c346b4adf5cfd669d907ff2fdc66aa2b4a8e63aa32915ea1dee52a13422392
BLAKE2b-256 checksum
How to use checksums
0f882448beb0775a977289db0966a2b4d5eeb9cd1c841f84df48994d144f522f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / fayde-0.3.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL fayde-0.3.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9c77939939f751d0a20bb19c9ed4e84d6fc0aa06a6b5584d90dd3159e19ab9a7
BLAKE2b-256 checksum
How to use checksums
acef7abf6407122fc4ad87189289ea82b2f3106b071b1e9b3c8bf50c27d4e7f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / fayde-0.3.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL fayde-0.3.1-cp310-abi3-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d7993f631f9b500e4accf0509ee291a35dd9249b62a0a54157edd62264a52fb5
BLAKE2b-256 checksum
How to use checksums
f668c4e6bb3bcb45e1b543d763b62f9f562a59848d8790f4ddec1d3398691e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / fayde-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL fayde-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
09fd015d5a61aca222a751915169c0bb149ab28c164347ea912a39b7b157e56e
BLAKE2b-256 checksum
How to use checksums
7e4f37897a6123c53857b2fcf13b0ba3a1a44ee944d0d9a49482fefae4e9061b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for fayde 0.3.1

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 fayde-0.3.1.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 Nov 17, 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.

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

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