next up previous 623
Next: SCULIB_CALC_OUTPUT_COORDS - calculate output coords of map centre and angle of output coord system N relative to apparent N
Up: Library APIs
Previous: SCULIB_CALC_FLATFIELD - calculate flat-field results for a bolometer


SCULIB_CALC_GRID - calculate the minimum rectangular grid that would contain the input jiggle pattern

Description:
This routine takes the x,y coords of the mapped points and attempts to fit them onto a rectangular grid. The grid contains the minimum number of points required to hold the measured positions.

Invocation:
CALL SCULIB_CALC_GRID (N, X, Y, XMIN, XMAX, XSPACE, NX, YMIN, YMAX, YSPACE, NY, IPOS, JPOS, STATUS)

Arguments:

N = INTEGER (Given)
the number of positions in the jiggle pattern
X (N) = REAL (Given)
the x offsets of the jiggle
Y (N) = REAL (Given)
the y offsets
XMIN = REAL (Returned)
the minimum of the output map's x-axis
XMAX = REAL (Returned)
the maximum of the x-axis
XSPACE = REAL (Returned)
the pixel spacing in x
NX = INTEGER (Returned)
the map dimension in x
YMIN = REAL (Returned)
the minimum of the output map's y-axis
YMAX = REAL (Returned)
the maximum of the y-axis
YSPACE = REAL (Returned)
the pixel spacing in y
NY = INTEGER (Returned)
the map dimension in y
IPOS (N) = INTEGER (Returned)
the I index of each jiggle position in the map
JPOS (N) = INTEGER (Returned)
the J index of each jiggle position in the map
STATUS = INTEGER (Given and returned)
global status

Copyright
Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.


next up previous 623
Next: SCULIB_CALC_OUTPUT_COORDS - calculate output coords of map centre and angle of output coord system N relative to apparent N
Up: Library APIs
Previous: SCULIB_CALC_FLATFIELD - calculate flat-field results for a bolometer

SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council