Skip to content
Snippets Groups Projects
Commit 78daf898 authored by Romain Fetick's avatar Romain Fetick
Browse files

add pixel resolution into fits header when saving PSF

parent 63824b59
No related branches found
No related tags found
No related merge requests found
...@@ -761,6 +761,10 @@ class Psfao(ParametricPSFfromPSD): ...@@ -761,6 +761,10 @@ class Psfao(ParametricPSFfromPSD):
psf = self.__call__(param, *args, **kwargs) psf = self.__call__(param, *args, **kwargs)
hdr = make_fits_hdr(param, keys=self.param_name, keys_comment=keys_comment) hdr = make_fits_hdr(param, keys=self.param_name, keys_comment=keys_comment)
hdr['CDELT1'] = (self.system.resolution_mas,"pixel size")
hdr['CUNIT1'] = ("mas","pixel size unit unit")
hdr['CDELT2'] = (self.system.resolution_mas,"pixel size")
hdr['CUNIT2'] = ("mas","pixel size unit unit")
hdr["HIERARCH SYSTEM"] = (self.system.name,"System name") hdr["HIERARCH SYSTEM"] = (self.system.name,"System name")
hdr["HIERARCH SYSTEM D"] = (self.system.D,"Primary mirror diameter") hdr["HIERARCH SYSTEM D"] = (self.system.D,"Primary mirror diameter")
hdr["HIERARCH SYSTEM NACT"] = (self.system.Nact,"Linear number of AO actuators") hdr["HIERARCH SYSTEM NACT"] = (self.system.Nact,"Linear number of AO actuators")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment