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()
Metadata
Release files for dafits 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dafits-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dafits-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / dafits-0.1.0.tar.gz
| Download URL | dafits-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d54eacd9f3a5b820159a00d4c59cc2fbd28b3f153a1fab363ff6f4f68e0d034e
|
|
BLAKE2b-256 checksum How to use checksums |
d061ac578e16e80f063e90b3027c66fb6f16d87bb58183bb8fcb2a755acd8fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / dafits-0.1.0-py2.py3-none-any.whl
| Download URL | dafits-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
500da06fe75d3a1214700393b128e871fabc73a64485c6e23bb9273bb8ae28d9
|
|
BLAKE2b-256 checksum How to use checksums |
0c6dd5c39a9f4d2d16f7b581f9290d75446c38d4a6cdfbb8b78da25be4a24554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|