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
I have a 3D WCS but all I care about is to translate the spatial WCS (i.e., given a SkyCoord, I want X and Y pixel positions). I don't care about the spectral axis. In Cubeviz, the translator encodes the WCS as PaddedSpectrumWCS but I cannot figure out how to use it to grab just the spatial WCS object. I want to pass this spatial WCS to the to_pixel method in a regions shape.
Is this issue still open? If I understand right, you'd need the original w.celestial or sp.wcs.celestial to pass to shape.to_pixel(wcs), but all you have is the coords after transformation to PaddedSpectrumWCS)?
I ended up storing the original WCS somewhere hacky and not use PaddedSpectrumWCS at all. So this is still a problem. Would be nice if we can get rid of this altogether and use something more conventional.
I have a 3D WCS but all I care about is to translate the spatial WCS (i.e., given a SkyCoord, I want X and Y pixel positions). I don't care about the spectral axis. In Cubeviz, the translator encodes the WCS as PaddedSpectrumWCS but I cannot figure out how to use it to grab just the spatial WCS object. I want to pass this spatial WCS to the to_pixel method in a regions shape.
This is as far as I got:
What should I do after this? Any ideas, @astrofrog or @dhomeier ?
The text was updated successfully, but these errors were encountered: