quadsections: Produce image section list for sections of quadformat images

Package: quadred

Usage

quadsplit images

Parameters

images
List of image names for images in quadformat.
window = "datasec" (datasec|trimsec|biassec)
Type of section to output. The choices are "datasec" for the amplifier section which includes the bias if any is present, "trimsec" for the trim section, and "biassec" for the bias section.
section = ""
Section to be overlapped. The output sections will be the parts of the amplifier windows which are included within this section.
template = ""
Template for producing the output. The template replaces occurs of $I with the image name, $S with the section, and $A with the amplifier label. If none is specified then the default template "$I$S\\n" is used which produces the image name with section separated by new-lines. The special characters "\n" is the new-line and the extra "\" is required to pass the new-line through to the formatting routine.

Description

Images in "quadformat" (see help topic quadformat) are broken down in sections and written to the standard output in a specified format.

Examples

1. To print the default data sections.

qu> quadsec quad0072
quad0072[1:1034,1:1024]
quad0072[1163:2196,1:1024]
quad0072[1:1034,1025:2048]
quad0072[1163:2196,1025:2048]

3. To apply an overlap section.

qu> quadsec quad0072 section=[1000:2000,1000:2000]
quad0072[1000:1034,1000:1024]
quad0072[1163:2000,1000:1024]
quad0072[1000:1034,1025:2000]
quad0072[1163:2000,1025:2000]

2. To print the trim sections.

qu> quadsec quad0072 window=trimsec
quad0072[11:1034,1:1024]
quad0072[1163:2186,1:1024]
quad0072[11:1034,1025:2048]
quad0072[1163:2186,1025:2048]

4. To make a custom output.

qu> quadsec quad0072 template="image=$I, section=$S, amplifier=$A\\n"
image=quad0072, section=[1:1034,1:1024], amplifier=11
image=quad0072, section=[1163:2196,1:1024], amplifier=12
image=quad0072, section=[1:1034,1025:2048], amplifier=21
image=quad0072, section=[1163:2196,1025:2048], amplifier=22
qu> quadsec quad0072 template="$I.$A,"
quad0072.11,quad0072.12,quad0072.21,quad0072.22,

See also

quadformat