radio-astro-tools/spectral-cube — pull request #91 by astrofrog (2014-05-14 20:32:15+00:00)
Title: Preserve spectral unit requested

At the moment, if I run ``with_spectral_unit(u.km/u.s)``, it returns m/s due to the limitations of astropy.wcs. However, I think this will confuse users, so how about storing internally the spectral unit required, and converting on-the-fly when accessing ``spectral_axis``?