Return to directory of Todd's CASA extensions

Calls the program ImageMagick montage with the specified arguments.


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)


CASA <2>: au.montage('*png',sort=True,tile='4x1',background='',trim=True,plotfile='Xefd.png')
Running montage -tile 4x1 -geometry 1000x1000+0+0  -trim Xefd.png
Result left in Xefd.png

-- ToddHunter - 2013-12-23
Topic revision: r2 - 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