Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

stamp.pro

Routines

stamp, src, x1, y1, dest, x2, y2, dx, dy, add=add, mult=mult, div=div, sub=sub

This procedure copies a rectangular subregion of a rectangular array to another one, handling all the crappy edge cases.

test

Routine details

topstamp

stamp, src, x1, y1, dest, x2, y2, dx, dy, add=add, mult=mult, div=div, sub=sub

This procedure copies a rectangular subregion of a rectangular array to another one, handling all the crappy edge cases.

Parameters

src in required

The source array (to be copied from)

x1 in required

The lo x coordinate of the subregion to copy

y1 in required

The lo y coordinate of the subregion to copy

dest in required

The destination array (to be copied to)

x2 in required

The x coordinate in dest where x1 in src should be copied

y2 in required

The y coordinate in dest where y1 in src should be copied

dx in required

The x size of the subregion to copy

dy in required

The y size of the subregion to copy

Keywords

add
mult
div
sub

Author information

History:

December 2010: Written by Chris Beaumont December 13 2010: Changed implementation for speed. The lower and upper bounds for each array are computed directly, instead of using index arrays and WHERE. cnb. Aug 24 2011: Fixed a bug in handling y trimming. cnb

toptest

test

File attributes

Modifcation date: Wed Aug 24 22:13:54 2011
Lines: 132