function longslit

Create a pseudo-longslit from a datacube.

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

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

A 2D longslit spectrum

See also
function twodcut