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)
Built Distribution
Close
Hashes for dafits-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500da06fe75d3a1214700393b128e871fabc73a64485c6e23bb9273bb8ae28d9 |
|
MD5 | 6d1a6558e0b2ec408cc3f14809a36f0a |
|
BLAKE2b-256 | 0c6dd5c39a9f4d2d16f7b581f9290d75446c38d4a6cdfbb8b78da25be4a24554 |