diff options
author | Akke Viitanen <akke.viitanen@helsinki.fi> | 2022-01-20 18:33:48 +0000 |
---|---|---|
committer | Akke Viitanen <akke.viitanen@helsinki.fi> | 2022-01-20 18:33:48 +0000 |
commit | 2785ba97f1dc17a95fa09e4773837f1e60b3dfbe (patch) | |
tree | d66b7369262d821bcb12b61c87415227fbe8518e | |
parent | c26926298d5d774099c3f6ec22c27e779730b59f (diff) |
-rw-r--r-- | get_image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/get_image.py b/get_image.py index 3f7cb8d..e21e1e5 100644 --- a/get_image.py +++ b/get_image.py @@ -23,6 +23,7 @@ import astropy.units as u from astropy.coordinates import SkyCoord from astroquery.sdss import SDSS from astropy.wcs import WCS +import fitsio import matplotlib as mpl import matplotlib.pyplot as plt @@ -47,6 +48,7 @@ def main(): field=result["field"], data_release=12, band=band) + fitsio.write("tmp.fits", image[0][0]) # Read in data, header, and a dx x dy sized cutout image. Note that the WCS # solution will only work on the original image. |