Skip to main content

Montage toolkit for reprojecting, mosaicking, and displaying astronomical images.

Project description

Montage is a toolkit for mosaicking and visualizing astronomical images. It contains dozens of routines for reprojecting FITS images and datacubes, matching backgrounds for a collection of reprojected images, coadding with proper attention to weighting, and visualizing the results with a variety of overlays (source catalogs, image set metadata, coordinate grids).

All standard projections are available, plus a couple of specialized ones (HEALPix and WWT TOAST). Focal plane distortion models are also supported using the SAO WCS library.

Reprojecting

Different use cases are best served with customized approached to image reprojection and Montage has four:

  • mProject, which handles all projections and is reliably flux conserving. While the most flexible, it is also the slowest.

  • mProjectPP, which is also flux conserving and much faster but only supports a few (tangent plane) projections. However, since TAN is by far the most commonly-used projection, it is commonly used.

  • mProjectQL is not 100% flux conserving but the fastest of the three. It supports all projections and the algorithm is similar the that used by the SWARP package. While not flux conserving in theory, all tests so far have found it’s output to be indistinguishable from the above routines.

  • mProjectCube is a variant of mProject extended and optimized for image cubes (images with a third/fourth dimension).

Background Matching

Montage relies on image data having been taken with overlaps between the individual images for matching backgrounds. The image-image differences are individually computed and fit (to get offset levels and optionally slopes), then a global relaxation technique is used to determine the best individual image offsets to apply to minimize the overall differences.

Various instrumental and observing anomolies (like persistence issues and transient airglow) in the individual images can compromise this process but it will still produce the best model available without those artifacts being removed beforehand.

Coaddition into Final Mosaic

All through the reprojection and correction process, individual pixel weights are maintained. This incudes any input weighting that may have been given (the reprojection algorithms support this) and keeping track of fractional pixel effects around the image edges and any “holes” in the images.

The final coaddition takes this weighting into account when coadding and the coadding process can take different forms (sum, average, mid-average or even just count), though the default is a simple averaging in the normal case where the image data represents flux density.

Visualization

The main Montage visualization routine (mViewer) can produce PNG or JPEG images of either a single image (grayscale or psuedo-color) or three image (red, green, blue) plus any number of overlays.

Some ancillary Montage tools often used with mViewer include:

  • mSubimage, to cut out regions of a FITS image, either based on sky location or pixel range.

  • mShrink, to shrink (or expand) a FITS image through (fractional) pixel replication.

  • mHistogram, which can pre-generate a histogram used by mViewer. mViewer can generate the same histogram on the fly for a single image but with mHistogram the same stretch can be applied to a set of images (e.g. tiles for display).

Ancillary Tools

There are a number of other support tools, mainly reflecting issues that arose in the course of working with image sets:

  • mImgtbl, which scans directories/trees for FITS images with WCS in the header. Most commonly used on a structured collection in a single subdirectory as part of the above processing.

  • mGetHdr/mPutHdr, for fixing errant FIT headers. mGetHdr pulls the entire FITS header out into an editable text files, then mPutHdr can be used to create a new image from the old using the edited text as a replacement header.

  • mFixNaN. There is a lot of data where pixels that should be “blank” (i.e. floating point NaN values) are stored as some other value (frequently zero). This routine can be used to fix that.

  • Executives: Several steps in the mosaicking process involves looping over an image list (reprojection, background analysis and background correction). Montage contains executive processes (e.g. mProjExec) to simplify the process.

And there is a growing list of other such routines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

MontagePy-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

MontagePy-1.2.2-cp37-cp37m-macosx_10_7_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

MontagePy-1.2.2-cp36-cp36m-manylinux1_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.6m

MontagePy-1.2.2-cp36-cp36m-macosx_10_6_intel.whl (2.2 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

MontagePy-1.2.2-cp27-cp27m-manylinux1_x86_64.whl (4.9 MB view details)

Uploaded CPython 2.7m

MontagePy-1.2.2-cp27-cp27m-macosx_10_6_x86_64.whl (2.2 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

Details for the file MontagePy-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c1b35f6b240cc92b341dff2b97ec2ab0d86b0c808d7807b962584ab6cc6e0a4e
MD5 ba95dac884ce2eef0a8617089f7de73a
BLAKE2b-256 6a8e7b3c4576cb2b69ade5d85af755831247cc8e71474f7557aae3a9fc1bdd7d

See more details on using hashes here.

File details

Details for the file MontagePy-1.2.2-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5d6da18f6f2c85fb96212eff6184da69763efd345e96961703b353fc27be3ec9
MD5 cb00c4c6defbe3e32e02c7ecb84eb63b
BLAKE2b-256 be3fbd4c722053bbd351daedbe7d2e6c2caa148d5c7b73720a973b566d66c12d

See more details on using hashes here.

File details

Details for the file MontagePy-1.2.2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a5d94cd6254bd488a170559f232653c90edcb7e6455f93c83d4abf3f252cca22
MD5 e2d42c233b5b03b7fc1577e67e77a7ce
BLAKE2b-256 d894e614384fd1b94db5ee76804af0880286203794e263e321cb0a711fef6f4d

See more details on using hashes here.

File details

Details for the file MontagePy-1.2.2-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.6m, macOS 10.6+ Intel (x86-64, i386)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 6b258a39f2b89ed13480f390ed008b176a7e05a8153be55fed105e1ab449773d
MD5 f4bf975c3a248a5847d022f60a148b7e
BLAKE2b-256 95b3a93f40a3b5e8dd2d45af15ded2505e8715350393e813c9abb5bf0a3eb792

See more details on using hashes here.

File details

Details for the file MontagePy-1.2.2-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1f463763f138f19e9308929de689fe47435892584c9234bb40413f222e0ce0f8
MD5 d4ca4a7a9c96a5813ab1f752fb92482a
BLAKE2b-256 71ada28c41f5494ad1bf68bc25ed686b007b9c6540b0942b956becd98bd9d176

See more details on using hashes here.

File details

Details for the file MontagePy-1.2.2-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: MontagePy-1.2.2-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 2.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for MontagePy-1.2.2-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a4404e854df6943b98b11f7a4eb04e695c73a3d7cbefa771bac5ab2fa69c58ca
MD5 928f38d4c21b58b0a188f42fe52c3185
BLAKE2b-256 8894f20c934430e5b76f32a99a578577aa72f5188d56d906a91644715c63e25c

See more details on using hashes here.

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