In [ ]:
!ls *fits
In [ ]:
import astropy.io.fits as afits
from astropy.wcs import WCS
from astropy.visualization import ZScaleInterval
import matplotlib
%matplotlib notebook
%pylab
In [ ]:
##### I've given you some imports above. They're a big hint on what to try. You get to do this!!! #####
In [ ]:
!solve-field -h
--ra, --dec and --radius: Restrict the solution to some radius around RA and Dec. The regular telescope WCS should be plenty for an initial guess.--scale-units, --scale-low and --scale-high: You might not know the exact pixel scale (and it's a function of where you are on the detector in any case, but you also set limits from this based on the existing CD1_2, CD2_1-D, -N: Write to an output directory and write out a new FITS file with the solved WCS.--parity: You can usually set this and get a speedup of 2xastropy, or just use imhead from the WCSTools package at the command line
In [ ]:
print(WCS(f1[0].header))
In [ ]:
!imhead wdd7.040920_0452.051_6.fits
In [ ]:
!wcs-to-tan -h