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, please use the “Cite this repository” option in the GitHub sidebar.


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.36.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.36.0-py3-none-any.whl (197.1 kB view details)

Uploaded Python 3

File details

Details for the file galfitools-1.36.0.tar.gz.

File metadata

  • Download URL: galfitools-1.36.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.36.0.tar.gz
Algorithm Hash digest
SHA256 341b8bd3d94d22ae2d7bed9cdfafeaf7b32c7839112f0f613fb1826aad386a66
MD5 82e44371acac57eae35b7d905a6d952b
BLAKE2b-256 a4b39ab9ac79f7fdccf265890800c68644209751454d87b87868cda64e113c21

See more details on using hashes here.

Provenance

The following attestation bundles were made for galfitools-1.36.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.36.0-py3-none-any.whl.

File metadata

  • Download URL: galfitools-1.36.0-py3-none-any.whl
  • Upload date:
  • Size: 197.1 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.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b8bfda62a11c0e8fd6747d12ae38c97d9b7aad0ce7171ef62d4eb4af092520f
MD5 ce0218aca4e8c7b8b3d70126a7a4d1e8
BLAKE2b-256 858d76a5ec99fca221cfe84607a2082a65415875693faab44eb9d784492195c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for galfitools-1.36.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