[AstroPy] Rotate an image and create new FITS header with updated astrometry
teuben at astro.umd.edu
Tue Nov 15 11:02:39 EST 2016
I didn't know they didn't flux conserve. You should file a bug report. They love those.
I know the equivalent routine in miriad (regrid) does conserve flux, but it's normally used on radio data with a well described beam. Not that your data doesn't have those, but in a bind that's another way.
Alternatively you could use mRotate, and measure the flux in some large area, and rescale manually if need be.
On 11/15/2016 10:55 AM, Marcio Melendez wrote:
> Hi Peter,
> I use Montage mainly for display purpose, to get the correct sky orientation, but I have never used it to perform any operation. I see that there is a rotation utility, mRotate, but from the description "This module is meant for quick-look only; it is *not flux conserving*." which is not useful for what I need. Are there any other options?
> On Tue, Nov 15, 2016 at 10:32 AM, Peter Teuben <teuben at astro.umd.edu <mailto:teuben at astro.umd.edu>> wrote:
> the best is to use the python interface to montage. it's a contributed package for astropy.
> On 11/15/2016 09:26 AM, Marcio Melendez 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.
>> 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 <mailto:AstroPy at scipy.org> https://mail.scipy.org/mailman/listinfo/astropy <https://mail.scipy.org/mailman/listinfo/astropy>
> 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
> AstroPy mailing list
> AstroPy at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy