Skip to main content

da-fits

Provides FITS I/O with Dask Arrays.

As per Astropy issue #11159, dask arrays cannot be written right now when using dask.distributed

fine

Installation

pip install dafits

Usage

from distributed import Client
from dafits import getdata, getheader, writeto

with Client() as client:
    # Get a dask array from an existing file
    filename = "image.fits"
    da_array = getdata(filename)
    header = getheader(filename)

    # Write a Dask array to FITS
    # This is the magic function that does not work with
    # regular astropy.io.fits
    writeto("output.fits", da_array, header)

License

da-fits is distributed under the terms of the MIT license.

Metadata

Release files for dafits 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dafits 2.0.0
File Size Uploaded
dafits-2.0.0.tar.gz 584.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dafits 2.0.0
File Interpreter ABI Platform
dafits-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 590.9 kB

Release files / dafits-2.0.0.tar.gz

Download URL dafits-2.0.0.tar.gz
Size 584.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c51d9759ab2d4c628b330b5d4deecd6ee6f5a4d86f0e5464fcec7d7568701dd9
BLAKE2b-256 checksum
How to use checksums
a3f5967cedfdf0c02e1e8914770a36cf23a01c1233df8f4594f63e3c60bb2845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 11, 2025.

Transparency log

Release files / dafits-2.0.0-py3-none-any.whl

Download URL dafits-2.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d0ef5e488d7e6970603e629108b63dc5f268b142f228ad97ad7d1c6b7759be5
BLAKE2b-256 checksum
How to use checksums
1fed29887f8bbb173c6ecb5c635e56c7628eec6d436fbf10a713bf9722531f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 11, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page