SCULIB_WTFN_REGRID

Regrid supplied data onto a rectangular grid

Description:

This routine takes data with a variance array and x y positions and regrids it onto a rectangular grid using a weight function interpolation.

This is an image space implementation of fourier techniques. In Fourier terms the technique could be described as follows:-

The analogue of these process steps in image space is as follows:

If the method is done properly, the rebinned map is in fact the map on the new sample mesh that has the same FT as the continuous function going through the original sample points.

Convolution Functions:-

Invocation

CALL SCULIB_WTFN_REGRID(USEGRD, N_MAPS, N_PTS, WTFNRAD, WTFNRES, WEIGHTSIZE, SCALE, DIAMETER, WAVELENGTH, PXSIZE, NX_OUT, NY_OUT, I_CENTRE, J_CENTRE, WTFN, WEIGHT, BOLWT, N_BOL, MAX_BOLS, DATA_PTR, VAR_PTR, XPOS_PTR,YPOS_PTR, OUT_DATA, OUT_VARIANCE, OUT_QUALITY, CONV_WEIGHT, STATUS)

Arguments

USEGRD = LOGICAL (Given)
Use guard ring for final stage of rebin
N_MAPS = INTEGER (Given)
Number of data files read in
N_PTS (N_MAPS) = INTEGER (Given)
Number of points in each input dataset
WTFNRAD = INTEGER (Given)
Radius of largest weight function in scale lengths
WTFNRES = INTEGER (Given)
Number of values per scale length in the supplied weight function
WEIGHTSIZE = INTEGER (Given)
Radius of supplied weighting function
SCALE = REAL (Given)
Size of a scale length in the same units as PXSIZE
DIAMETER = REAL (Given)
Diameter of telescope in metres
WAVELENGTH = REAL (Given)
Wavelength of map in microns
PXSIZE = REAL (Given)
Pixel size in radians
NX_OUT = INTEGER (Given)
Number of pixels in X direction of output map
NY_OUT = INTEGER (Given)
Number of pixels in Y direction of output map
I_CENTRE = INTEGER (Given)
X reference pixel
J_CENTRE = INTEGER (Given)
Y reference pixel
WTFN() = REAL (Given)
The weighting function
WEIGHT(N_MAPS) = REAL (Given)
The weight of each input dataset
BOLWT (MAX_BOLS, N_MAPS) = REAL (Given)
Relative weight for each bolometer
N_BOL (N_MAPS) = INTEGER (Given)
Number of bolometers from each map
MAX_BOLS = INTEGER (Given)
Max number of bolometers allowable in BOLWT
DATA_PTR(N_MAPS) = INTEGER (Given)
Array of pointers to REAL input data
VAR_PTR(N_MAPS) = INTEGER (Given)
Array of pointers to REAL input variance
XPOS_PTR(N_MAPS) = INTEGER (Given)
Array of pointers to X bolometer positions (DOUBLE)
YPOS_PTR(N_MAPS) = INTEGER (Given)
Array of pointers to Y bolometer positions (DOUBLE)
OUT_DATA ( NX_OUT, NY_OUT ) = REAL (Returned)
Output map
OUT_VARIANCE ( NX_OUT, NY_OUT ) = REAL (Returned)
Output variance
OUT_QUALITY ( NX_OUT, NY_OUT ) = BYTE (Returned)
Output quality
CONV_WEIGHT ( NX_OUT, NY_OUT ) = REAL (Returned)
Contribution to each pixel
STATUS = _INTEGER (Given & Returned)
Global status

Copyright

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