summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkke Viitanen <akke.viitanen@helsinki.fi>2022-01-20 18:33:48 +0000
committerAkke Viitanen <akke.viitanen@helsinki.fi>2022-01-20 18:33:48 +0000
commit2785ba97f1dc17a95fa09e4773837f1e60b3dfbe (patch)
treed66b7369262d821bcb12b61c87415227fbe8518e
parentc26926298d5d774099c3f6ec22c27e779730b59f (diff)
Write to tmp fileHEADmaster
-rw-r--r--get_image.py2
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.