This is a read-only mirror of pymolwiki.org

Load img stack

From PyMOL Wiki
Revision as of 22:00, 27 January 2016 by Speleo3 (talk | contribs) (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Type Python Script
Download load_img_stack.py
Author(s) Thomas Holder
License BSD-2-Clause
This code has been put under version control in the project Pymol-script-repo

This script adds the load_img_stack command, which loads a set of images as a map object. The images can either be individual files, or contained in a multi-page TIFF file.

Usage

load_img_stack pattern [, name [, grid [, channel [, normalize [, extent ]]]]]

Arguments

  • pattern = str: image filename or pattern
  • name = str: map object name to create
  • grid = float: grid spacing in Angstrom {default: 1.0}
  • channel = int: color channel for RGB images {default: 0}
  • normalize = 0 or 1: normalize data {default: 1}
  • extent = 3-float: (a,b,c) edge lengths in Angstrom, overwrites "grid" arguments if given {default: }

Example

load_img_stack img*.png, name=map, extent=(10.0, 10.0, 5.0)
volume vol, map, rainbow

See Also