Skip to main content

A library for GALFIT package

Project description

ReadTheDocs PyPI-Server Project generated with PyScaffold https://zenodo.org/badge/DOI/10.5281/zenodo.8216472.svg https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status Coverage Supported Python versions pyOpenSci Peer-Reviewed https://joss.theoj.org/papers/10.21105/joss.09534/status.svg

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:

IMAGE ALT TEXT HERE

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.


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:

EllipSect


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galfitools-1.30.0.tar.gz (26.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galfitools-1.30.0-py3-none-any.whl (173.9 kB view details)

Uploaded Python 3

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

Hashes for galfitools-1.30.0.tar.gz
Algorithm Hash digest
SHA256 0944bec4863094f1b4f6f89cd66148e515853401edd94d9175058e68ccdf8486
MD5 17589f9c1921cfee856922e0da587e19
BLAKE2b-256 ff7da4917d45c36811903811d88d0869f6edcc7bd50bcf1c7a6ee8f0bfeb07be

See more details on using hashes here.

Provenance

The following attestation bundles were made for galfitools-1.30.0.tar.gz:

Publisher: publish-pypi.yml on canorve/GALFITools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for galfitools-1.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d81e6bf77420b5450d5d270233881c1569c2dea7b4087e71625fd56ada3bbbfe
MD5 1ab5bb7ae625a9bd1334934c2e172def
BLAKE2b-256 047d42855959a6e181be165f2aad8e659e320d824e456350586036e36cce66af

See more details on using hashes here.

Provenance

The following attestation bundles were made for galfitools-1.30.0-py3-none-any.whl:

Publisher: publish-pypi.yml on canorve/GALFITools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page