Compute the residual from mirroring molecular line cube observations of protoplanetary discs across the systemic channel. Also fits for systemic velocity and position angle.
casa_cube (https://github.com/cpinte/casa_cube)
python example.py
import mirrorball as mb
mb = mb.cube('myfile.fits')
(Vsys,PA) = mb.get_vsys_and_PA()
print(Vsys,PA)
mc = mb.mirror_cube(vsys=Vsys,PA=PA,plot=True)
print("writing to mirror.fits...")
mc.writeto('mirror.fits')
mc.plot(moment=8)