next up previous 623
Next: SURFLIB_CALC_POLPACK_ANGROT - Average rotations angles over integration
Up: Library APIs
Previous: SURFLIB_CALC_IJPOS - Calculate the position of data on an XY grid


SURFLIB_CALC_OUTPUT_GRID - Calculate the grid required to contain data given the X,Y positions

Description:
Finds the extent of the data (given X and Y) and then reports back the size of the grid that is necessary to contain the data. Also returns the reference pixel position.

Invocation:
CALL SURFLIB_CALC_OUTPUT_GRID (N_FILES, N_PTS, PIXEL_SZ, X_PTR, Y_PTR, NX, NY, I_CENTRE, J_CENTRE, STATUS )

Arguments:

N_FILES = INTEGER (Given)
Number of data sets (ie files)
N_PTS = INTEGER (Given)
Number of X,Y pairs supplied
PIXEL_SZ = REAL (Given)
Size of each pixel (radians)
X_PTR( N_FILES ) = INTEGER (Given)
Pointers to arrays containing DOUBLE PRECISION X positions
Y_PTR( N_FILES ) = INTEGER (Given)
Pointers to arrays containing DOUBLE PRECISION Y positions
NX = INTEGER (Given)
Required number of points in X in output grid
NY = INTEGER (Given)
Required number of points in Y in output grid
I_CENTRE = INTEGER (Given)
Location of reference pixel in X
J_CENTRE = INTEGER (Given)
Location of reference pixel in Y
STATUS = INTEGER (Given & Returned)
Global Status

Notes:

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


next up previous 623
Next: SURFLIB_CALC_POLPACK_ANGROT - Average rotations angles over integration
Up: Library APIs
Previous: SURFLIB_CALC_IJPOS - Calculate the position of data on an XY grid

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