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.