[AstroPy] Oblique rectangles in APLpy
marquett at iap.fr
Sun Jun 5 09:59:11 EDT 2011
I don't find the correct syntax for the coordinates of the corners.
Polygon = [[RaMin, DecMin], [RaMin, DecMax], [RaMax, DecMin], [RaMax, DecMax]]
Please give an example.
Le 31 mai 2011 à 02:57, Thomas Robitaille a écrit :
> Hi Jean-Baptiste,
> The easiest way to do this would be to figure out the coordinates of the corners of the rectangles in Galactic coordinates, and use show_polygons to plot them. Note that you can use the fk52gal function in aplpy.wcs_util to facilitate the conversion from J2000 to Galactic coordinates. Let me know if this does not work!
> On Monday, May 30, 2011 at 6:51 AM, Marquette Jean-Baptiste wrote:
>> Dear APLpy gurus,
>> I have observational rectangle fields with J2000 coordinates I would
>> like to plot on images in galactic coordinates. But the
>> show_rectangles routine doesn't allow to plot those rectangles
>> Any hint welcome.
>> Jean-Baptiste Marquette
>> AstroPy mailing list
>> AstroPy at scipy.org (mailto:AstroPy at scipy.org)
More information about the AstroPy