function 3dspec
Returns an average 3D spectrum of X (dispersion along the third dimension) using the mask Y (2-dim) or the center (x,y) with radii r1 and r2.
Syntax
result = 3dspec(X, Y)
result = 3dspec(X, xcenter, ycenter [, r1 [, r2]])
Arguments
X: | A three dimensional matrix. |
Y: | A two dimensional matrix. |
xcenter: | The central pixel of the spectrum in the first dimension. |
ycenter: | The central pixel of the spectrum in the second dimension. |
r1: | The radius of the circular aperture to be used. |
r2: | The scaled average of all values in the annulus defined by r1 and r2 will be subtracted from the spectrum (local sky subtraction). |