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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file dafits-0.1.0.tar.gz.

File metadata

  • Download URL: dafits-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for dafits-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d54eacd9f3a5b820159a00d4c59cc2fbd28b3f153a1fab363ff6f4f68e0d034e
MD5 a9a522354f4c95bc55f1eef383b52c4f
BLAKE2b-256 d061ac578e16e80f063e90b3027c66fb6f16d87bb58183bb8fcb2a755acd8fae

See more details on using hashes here.

File details

Details for the file dafits-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dafits-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for dafits-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 500da06fe75d3a1214700393b128e871fabc73a64485c6e23bb9273bb8ae28d9
MD5 6d1a6558e0b2ec408cc3f14809a36f0a
BLAKE2b-256 0c6dd5c39a9f4d2d16f7b581f9290d75446c38d4a6cdfbb8b78da25be4a24554

See more details on using hashes here.

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