GUI-based astronomical FITS viewer and analysis tool
Project description
Takefits
Takefits is a GUI-based astronomical FITS viewer and analysis tool developed by Shunya Takekawa. ORCID: 0000-0001-8147-6817
Requirements
- Python 3.12 or later
Setup
From PyPI:
pip install takefits
For a local checkout:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install .
Usage
takefits [path/to/fitsfile]
You can also launch it with:
python -m takefits [path/to/fitsfile]
Takefits can also save your current work using workspace files, so you can resume it anytime. To restore a saved workspace, launch Takefits with the workspace file path.
takefits /path/to/yourfile.workspace.json
Features
Takefits provides a comprehensive set of tools for radio astronomy data analysis.
1. Multi-View Cube Visualization
Visualize 3D FITS data cubes with synchronized XY, XZ, and ZY planes.
2. Moment Maps & Channel Maps
Calculate moment maps (Integrated Intensity, Velocity Field, Velocity Dispersion) and create tiled channel maps.
3. Interactive P-V Diagram
Interactively draw slice lines on the map to generate Position-Velocity (P-V) diagrams instantly.
4. Spectrum Analysis
Extract spectra from a single pixel or calculate the average spectrum within selected regions (Circle, Rectangle, Ellipse, Cube).
5. Publication-Quality Figures
Generate publication-quality figures directly from the GUI.
- Contours: Overlay customizable contours with adjustable levels.
- Markers: Annotate images with symbols, lines, and text.
- Beam Size: Visualize the HPBW ellipse.
- Vector Export: Save plots in PDF, EPS, or SVG formats.
Other Tools
- Regridding: Resample data to a new grid, different coordinate system, or a FITS template.
- Smoothing: Apply Gaussian/Boxcar spatial smoothing and Hanning smoothing along the velocity axis.
- Masking: Apply threshold-based or external masks to data.
- Cutout: Crop data cubes based on regions or coordinate ranges.
- Image Arithmetic: Perform mathematical operations between FITS cubes or with constants using numpy-like expressions.
- Unit Conversion: Convert spectral or intensity units for analysis.
- Baseline Subtraction: Fit and subtract spectral baselines from data cubes.
- Clump Finding: Identify structures using ClumpFind, FellWalker, and Dendrogram algorithms.
Research use
If you use this software in scientific publications, please cite the Zenodo DOI:
https://doi.org/10.5281/zenodo.18328843
For a specific release, cite the version DOI listed on Zenodo.
Algorithm Citations
The tools below implement established analysis algorithms. If you use them for your analysis, please cite the original papers:
Clump Finding
- Williams, J. P., de Geus, E. J., & Blitz, L. (1994). Determining structure in molecular clouds. The Astrophysical Journal, 428, 693-712. doi:10.1086/174279
- Berry, D. S. (2015). FellWalker-A clump identification algorithm. Astronomy and Computing, 10, 22-31. doi:10.1016/j.ascom.2014.11.004
- Rosolowsky, E. W., Pineda, J. E., Kauffmann, J., & Goodman, A. A. (2008). Structural Analysis of Molecular Clouds: Dendrograms. The Astrophysical Journal, 679(2), 1338-1351. doi:10.1086/587685
Masking / Moment Analysis
- Rosolowsky, E., & Leroy, A. (2006). Bias-free Measurement of Giant Molecular Cloud Properties. Publications of the Astronomical Society of the Pacific, 118(842), 590-610. doi:10.1086/502982
- Dame, T. M. (2011). The Technique of Velocity-Resolved Moment Masking. arXiv e-prints, arXiv:1101.1499. arXiv:1101.1499
Contact
shunya_at_kanagawa-u.ac.jp
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 takefits-0.2.0.tar.gz.
File metadata
- Download URL: takefits-0.2.0.tar.gz
- Upload date:
- Size: 560.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b888693c56c332b07cf36cc3879909306c13e4b3d743bfe2630a082dfc27e3b
|
|
| MD5 |
d4a0ada95fba7542139c26d319fccbbd
|
|
| BLAKE2b-256 |
24ebfdd5300bb77161d4b266bbeff55dd8a6b9198b529eb86342efd719ea184e
|
Provenance
The following attestation bundles were made for takefits-0.2.0.tar.gz:
Publisher:
publish.yml on s-takekawa/takefits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takefits-0.2.0.tar.gz -
Subject digest:
0b888693c56c332b07cf36cc3879909306c13e4b3d743bfe2630a082dfc27e3b - Sigstore transparency entry: 1060295465
- Sigstore integration time:
-
Permalink:
s-takekawa/takefits@08f3a8dd59866ae1cd8f55e04e0c142d247f4dca -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/s-takekawa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08f3a8dd59866ae1cd8f55e04e0c142d247f4dca -
Trigger Event:
push
-
Statement type:
File details
Details for the file takefits-0.2.0-py3-none-any.whl.
File metadata
- Download URL: takefits-0.2.0-py3-none-any.whl
- Upload date:
- Size: 602.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10de2d587fe554c53ef6d2336665e2f8351376c50d99725cde6e75864eb2d843
|
|
| MD5 |
a356d59df770c181c0f48da84d6b9db2
|
|
| BLAKE2b-256 |
c5e08c1f3f589180df34561160f0e6c633b41564d4f9bd0a1cb36dba65ed129b
|
Provenance
The following attestation bundles were made for takefits-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on s-takekawa/takefits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takefits-0.2.0-py3-none-any.whl -
Subject digest:
10de2d587fe554c53ef6d2336665e2f8351376c50d99725cde6e75864eb2d843 - Sigstore transparency entry: 1060295536
- Sigstore integration time:
-
Permalink:
s-takekawa/takefits@08f3a8dd59866ae1cd8f55e04e0c142d247f4dca -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/s-takekawa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08f3a8dd59866ae1cd8f55e04e0c142d247f4dca -
Trigger Event:
push
-
Statement type: