Skip to main content

pygalfitm

DOI

Pygalfitm is a Python package that provides an interface to run the GALFITM software, a widely used tool in astrophysics for fitting 2D surface brightness distributions of galaxies. Pygalfitm simplifies the process of preparing input files, executing GALFITM, and post-processing the output results.

The package is built on top of Python’s subprocess module and integrates easily with libraries such as NumPy and Matplotlib. It includes tools to define GALFITM input parameters, run the fitting process, and generate visualizations of the input, model, and residual images.

Installation

Using pip:

pip3 install pygalfitm

Or from source:

python3 setup.py build
python3 setup.py install

Examples

Usage examples are provided in: • example.ipynb – basic usage example • example-splus.ipynb – application to S-PLUS data • dev/scripts/ – utility scripts for working with tables and batch processing

Citation

If you use pygalfitm in your work, citation is optional but appreciated. You may cite it as:

@software{pygalfitm_software,
  author       = {Oliveira Schwarz, G. B. and
                  Cortesi, A. and
                  Okiyama, L.},
  title        = {pygalfitm},
  month        = feb,
  year         = 2023,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.15648590},
  url          = {https://doi.org/10.5281/zenodo.15648590}
}

Please also cite the original GALFITM software if you use this interface:

Bamford, S. P., Häußler, B., Rojas, A. L., Borch, A., et al. (2011). MegaMorph: multi-wavelength measurement of galaxy structure with GALFITM. MNRAS, 427, 138.

GALFITM is developed by the MegaMorph project. For more information, visit: https://www.nottingham.ac.uk/astronomy/megamorph/

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome and appreciated.

Release files for pygalfitm 1.54

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygalfitm 1.54
File Size Uploaded
pygalfitm-1.54.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygalfitm 1.54
File Interpreter ABI Platform
pygalfitm-1.54-py3-none-any.whl Python 3 none any Details

Total release size: 42.6 kB

Release files / pygalfitm-1.54.tar.gz

Download URL pygalfitm-1.54.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2340c0dc2f384c8dc84ecd92f1a3bb864ea7d0e4c2d4ab2c196b253c9785eb7b
BLAKE2b-256 checksum
How to use checksums
6e3725a44fe007eb6ec3f31c1b6b83ff7fa73735ad0e94260232a8a68f521d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / pygalfitm-1.54-py3-none-any.whl

Download URL pygalfitm-1.54-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ae3411efec3abc97ce4c681c878f9f81261169bfdf30d03d2705dd2fa5deb9b
BLAKE2b-256 checksum
How to use checksums
3ff7818911a77a5a0f073f2acf3d1c303cd984f4d7bdcea1715bd4bc9ea38bd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.54 This release

2 release files

1.53

1 release file

1.52

1 release file

1.51

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page