Useful tools for FITS files.
Project description
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.
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.
-
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. -
fitshdr.py: command-line utility available as
fitsbits-header
when this package is installed; extracts and dumps a FITS file's header to stdout. -
operations.py: contains functions to perform various header and data extraction operations on FITS files.
-
quality.py: contains functions to assess the quality of FITS images.
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
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fitsbits-0.1.1.tar.gz
.
File metadata
- Download URL: fitsbits-0.1.1.tar.gz
- Upload date:
- Size: 439.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be327b3037d329b6f202a109bfae06edc568dfc18d558dc64da3d5ba5c7312c3 |
|
MD5 | 02c21614fed9c8af97d8a0ce66216612 |
|
BLAKE2b-256 | 4b14f2d4cdb7fdd9fc3c75b53c76043ac221a47f59d971fb8d2d131d1bc796c1 |
File details
Details for the file fitsbits-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: fitsbits-0.1.1-py3-none-any.whl
- Upload date:
- Size: 430.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 784e907de9f604808a99be94e0178a4050ff8316f7b787ddeae0bb29736a11eb |
|
MD5 | d1ac6dd6efc8b09ebb083a18a03e7e62 |
|
BLAKE2b-256 | ea76cfa6e4d3285804d5b994b9342dd550d9b22154927cf6443825e91aa064e1 |