Skip to content

View dwarf galaxy candidates detected in the UNIONS survey

Notifications You must be signed in to change notification settings

heesters-nick/DwarfView

Repository files navigation

DwarfView

DwarfView is a Python-based tool designed to query and visualize cutouts of dwarf galaxy candidates detected in the UNIONS surveys. It retrieves image cutouts based on celestial coordinates (Right Ascension and Declination) or a catalog of objects and generates plots in either a grid or channel-by-channel format. It supports custom input catalog files (CSV or Parquet), single-coordinate queries, and configuration via a YAML file or command-line arguments.

Features

  • Input Options: Query cutouts using a single RA/Dec pair, a custom catalog (CSV or Parquet), or the default unions_master.parquet catalog.
  • Filtering: Filter candidates by prediction probability (zoobot_pred) and optionally exclude known objects or training data.
  • Visualization: Plot cutouts in a grid layout (RGB images) or as individual channels (R, G, B) plus RGB composite.
  • Configurability: Adjust settings via a config.yaml file or override them with command-line arguments.

Installation

Prerequisites

  • CADC account
  • Experience with the CANFAR science platform

Dependencies

Install required packaged using pip

pip install -r requirements.txt

Setup

  1. Clone the repository
git clone https://github.com/heesters-nick/DwarfView.git
cd DwarfView
  1. Install the package to make dwarfview available as a command-line tool
pip install .
  1. Update main_dir, data_dir, etc., in config.jaml to match your system.

Usage

DwarfView can be run with default settings or customized via CLI arguments or the config.yaml file.

Basic Examples

Default Run

Visualize 50 candidates from the unions dwarf catalog catalog with predicted probabilities p_zoobot > 0.8:

dwarfview

Single Coordinate Query

Plot cutout for a specific object

dwarfview --ra 123.4567 --dec 89.1011

Custom Input Catalog

Use a catalog of objects to query. CSV and Parquet file are currently supported (must contain 'ra' and 'dec' columns):

dwarfview --input-file path/to/catalog.parquet

Adjust Probability Limits

Filter candidates with probabilities between 0.5 and 0.9:

dwarfview --p-min 0.5 --p-max 0.9

Channel Plot

Display individual channels plus RGB image instead of a grid plot of RGB cutouts:

dwarfview --plot-mode channel

Save Figure

Save the figure to a specific file:

dwarfview --output-file my_cutouts.png

About

View dwarf galaxy candidates detected in the UNIONS survey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages