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.1.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prepipy-0.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bfd7e9c0e0addd2f4bcd5524cf58ecf8241b3ac0115cd7a4533f91da0cbcf2f4
MD5 9ea05b4bf8da03cd34be372a5532c8d7
BLAKE2b-256 6ff755758d1597bb4b8abfbad998a7d4ca11544075942593a9da0d570d6e9628

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: prepipy-0.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0ad8629f4274fb005178be9e21083ecb2e9eaec70a601b3bce5e66af54835e
MD5 2aa3b0c67c94ad07111169ea423a291d
BLAKE2b-256 a62e563237dde0bae00ae8cbe51d18ad7d59eecf35b6cefb00f0dcc2690faca6

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