pygalfitm
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pygalfitm-1.54.tar.gz | 20.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|