Skip to main content

A package to produce produce FITS cubes.

Project description

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.

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-2.0.0.tar.gz (584.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dafits-2.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dafits-2.0.0.tar.gz
  • Upload date:
  • Size: 584.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dafits-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c51d9759ab2d4c628b330b5d4deecd6ee6f5a4d86f0e5464fcec7d7568701dd9
MD5 da39c93de4f3acc59dde1f189c7534ce
BLAKE2b-256 a3f5967cedfdf0c02e1e8914770a36cf23a01c1233df8f4594f63e3c60bb2845

See more details on using hashes here.

Provenance

The following attestation bundles were made for dafits-2.0.0.tar.gz:

Publisher: cd.yml on AlecThomson/da-fits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dafits-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: dafits-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dafits-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0ef5e488d7e6970603e629108b63dc5f268b142f228ad97ad7d1c6b7759be5
MD5 adf31a3cf4fa3f20d98f26e85c995e84
BLAKE2b-256 1fed29887f8bbb173c6ecb5c635e56c7628eec6d436fbf10a713bf9722531f56

See more details on using hashes here.

Provenance

The following attestation bundles were made for dafits-2.0.0-py3-none-any.whl:

Publisher: cd.yml on AlecThomson/da-fits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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