forked from astropy/specutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper functions to control spectral shifting
The setters for Spectrum1d.redshift and Spectrum1d.radial_velocity shift the spectral axis, which from astropy#820 is not always what users expect. This adds three helpers, one which does the current shifting (and is explicitly documented to do that), and two which simply change the values of redshift and radial_velocity.
- Loading branch information
Showing
2 changed files
with
115 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters