Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic sky coordinates (WCS) to ScopeSim output #307

Merged
merged 12 commits into from
Dec 13, 2023
Prev Previous commit
Next Next commit
Remove obsolete basic WCS creation
teutoburg committed Dec 12, 2023
commit 52dc24c385c525df06638124f13e834677eb61b2
12 changes: 0 additions & 12 deletions scopesim/optics/optical_train.py
Original file line number Diff line number Diff line change
@@ -367,18 +367,6 @@ def write_header(self, hdulist):
iheader["BUNIT"] = "e", "per EXPTIME"
iheader["PIXSCALE"] = from_currsys("!INST.pixel_scale"), "[arcsec]"

# A simple WCS
iheader["CTYPE1"] = "LINEAR"
iheader["CTYPE2"] = "LINEAR"
iheader["CRPIX1"] = (iheader["NAXIS1"] + 1) / 2
iheader["CRPIX2"] = (iheader["NAXIS2"] + 1) / 2
iheader["CRVAL1"] = 0.
iheader["CRVAL2"] = 0.
iheader["CDELT1"] = iheader["PIXSCALE"]
iheader["CDELT2"] = iheader["PIXSCALE"]
iheader["CUNIT1"] = "arcsec"
iheader["CUNIT2"] = "arcsec"

for eff in self.optics_manager.detector_setup_effects:
efftype = type(eff).__name__