astropy/specutils — pull request #44 by wkerzendorf (2013-11-15 23:05:27+00:00)
Title: Fix spectrum1d attributes

** This was originally PR https://github.com/astropy/specutils/pull/42 but somehow things went awry **

A fix up of the `.wavelength`, `.energy`, ... attributes. These are now saved in a dictionary called `wcs_attributes`:
the `.wavelength` entry is an attribute `{'unit':u.m}`.

Thus we can easily add on attributes like `.velocity` by simply adding it to the dictionary.

This PR will have to be updated slightly after https://github.com/astropy/specutils/pull/40 is merged.

@keflavich - that allows `.velocity` now (among others), thoughts (now with your equivalencies)?