Skip to main content

Provides the ability to stretch and combine astronomical images from multiple bands into (RGB) colour images.

Project description

prepipy

PREtty PIctures using PYthon

Overview

This package provides the ability to stretch and combine astronomical images from multiple bands into (RGB) colour images.

Images can be created in two main modes:

  • JPEG image containing only the image in the pixel scale of the input, including coordinate information readable by e.g. Aladin.
  • Matplotlib image containing one ore more RGB conmibations from different bands in a grid layout. World coordinate axes are plotted on the images if available in the original input files. An additional sup-header containing the source name can be included. This mode also supportes multiple different options, such as plotting grid lines on top of the image, marking the center point in the image, of marking additional points of interest within the image, specified by world coordinates. By default, these images are saved in the pdf format.

Example colour image of a star-forming region

Basic Usage

JPEG mode

Current way to use from command line: run rgbcombo.py with arguments as described in the help message.

Matplotlib mode

TBA

Input data

The input images are expected to fullfill the following criteria:

  • FITS format images with the images data appearing in the primary HDU.
  • Pixel scale and position matching across all input images. No additional resampling/reprojection is performed.
  • WCS information is present in the FITS files.

Setting options

The package currently uses two YAML configuration files to specify various options. These are referred to as the (general) config file and the bands file containing meta-information about the bands used in the original data. If these files are not placed in the working directory, the path to them needs to be specified using the -c and -b command line options.

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

prepipy-0.6.2.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

prepipy-0.6.2-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file prepipy-0.6.2.tar.gz.

File metadata

  • Download URL: prepipy-0.6.2.tar.gz
  • Upload date:
  • Size: 42.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.16 Windows/10

File hashes

Hashes for prepipy-0.6.2.tar.gz
Algorithm Hash digest
SHA256 db2dd320fb92b652c706804993d72a0e4f85c2ba1e406b29d1fcffea90aaa614
MD5 ff3326223de5fbeb2d0b71593df34510
BLAKE2b-256 3e4411421f860b8a9517734d19d00a5f6fc1b4a032b15692676dd67da89800b2

See more details on using hashes here.

Provenance

File details

Details for the file prepipy-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: prepipy-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.16 Windows/10

File hashes

Hashes for prepipy-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92d7aefaa37bfa39a18f11fca553f86d798eec799a9b50bee29944b4322fee92
MD5 f3220dddd8de4c70ccbbee168e70f2fc
BLAKE2b-256 8790b8c02427c33c483c16ebd8f21e86c79b0dd8b951d9a18175efd010c275d4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page