function longslit

Create a pseudo-longslit from a datacube.

Syntax
result = longslit(cube, x, y, theta, width)

Arguments
cube:   A datacube
x:   The x center for the longslit
y:   The y center for the longslit
theta:   The position angle, in degrees
width:   The width of the longslit, in pixels


Returns
A 2D longslit spectrum

See also
function twodcut