Next: SURFLIB_CALC_OUTPUT_GRID - Calculate the grid required to contain data given the X,Y positions
Up: Library APIs
Previous: SURFLIB_CALC_GRIDIJ - Calculate the position of a pixel number in an IJ grid
SURFLIB_CALC_IJPOS
- Calculate the position of data on an XY grid
- Description:
- Given an XY position, calculates the IJ position in the grid.
The I,J's are then placed into the output array (of dimension
2, N_PTS)
- Invocation:
- CALL SURFLIB_CALC_IJPOS (N_PTS, PIXEL_SZ,
I_CENTRE, J_CENTRE, X_POS, Y_POS, IJ,
STATUS )
- Arguments:
-
-
N_PTS = INTEGER (Given)
-
Number of X,Y pairs supplied
-
PIXEL_SZ = DOUBLE (Given)
-
Size of each pixel (radians)
-
I_CENTRE = INTEGER (Given)
-
Location of reference pixel in X
-
J_CENTRE = INTEGER (Given)
-
Location of reference pixel in Y
-
X_POS = DOUBLE PRECISION (Given)
-
X positions
-
Y_POS = DOUBLE PRECISION (Given)
-
Y positions
-
IJ ( 2, N_PTS ) = INTEGER (Given)
-
Positions of each point (I,J) in output grid
-
STATUS = INTEGER (Given & Returned)
-
Global Status
-
Copyright
- Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy
Research Council. All Rights Reserved.
Next: SURFLIB_CALC_OUTPUT_GRID - Calculate the grid required to contain data given the X,Y positions
Up: Library APIs
Previous: SURFLIB_CALC_GRIDIJ - Calculate the position of a pixel number in an IJ 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