Skip to content
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

WCSAxes: image display wrapped #11425

Open
keflavich opened this issue Mar 25, 2021 · 0 comments
Open

WCSAxes: image display wrapped #11425

keflavich opened this issue Mar 25, 2021 · 0 comments

Comments

@keflavich
Copy link
Contributor

I'm trying to overlay one image onto another with imshow, i.e.:

fig = pl.figure(1, figsize=(10,10))
fig.clf()
ax = fig.add_subplot(projection=ww.celestial)
ax.imshow(imdata, transform=ax.get_transform(cutimage.wcs.celestial))

The result is:
image

But the data, as shown with

pl.imshow(data)

look like this:
image

It appears that, for this transform, edge-wrapping is incorrectly happening.

The background WCS is:

WCS Keywords

Number of WCS axes: 2
CTYPE : 'GLON-CAR'  'GLAT-CAR'  
CRVAL : 8.5  0.0  
CRPIX : 1293.5  2388.5  
CD1_1 CD1_2  : -0.000166666665  0.0  
CD2_1 CD2_2  : 0.0  0.000166666665  
NAXIS : 462  462

The foreground is:

WCS Keywords

Number of WCS axes: 2
CTYPE : 'RA---SIN'  'DEC--SIN'  
CRVAL : 271.587999906  -21.6213053709  
CRPIX : 606.0  495.0  
PC1_1 PC1_2  : 1.0  0.0  
PC2_1 PC2_2  : 0.0  1.0  
CDELT : -3.055555555556e-05  3.055555555556e-05  
NAXIS : 0  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants