A library for GALFIT package
Project description
GALFITools
GALFIT, a well-established two-dimensional image fitting algorithm, as outlined in the work by Peng et al. (2002, AJ, 124, 266), serves as the basis for precise astronomical image surface brightness analysis. In pursuit of optimizing the utilization of GALFIT, GALFITools emerges as an collection of Python routines. These routines enhances the input and output parsing associated with GALFIT.
GALFITools extends its utility through an array of functionalities, including the facilitation of mask creation, star selection for PSFs, generation of multiple initial parameters, simulate galaxy images, multigaussian expansion (MGE) fitting, as well as computation of sky background and other pertinent photometric variables.
NOTE: GALFITools assumes the user has a basic knowledge of GALFIT and SaoImage DS9. How to use GALFIT is found in the official GALFIT webpage. The DS9 webpage can be found here and a basic tutorial here. Useful concepts with related functions and CLI commands can be found here.
Installation Instructions
First of all, install GALFIT if you haven’t done so. Check instructions here. Make sure that GALFIT can run in any path in your linux/macOS terminal.
If you want to learn how to use GALFIT, click here.
GALFITools supports Python 3.9 through 3.13. Optionally, we recommend using a virtual environment
Install GALFITools via pip:
pip install GALFITools
Here is a detailed video tutorial on installing GALFITools using a virtual environment created with Conda:
Get Started with GALFITools
Once installed, you can test GALFITools using any of the commands in the console.
In the example below, the command getReComp is executed in a terminal using the GALFIT output file galfit.01 to calculate the effective radius of a model with three Sersic components:
$ getReComp galfit.01 GALFITools: a library for GALFIT Version: 1.14.1 webpage: https://github.com/canorve/GALFITools number of model components: 3 Using a theta value of : 14.13 degrees Total Magnitude of the galaxy: 9.79 Surface brightness at radius of 50% of light (μr): 21.15 mag/'' Mean Surface Brightness at effective radius (<μ>e): 20.27 mag/'' The radius at 50% of light is 199.64 pixels or 49.91 "
Documentation
Full documentation along usage guide can be found in https://galfitools.readthedocs.io/en/latest/.
Contributing and Support
Let us know if you have issues, questions or innovative suggestions arise, we encourage you to reach out via email to canorve [at] gmail [dot] com or initiate a discussion by opening an issue. Your input is invaluable in fostering the continual refinement of GALFITools, for the betterment of the GALFIT community and beyond.
Issue tracker: https://github.com/canorve/GALFITools/issues.
Source code: https://github.com/canorve/GALFITools.
License
The codebase of GALFITools is governed by the terms of the MIT license.
Credit / Citation
If you find this code useful in your research, we kindly request that you cite it as follows:
Añorve, C. (2024). canorve/GALFITools: GALFITools v1.15.0 (v1.15.0). Zenodo. https://doi.org/10.5281/zenodo.13994492
cite all versions using the DOI: https://doi.org/10.5281/zenodo.8216472
Additonal Resources
For further capabilities and valuable extensions pertaining to GALFIT output, such as the generation of surface brightness profiles and estimation of other photometric parameters, we invite you to explore the EllipSect tool:
Note
This project has been set up using PyScaffold 4.2.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
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 galfitools-1.30.0.tar.gz.
File metadata
- Download URL: galfitools-1.30.0.tar.gz
- Upload date:
- Size: 26.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0944bec4863094f1b4f6f89cd66148e515853401edd94d9175058e68ccdf8486
|
|
| MD5 |
17589f9c1921cfee856922e0da587e19
|
|
| BLAKE2b-256 |
ff7da4917d45c36811903811d88d0869f6edcc7bd50bcf1c7a6ee8f0bfeb07be
|
Provenance
The following attestation bundles were made for galfitools-1.30.0.tar.gz:
Publisher:
publish-pypi.yml on canorve/GALFITools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galfitools-1.30.0.tar.gz -
Subject digest:
0944bec4863094f1b4f6f89cd66148e515853401edd94d9175058e68ccdf8486 - Sigstore transparency entry: 1481901582
- Sigstore integration time:
-
Permalink:
canorve/GALFITools@476eabb87225dd338cbaa4b84e9dae47400e6398 -
Branch / Tag:
refs/tags/v1.30.0 - Owner: https://github.com/canorve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@476eabb87225dd338cbaa4b84e9dae47400e6398 -
Trigger Event:
release
-
Statement type:
File details
Details for the file galfitools-1.30.0-py3-none-any.whl.
File metadata
- Download URL: galfitools-1.30.0-py3-none-any.whl
- Upload date:
- Size: 173.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d81e6bf77420b5450d5d270233881c1569c2dea7b4087e71625fd56ada3bbbfe
|
|
| MD5 |
1ab5bb7ae625a9bd1334934c2e172def
|
|
| BLAKE2b-256 |
047d42855959a6e181be165f2aad8e659e320d824e456350586036e36cce66af
|
Provenance
The following attestation bundles were made for galfitools-1.30.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on canorve/GALFITools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galfitools-1.30.0-py3-none-any.whl -
Subject digest:
d81e6bf77420b5450d5d270233881c1569c2dea7b4087e71625fd56ada3bbbfe - Sigstore transparency entry: 1481901699
- Sigstore integration time:
-
Permalink:
canorve/GALFITools@476eabb87225dd338cbaa4b84e9dae47400e6398 -
Branch / Tag:
refs/tags/v1.30.0 - Owner: https://github.com/canorve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@476eabb87225dd338cbaa4b84e9dae47400e6398 -
Trigger Event:
release
-
Statement type: