Skip to main content

A GUI-assisted photometric contamination analysis tool.

Project description

Logo PHOTO-CAT

English · Italiano

Photometric Contamination Analyzer Tool

PHOTO-CAT builds a neighbour index from an astronomical catalogue and queries nearby sources that may contaminate selected photometric targets.

Download and usage · Command line · Input data · Troubleshooting

Python Platforms Runtime Interface


Overview

PHOTO-CAT is a local Python tool for catalogue-level photometric contamination analysis.

It can build a neighbour index from a source catalogue, query selected targets, and write a JSON summary containing contamination metrics and neighbouring sources that match the configured field-of-view and magnitude limits.

PHOTO-CAT is designed for reproducible local use. It includes beginner-friendly launchers, a graphical configuration window, automatic dependency setup, and project-local runtime handling so user/system Python installations are not modified.

Download and get started

  1. Download the latest release archive.
  2. Extract the archive.
  3. Run the starter for your operating system:
    • Windows: double-click START_WINDOWS.bat
    • macOS/Linux: open Terminal in the folder and run sh START_UNIX.sh
  4. Select your catalogue CSV in the graphical configurator.
  5. Check the detected column names.
  6. Click Save + run.

See Download and usage for a fuller walkthrough.

Features

  • Build a neighbour index from a photometric catalogue.
  • Query potential contaminating sources around selected targets.
  • Configure runs through a graphical interface.
  • Run the same workflow from a command-line interface for automation and remote systems, with direct overrides for every config value.
  • Use either a targets CSV or a manual list of source IDs.
  • Validate input files, column names, output folders, and index paths.
  • Keep dependencies isolated inside the project .venv folder.
  • Use a project-local runtime fallback when no suitable Python is available.
  • Detect stale or moved virtual environments and rebuild them safely.
  • Produce readable console output and user-facing error messages.

Files

This distribution includes the following main files and folders:

  • README.md, the file you are currently reading.
  • README_IT.md, the Italian README.
  • START_WINDOWS.bat, the main Windows launcher.
  • START_UNIX.sh, the main macOS/Linux launcher.
  • config.yaml, the runtime configuration file managed by the GUI.
  • data/, example CSV files for quick testing.
  • docs/, user and maintainer documentation.
  • tests/, automated tests for configuration loading and the sample pipeline.
  • .github/workflows/, continuous integration and package publishing workflows.
  • scripts/, platform launcher helpers.
  • src/, the PHOTO-CAT Python source code.
  • LICENSE, the full GPL-3.0 license text.
  • REUSE.toml, SPDX/REUSE licensing metadata.
  • CITATION.cff, machine-readable citation metadata.
  • CODE_OF_CONDUCT.md, CONTRIBUTING.md, and SECURITY.md, repository community and maintenance files.

Runtime folders such as .venv/, .runtime/, logs, and output files are generated locally and should not be committed.

Input data

PHOTO-CAT expects CSV input files.

The default catalogue columns follow common Gaia-style names:

  • source_id
  • ra
  • dec
  • phot_g_mean_mag

Column names are case-sensitive and must match the CSV header exactly. If your files use different names, change them in the graphical configurator before running the pipeline.

See Input data for details.

Output

PHOTO-CAT writes generated index files and query results to the configured output directory.

The query stage produces a JSON file containing one result entry per processed target. Each entry includes the target data, contamination metrics, and the list of qualifying neighbouring sources.

See Pipeline and output for details.

Runtime and Python handling

PHOTO-CAT uses Python locally and avoids modifying the user’s system Python installation.

The launchers use an existing Python only when it is supported and passes the required checks. Supported versions are Python 3.10 through 3.13.

If no suitable Python is available, PHOTO-CAT uses a private runtime under .runtime/ and installs project dependencies only into .venv/.

PHOTO-CAT does not permanently modify PATH, upgrade user Python, uninstall user Python, or install packages into the user’s system Python.

See Runtime and Python for details.

Command-line usage

After installing the package, the unified CLI is available as photo-cat.

Common commands:

photo-cat configure
photo-cat run --config config.yaml
photo-cat run --config config.yaml --input-catalog data/catalog.csv --ra-column RAJ2000 --dec-column DEJ2000 --mag-column Gmag --field-of-view-arcsec 60 --delta-mag 4
photo-cat build-index --config config.yaml --input-catalog data/catalog.csv --out-dir output/index
photo-cat query --config config.yaml --index-dir output/index --targets-input data/targets.csv --field-of-view-arcsec 47 --delta-mag 5
photo-cat doctor

The root launchers remain the recommended entry point for non-technical local users. The CLI is intended for automation, remote machines, and reproducible workflows. It supports direct runtime overrides for every value in config.yaml; see Command-line usage. The doctor command supports both package-install checks and project-folder checks.

Documentation

User documentation:

Maintainer documentation:

Troubleshooting

For common startup, dependency, Tkinter, CSV, and virtual environment issues, see Troubleshooting.

Citation

Please include the following citation and acknowledgement in any published material that makes use of PHOTO-CAT.

Citation:

<paper reference>

Acknowledgement:

This research made use of PHOTO-CAT, a Python package for photometric contamination analysis (<paper reference>), developed with the support of Blue Skies Space Ltd. (www.bssl.space).

Replace <paper reference> with the final paper reference once available.

Acknowledgements

The authors gratefully acknowledge:

  • E. Drago for key contributions to the software implementation, testing workflow and the technical refinement of PHOTO-CAT.

  • J. Burgio for the design and creation of the PHOTO-CAT logo and visual identity.

License

PHOTO-CAT is distributed under the GNU General Public License v3.0 only. See LICENSE for the full license text.

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

photo_cat-1.4.0.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

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

photo_cat-1.4.0-py3-none-any.whl (72.0 kB view details)

Uploaded Python 3

File details

Details for the file photo_cat-1.4.0.tar.gz.

File metadata

  • Download URL: photo_cat-1.4.0.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for photo_cat-1.4.0.tar.gz
Algorithm Hash digest
SHA256 735b0eaf260df5b69aac4614d7aed4666043203185bc19d5dd401b982aa055a8
MD5 1dabf23a5cb806c91f73602ad733ad3b
BLAKE2b-256 c885e666b177be893453674daf2f70c04d87083c3e059af6992cea08ce0688ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for photo_cat-1.4.0.tar.gz:

Publisher: publish-python-package.yml on Daddi14/photo-cat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photo_cat-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: photo_cat-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for photo_cat-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab32895d8f4ef959375d17c94ef19e6574b1c0e641bb812434e6db3db811d98a
MD5 44110e6b5e731ce9605257fd54bfdc4e
BLAKE2b-256 f45efab268e99e8fd9befd98d7f3cb28ef99b6fdb0d427bf1ad5b6c3f4dd3fa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for photo_cat-1.4.0-py3-none-any.whl:

Publisher: publish-python-package.yml on Daddi14/photo-cat

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