FITS文件图像的简单角度旋转

时间:2016-12-20 23:05:35

标签: python rotation astropy fits

使用Astropy函数Rotation2D,我一直在尝试以给定角度旋转图像数组(以适合文件的形式)。我的问题是我不明白如何或在何处正确使用输入。在这种情况下,输入将是:

  1. 输入数组,名为im1和
  2. 旋转角度,即36度。
  3. 这是我的代码:

    import astropy.wcs as wcs
    from astropy.modeling.models import Rotation2D
    from astropy.io import fits
    
    hdu = fits.open("4imAF.fits")
    im1 = hdu[0].data
    
    SkyRotation = Rotation2D.rename('SkyRotation')
    

    现在,从这里开始,我不知道我能做什么。像SkyRotation(im1,'36')这样的东西不起作用,所以也许我可以开悟正确的方法来做到这一点。

0 个答案:

没有答案
相关问题