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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c51d9759ab2d4c628b330b5d4deecd6ee6f5a4d86f0e5464fcec7d7568701dd9
|
|
| MD5 |
da39c93de4f3acc59dde1f189c7534ce
|
|
| BLAKE2b-256 |
a3f5967cedfdf0c02e1e8914770a36cf23a01c1233df8f4594f63e3c60bb2845
|
Provenance
The following attestation bundles were made for dafits-2.0.0.tar.gz:
Publisher:
cd.yml on AlecThomson/da-fits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dafits-2.0.0.tar.gz -
Subject digest:
c51d9759ab2d4c628b330b5d4deecd6ee6f5a4d86f0e5464fcec7d7568701dd9 - Sigstore transparency entry: 195348243
- Sigstore integration time:
-
Permalink:
AlecThomson/da-fits@4c6be6bfdf6fbf78393688adedb4a10927297518 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/AlecThomson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4c6be6bfdf6fbf78393688adedb4a10927297518 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0ef5e488d7e6970603e629108b63dc5f268b142f228ad97ad7d1c6b7759be5
|
|
| MD5 |
adf31a3cf4fa3f20d98f26e85c995e84
|
|
| BLAKE2b-256 |
1fed29887f8bbb173c6ecb5c635e56c7628eec6d436fbf10a713bf9722531f56
|
Provenance
The following attestation bundles were made for dafits-2.0.0-py3-none-any.whl:
Publisher:
cd.yml on AlecThomson/da-fits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dafits-2.0.0-py3-none-any.whl -
Subject digest:
1d0ef5e488d7e6970603e629108b63dc5f268b142f228ad97ad7d1c6b7759be5 - Sigstore transparency entry: 195348244
- Sigstore integration time:
-
Permalink:
AlecThomson/da-fits@4c6be6bfdf6fbf78393688adedb4a10927297518 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/AlecThomson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4c6be6bfdf6fbf78393688adedb4a10927297518 -
Trigger Event:
release
-
Statement type: