montage

Return to directory of Todd's CASA extensions

Calls the program ImageMagick montage with the specified arguments.

Usage:

au.montage(pnglist,tile='2X2',geometry='1000x1000+0+0', plotfile='', sort=True,
                 background=None,trim=False, shave=None)
  • pnglist: list of strings, or a string with a wildcard character.
  • sort: if True, and if pnglist is a string, then sort the output of glob.glob
  • background: set the background color (e.g. #000000)
  • trim: trim the blank areas around each image
  • shave: geometry (e.g. '50x100' to remove 50 pixels from sides, 100 from top/bottom)

Example:

CASA <2>: au.montage('Xefd.ms.DA64*png',sort=True,tile='4x1',background='',trim=True,plotfile='Xefd.png')
Running montage -tile 4x1 -geometry 1000x1000+0+0  -trim  Xefd.ms.DA64.spw17.sf.f05.0.image.png Xefd.ms.DA64.spw17.sf.f08.0.image.png Xefd.ms.DA64.spw17.sf6.f10.0.image.png Xefd.ms.DA64.spw17.sf6.f13.0.image.png Xefd.png
Result left in Xefd.png

-- ToddHunter - 2013-12-23

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > Montage
Topic revision: 2014-01-17, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback