CASA FITS
CASA FITS is a Python package for working with astronomical images in both FITS and CASA image formats. It provides tools for loading, analyzing, and visualizing astronomical images, with a focus on ease of use and integration with the scientific Python ecosystem.
Features
- Support for FITS and CASA image formats
- Image loading and conversion utilities
- Visualization: matplotlib-based image display, beam drawing, contour overlays
- Image analysis tools: radial and azimuthal cuts, radial profiles, peak detection, statistics
Installation
Requires Python 3.11-3.12.
Install via pip (after cloning the repository):
pip install casa-fits
Usage
Import the package and display the image:
from casa_fits import load_fits, load_image, imshow
import matplotlib.pyplot as plt
# Load a FITS image
img = load_fits("example.fits")
# Or CASA format image with specifying size
img = load_image("./example.image.pbcor", width=128, height=128)
# Display the image
fig, ax = plt.subplots(figsize=(6, 4))
# with title
imshow(ax, img, title="TWHya Continuum")
fig.tight_layout()
plt.show()
See more samples at sample directory (more sample codes will come soon...).
Modules Overview
io: Functions for loading FITS and CASA images (load_fits,load_image).imshow,overlay_contour: Visualization utilities for displaying images and contours.radial_profile: Compute radial profiles of images.radial_cut,azimuth_cut: Extract radial and azimuthal cuts from images.detectpeak: Peak detection in images.imstat: Compute image statistics.
Documentation
Full documentation is available at https://akimasanishida.github.io/casa_fits/.
License
MIT License
Repository
Metadata
Release files for casa-fits 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| casa_fits-1.0.3.tar.gz | 16.2 kB | Without provenance | Details for casa_fits-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| casa_fits-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for casa_fits-1.0.3-py3-none-any.whl |
Total release size: 34.9 kB
Release files / casa_fits-1.0.3.tar.gz
| Download URL | casa_fits-1.0.3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3fc0d690a77c9fe0b98a6ee8d3821bb9f97c2df9ac5f076542d94fa74274298
|
|
BLAKE2b-256 checksum How to use checksums |
1b4b4f6198730e316e1679ba03b1a77b8f0a85e721e4f4dd60ed57812251348a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / casa_fits-1.0.3-py3-none-any.whl
| Download URL | casa_fits-1.0.3-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95b089e259053315b4c7aea73683eedfcc17152e7e893a79fdbc8eec27953651
|
|
BLAKE2b-256 checksum How to use checksums |
8988cf0fe2a0a3b4eadf72cbdb5b220ccb0255e56558cbbc31bd707bcd5a4f40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for casa-fits 1.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.