function longslit

Create a pseudo-longslit from a datacube.

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

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
opening_angle:   An opening angle of the pseudo-longslit, in degrees


Returns
A 2D longslit spectrum

See also
function twodcut