Skip to main content

FITSbits is a Python package that contains various utilities for handling FITS files.

To install fitsbits from the Python Package Index (PyPI):

$ pip install fitsbits

See the installation instructions below for details.

This package requires Python >= 3.6.

Package contents

  • compression.py: contains functions to perform safe and atomic compression and decompression of FITS files in gzip and fpack formats. Requires the GNU gzip and CFITSIO fpack/funpack utilities.

  • export.py: contains functions to export FITS images as JPEGs, generating stamps for FITS images and exporting these as PNGs, and turning collections of FITS JPEGs into movies.

  • files.py: contains functions to work on collections of FITS files: parallelized extraction of header information (including regex matching), sorting and filtering by FITS header keys; group frames by pointing, observed object, image type, or file name patterns; and parallel compression and uncompression for FITS file lists or directories.

  • operations.py: contains functions to perform various header and data extraction operations on FITS files.

  • quality.py: contains functions that help assess the quality of FITS images: including extracting image backgrounds, tiling images, checking for image curvature and vignetting, and calculating image statistics.

Command-line utilities

  • fits2export.py: command-line utility available as fitsbits-export when this package is installed; exports a FITS image to a full JPEG or PNG, stamp PNG, or JPEGs/PNGs of specified regions (RA/Dec or x/y coordinate boxes).

  • fits2mp4.py: command-line utility available as fitsbits-movie when this package is installed; converts a series of FITS images to a MP4 movie. Requires FFmpeg.

  • fitshdr.py: command-line utility available as fitsbits-header when this package is installed; extracts and dumps a FITS file's header to stdout.

Changelog

Please see https://github.com/waqasbhatti/fitsbits/blob/master/CHANGELOG.md for a list of changes applicable to tagged release versions.

Installation

Requirements

This package requires the following other packages:

  • numpy
  • scipy
  • astropy
  • Pillow
  • filelock
  • tenacity
  • scikit-learn

Installing with pip

You can install fitsbits with:

(venv)$ pip install fitsbits

Other installation methods

Install the latest version (may be unstable at times):

$ git clone https://github.com/waqasbhatti/fitsbits
$ cd fitsbits
$ python setup.py install
$ # or use pip install . to install requirements automatically
$ # or use pip install -e . to install in develop mode along with requirements

License

fitsbits is provided under the MIT License. See the LICENSE file for the full text.

Metadata

Release files for fitsbits 0.1.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 fitsbits 0.1.4
File Size Uploaded Provenance Actions
fitsbits-0.1.4.tar.gz 440.3 kB Without provenance Details for fitsbits-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 871.2 kB

Release files / fitsbits-0.1.4.tar.gz

Download URL fitsbits-0.1.4.tar.gz
Size 440.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3c04a7d8c162ae8ef7b2a963d6f0197ee576615462741faffcd8be18867137ab
BLAKE2b-256 checksum
How to use checksums
8b9ca71c4eae241c7d95fc8839627012b1bae0765722bc6fa9b211da2324565c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.20.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.4

Release files / fitsbits-0.1.4-py3-none-any.whl

Download URL fitsbits-0.1.4-py3-none-any.whl
Size 431.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94d924563fef3290d2d47b278eedac98d68603b6dc23d3987729aef644ce7566
BLAKE2b-256 checksum
How to use checksums
a216cea47a67d0f8c4c7421acf2f3073535625800c48276366995dfaff47ae4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.20.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.4

Security for fitsbits 0.1.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.

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