-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
converting microns to wave number #881
Comments
The If you get an error leaving |
Giving |
Ah, then this is a deeper issue; it may be that the FITS standard does not support wavenumber? I'll have to dig more deeply to be sure |
Thanks. Is there currently a way to create a new cube using |
No, the framework underlying all of what spectral-cube does is the FITS-WCS library. If FITS doesn't support a unit, we can't serialize the data or compute transformations b/w systems |
Ah, but FITS does support wavenumber; this might be a simple fix |
I have a spectral cube object where the spectral_axis is in microns (u.um) and I would like to update it, or alternatively create a new cube, in wave numbers (1/u.cm).
new_cube = cube.with_spectral_unit(1/u.cm) does not work because it requires an equivalencies=u.spectral(), but with_spectral_unit takes the velocity_convention argument with the ‘relativistic’, ‘radio’, or ‘optical’ options.
cube.spectral_axis.to(1/u.cm, equivalencies=u.spectral()) does the job but I am not sure how to create a new cube that has this as the spectral axis.
The text was updated successfully, but these errors were encountered: