Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Implement a function to do offset coordinates #166

Closed
wants to merge 1 commit into from

Conversation

astrofrog
Copy link
Owner

Turned out to be very easy with a lot of existing astropy.wcs functions:

from astropy import units as u
from astropy.coordinates import SkyCoord

c = SkyCoord(0. * u.deg, 0. * u.deg, frame='galactic')

new_wcs = make_offset_wcs(wcs, c)

import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_axes([0.15, 0.1, 0.8, 0.8], projection=new_wcs)
etc.

@astrofrog
Copy link
Owner Author

Need tests and docs...

@astrofrog
Copy link
Owner Author

I'm going to try and suggest this for astropy.wcs.utils instead since it's pretty generic.

@astrofrog
Copy link
Owner Author

We probably don't need this given SkyOffset frames in Astropy

@astrofrog astrofrog closed this Feb 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant