[AstroPy] Rotate an image and create new FITS header with updated astrometry
Simon Conseil
simon at sconseil.fr
Wed Nov 16 09:13:32 EST 2016
Hi all,
We have some code to rotate an image with a given angle:
http://mpdaf.readthedocs.io/en/latest/image.html#image-geometrical-manipulation
http://mpdaf.readthedocs.io/en/latest/api/mpdaf.obj.Image.html#mpdaf.obj.Image.rotate
It uses scipy.ndimage.affine_transform, and should give the same result
as reproject, which uses scipy.ndimage.map_coordinates (both rely on
ndimage.geometric_transform). It would be interesting to compare !
Cheers,
Simon
Le 16/11/2016 à 13:46, Brigitta Sipocz a écrit :
>
> Hi Marcio,
>
> While it doesn't do exactly what you ask for, you may want to check
> out the affiliated package reproject
> (http://reproject.readthedocs.io/en/stable/
> <http://reproject.readthedocs.io/en/stable/>). It does flux conserving
> image reprojection:
>
> http://reproject.readthedocs.io/en/stable/
> <http://reproject.readthedocs.io/en/stable/>
>
> Cheers,
> Brigitta
>
> On 15 November 2016 at 14:26, Marcio Melendez
> <marcio.melendez at gmail.com <mailto:marcio.melendez at gmail.com>> wrote:
>
> Hi all,
> Is there a similar function to IDL's HROT in python, e.g., a
> function to rotate an image and create a new FITS header with
> updated astrometry.
>
> Thanks!
>
> --
> Marcio B. Melendez, Ph.D
> JWST ISIM Optics Support Scientist
> KBRwyle Science, Technology and Engineering Group
> NASA Goddard Space Flight Center Greenbelt, MD 20771
> Bldg. 29 Rm. T29-10, phone: 301-286-8517 <tel:301-286-8517>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org <mailto:AstroPy at scipy.org>
> https://mail.scipy.org/mailman/listinfo/astropy
> <https://mail.scipy.org/mailman/listinfo/astropy>
>
>
>
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20161116/d3ade743/attachment.html>
More information about the AstroPy
mailing list