Skip to main content

Read FITS files in Dask Arrays.

Project description

da-fits

Read FITS files into Dask Arrays. Currently a very simple implementation.

Inspired by:

Installation

Install from PyPi

pip install dafits

Or, from GitHub:

pip install git+https://github.com/AlecThomson/da-fits.git

Example usage

from dafits import DaFits

# See doctstring
help(DaFits)

# Use astropy
da_fits = DaFits('/path/to/file.fits', use_fitsio=False, memmap=True, mode='denywrite')

# Use FITSIO -- can be faster than astropy
da_fits = DaFits('/path/to/file.fits', hdu=0, chunks='auto')

# Access dask array
data = da_fits.data

# Access header
header = da_fits.header

# Get data in memory
data.compute()

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

dafits-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

dafits-0.1.0-py2.py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page