You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have 2 Spectrum1D objects, which are not wavelength calibrated and have pixels for the spectral unit, I cannot do e.g. addition or subtraction of my spectra. This is an issue for doing things like co-adding spectra, doing sky subtraction, etc.
which throws this error: UnitTypeError: SpectralCoord instances require units equivalent to '(Unit("Hz"), Unit("m"), Unit("J"), Unit("1 / m"), Unit("km / s"))', so cannot set it to 'pix'.
I believe the workaround here is to do:
t1.subtract(t2, compare_wcs=None)
Could we expose this easier to users?
The text was updated successfully, but these errors were encountered:
When I have 2 Spectrum1D objects, which are not wavelength calibrated and have pixels for the spectral unit, I cannot do e.g. addition or subtraction of my spectra. This is an issue for doing things like co-adding spectra, doing sky subtraction, etc.
Here is a MRE:
which throws this error:
UnitTypeError: SpectralCoord instances require units equivalent to '(Unit("Hz"), Unit("m"), Unit("J"), Unit("1 / m"), Unit("km / s"))', so cannot set it to 'pix'.
I believe the workaround here is to do:
Could we expose this easier to users?
The text was updated successfully, but these errors were encountered: