A library for GALFIT package
Project description
GALFITools
A library for GALFIT
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.
Installation Instructions
The python libraries required are:
numpy
astropy
scipy
matplotlib
mgefit
Install GALFIT if you haven’t done so. Make sure that GALFIT can run in any path in your terminal.
Optionally, the establishment of a virtual environment can be considered.
The latest release of GALFITools can be downloaded and subsequently installed via one of the following methods:
cd GALFITools pip install .
or
cd GALFITools python setup.py install
Alternatively, you can install it via pip:
pip install GALFITools
Here is tutorial for the installation of GALFITools:
In conjunction with the installation, a compilation of pertinent shell commands will be incorporated. Subsequently, a comprehensive evaluation of GALFITools’ performance can be conducted through automated tests using the following procedure:
To run the tests locally, install and invoke tox:
pip install tox
run the tests:
tox
HOW TO USE
For comprehensive insights into GALFITools’ repertoire of routines and their optimal deployment, it is recommended to consult the provided documentation on usage, accessible via the following link:
This comprehensive resource elaborates on the practical implementation of each individual routine.
Video Tutorials:
Turn on English subtitles.
Here is a tutorial video for galaxy NGC720 using GALFITools:
Here is another for galaxy NGC1198 using GALFITools:
Here I model the barred spiral galaxy PGC 34232 with GALFITools v1.11.0:
API Reference
For the customization of these functions to align with your specific scripting requirements, the API documentation serves as an indispensable resource. The detailed instructions for utilizing these functions within your own scripts can be found here:
License
The codebase of GALFITools is governed by the terms of the MIT license.
Cite as
To acknowledge the utility of GALFITools in your research, we kindly request that you cite it as follows:
Añorve, C. (2024). canorve/GALFITools: GALFITools v1.7.0 (v1.7.0). Zenodo. https://doi.org/10.5281/zenodo.10968602
Additional Resources
Check EllipSect to create surface brightness profiles from GALFIT output and estimate other photometric parameters:
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:
Questions?
Should any 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.
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
File details
Details for the file galfitools-1.15.0.tar.gz
.
File metadata
- Download URL: galfitools-1.15.0.tar.gz
- Upload date:
- Size: 25.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49b1227a921d1263708204ff11520d6d96bc0bbbeb1e61588aeed46041937b07 |
|
MD5 | 670ffa3d752a68fa141c4c29690afa16 |
|
BLAKE2b-256 | 6a894443727315b11c894f3a27aaceabe336c36cea9f9e1d480b6dba42748ccb |
File details
Details for the file GALFITools-1.15.0-py3-none-any.whl
.
File metadata
- Download URL: GALFITools-1.15.0-py3-none-any.whl
- Upload date:
- Size: 101.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb23ec417bc40e2cdd4790ccf51439434e0686550ac9f0c1008a4ed1e26e614 |
|
MD5 | 3985c0bac159c0c96baf16d566e5559d |
|
BLAKE2b-256 | 71c403a17072679d038478772fecbe1168d1f7ee5526d1e3d49dfc724aa77011 |