Open astrofle opened 4 hours ago
Using with_frame
multiple times keeps increasing the difference in spectral axis values.
(spec.with_frame(spec._velocity_frame).spectral_axis.value - spec.spectral_axis.value)[0]
1218.3474452495575
(spec.with_frame(spec._velocity_frame).with_frame(spec._velocity_frame).spectral_axis.value - spec.spectral_axis.value)[0]
2436.695948600769
This is not an astropy
issue:
spec.spectral_axis.with_observer_stationary_relative_to("lsrk").with_observer_stationary_relative_to("lsrk").value[0] - \
spec.spectral_axis.with_observer_stationary_relative_to("lsrk").value[0]
0
Describe the bug When changing the frame of a
Spectrum
to its_velocity_frame
, the resultingSpectrum
has a differentSpectralAxis
, even though they should be the same.How to Reproduce
Environment