Skip to main content

Python3 GalfitM wrapper

Project description

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.

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

pygalfitm-1.54.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

pygalfitm-1.54-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pygalfitm-1.54.tar.gz.

File metadata

  • Download URL: pygalfitm-1.54.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for pygalfitm-1.54.tar.gz
Algorithm Hash digest
SHA256 2340c0dc2f384c8dc84ecd92f1a3bb864ea7d0e4c2d4ab2c196b253c9785eb7b
MD5 1e26f1b814a60f2accdf59d40503644b
BLAKE2b-256 6e3725a44fe007eb6ec3f31c1b6b83ff7fa73735ad0e94260232a8a68f521d37

See more details on using hashes here.

File details

Details for the file pygalfitm-1.54-py3-none-any.whl.

File metadata

  • Download URL: pygalfitm-1.54-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for pygalfitm-1.54-py3-none-any.whl
Algorithm Hash digest
SHA256 1ae3411efec3abc97ce4c681c878f9f81261169bfdf30d03d2705dd2fa5deb9b
MD5 5b1f065b81bf268a646912725b7918f8
BLAKE2b-256 3ff7818911a77a5a0f073f2acf3d1c303cd984f4d7bdcea1715bd4bc9ea38bd0

See more details on using hashes here.

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