PHOTfun is an interactive adaptation of the DAOPHOT
Project description
PHOTfun - PSF Photometry and IFU Spectral Extraction Toolkit
Description
PHOTfun is a Python package designed to simplify PSF photometry workflows using the DAOPHOT-II and ALLSTAR suite. It provides an intuitive graphical interface for executing essential photometric tasks and includes a dedicated extension, PHOTcube, for extracting stellar spectra from IFU datacubes. The GUI is built using the Shiny web framework for Python, allowing users to interactively manage every step of the process, from source detection to photometric analysis.
In crowded stellar fields, PHOTcube enables efficient and accurate spectral extraction via monochromatic slicing and PSF photometry, reconstructing high-fidelity stellar spectra.
Key Features
- Shiny-based graphical interface for running DAOPHOT-II routines interactively.
- Executes FIND, PICK, PHOT, PSF, SUBTRACT, and DAOMATCH for full PSF photometry workflows.
- PHOTcube extension for IFU datacube slicing and spectral extraction.
- Visual inspection and rejection of PSF stars via GUI.
- Interoperability with external tools like TOPCAT and DS9 through SAMP.
Credits
- Developer: Carlos Quezada
- Inspired by the work of Alvaro Valenzuela
- Built upon DAOPHOT-II and ALLSTAR by Peter Stetson
Installation
- Clone this repository.
- Make sure the dependencies listed in
setup.pyare installed. - Install the package:
pip install .
- Run the GUI using the command:
photfun
Dependencies
The package depends on the following libraries:
astropy==7.0.1faicons==0.2.2imageio==2.37.0joblib==1.4.2matplotlib==3.10.1nest_asyncio==1.6.0numpy==2.2.5pandas==2.2.3Pillow==11.2.1scipy==1.15.2shiny==1.4.0tqdm==4.67.1
Usage Instructions
PHOTfun GUI (Photometry)
- Run
photfunfrom the command line. - Select a
.fitsfile or set of images to process. - Use the interface to execute FIND, PICK, PHOT, PSF modeling, and photometry steps.
- Interactively inspect PSF stars and reject outliers.
PHOTcube (IFU Spectra Extraction)
- Load a datacube in PHOTfun.
- Automatically slice the datacube into monochromatic images.
- Apply PSF photometry on each slice using previously defined source lists.
- Extract and concatenate monochromatic fluxes into 1D spectra for each target.
Contributions
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/my-feature
- Make your changes and commit them:
git commit -am 'Add my feature'
- Push to your branch:
git push origin feature/my-feature
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
(SPANISH) PHOTfun - Fotometría PSF y Extracción Espectral desde Cubos IFU
Descripción
PHOTfun es un paquete en Python que facilita la realización de fotometría PSF usando DAOPHOT-II y ALLSTAR, con una interfaz gráfica intuitiva desarrollada con Shiny. Incluye una extensión llamada PHOTcube, especialmente diseñada para la extracción espectral desde cubos de datos IFU.
PHOTcube permite realizar una fotometría por PSF sobre imágenes monocromáticas obtenidas a partir de un cubo IFU, y luego reconstruir los espectros para cada fuente detectada, optimizando la separación de objetos en campos estelares densos.
Características principales
- Interfaz gráfica basada en Shiny para ejecutar comandos de DAOPHOT-II.
- Incluye rutinas FIND, PICK, PHOT, PSF, SUBTRACT y DAOMATCH.
- Herramienta visual para inspección y rechazo de estrellas PSF.
- Soporte SAMP para interoperabilidad con herramientas como TOPCAT y DS9.
- PHOTcube para corte del cubo IFU y extracción espectral automatizada.
Créditos
- Desarrollador: Carlos Quezada
- Inspirado en el trabajo de Alvaro Valenzuela
- Basado en DAOPHOT-II y ALLSTAR, software de Peter Stetson
Instalación
- Clona este repositorio.
- Asegúrate de tener las dependencias de
setup.pyinstaladas. - Instala el paquete con:
pip install .
- Ejecuta la interfaz con:
photfun
Dependencias
El paquete requiere las siguientes librerías:
astropy==7.0.1faicons==0.2.2imageio==2.37.0joblib==1.4.2matplotlib==3.10.1nest_asyncio==1.6.0numpy==2.2.5pandas==2.2.3Pillow==11.2.1scipy==1.15.2shiny==1.4.0tqdm==4.67.1
Instrucciones de uso
Interfaz PHOTfun (Fotometría)
- Ejecuta
photfundesde la terminal. - Selecciona archivos
.fitso conjuntos de imágenes para procesar. - Ejecuta FIND, PICK, PHOT, PSF y otros pasos desde la interfaz.
- Revisa visualmente las estrellas PSF y descarta las inadecuadas.
PHOTcube (Extracción Espectral desde Cubos IFU)
- Carga un cubo en la interfaz PHOTfun.
- El cubo será dividido automáticamente en imágenes monocromáticas.
- Aplica fotometría PSF usando listas maestras de fuentes.
- Los flujos monocromáticos se concatenan para formar los espectros de cada estrella.
Contribuciones
¡Las contribuciones son bienvenidas! Para contribuir:
- Haz un fork del repositorio.
- Crea una nueva rama:
git checkout -b feature/nueva-funcionalidad
- Realiza tus cambios y haz commit:
git commit -am 'Agrega nueva funcionalidad'
- Haz push de tu rama:
git push origin feature/nueva-funcionalidad
- Abre un pull request.
Licencia
Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para más detalles.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file photfun-0.1.4.tar.gz.
File metadata
- Download URL: photfun-0.1.4.tar.gz
- Upload date:
- Size: 56.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c0ba39e5be06b7450b0fb18fdb9bf437b37d22ea8bc1586ee34f58e4ac60963
|
|
| MD5 |
9a69bee1b82a7c338cf3b6b2ae48a725
|
|
| BLAKE2b-256 |
d064532f4a702d1405f72e75bfdf2dc3d47ffbd5c4d0ebdf42e719cc8cbdeb12
|
Provenance
The following attestation bundles were made for photfun-0.1.4.tar.gz:
Publisher:
publish.yml on ciquezada/photfun
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photfun-0.1.4.tar.gz -
Subject digest:
2c0ba39e5be06b7450b0fb18fdb9bf437b37d22ea8bc1586ee34f58e4ac60963 - Sigstore transparency entry: 203234395
- Sigstore integration time:
-
Permalink:
ciquezada/photfun@125c0a9b91336146f7c01d8f220d271495a9703b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ciquezada
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@125c0a9b91336146f7c01d8f220d271495a9703b -
Trigger Event:
release
-
Statement type:
File details
Details for the file photfun-0.1.4-py3-none-any.whl.
File metadata
- Download URL: photfun-0.1.4-py3-none-any.whl
- Upload date:
- Size: 82.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f352043c9547b0889d30575a895c0991123a822d61b1888698148149ae5b593c
|
|
| MD5 |
21c8db77023cc6c83f52fb9a372dc21e
|
|
| BLAKE2b-256 |
b0d5f1d044341d818d5f586e28e5cf8af114b6f6e42ce4828ed54b4a4818a44c
|
Provenance
The following attestation bundles were made for photfun-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on ciquezada/photfun
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photfun-0.1.4-py3-none-any.whl -
Subject digest:
f352043c9547b0889d30575a895c0991123a822d61b1888698148149ae5b593c - Sigstore transparency entry: 203234397
- Sigstore integration time:
-
Permalink:
ciquezada/photfun@125c0a9b91336146f7c01d8f220d271495a9703b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ciquezada
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@125c0a9b91336146f7c01d8f220d271495a9703b -
Trigger Event:
release
-
Statement type: