Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scopesim/effects/psfs/discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,10 @@ def make_psf_cube(self, fov, spline_order=1):
unit_factor = 1
ref_pixel_scale = hdr["CDELT1"] * unit_factor

psfwcs = WCS(hdr)
psfwcs = WCS(hdr).sub(2) # get the spatial part of the WCS
psf = self._file[ext].data
psf = psf / psf.sum() # normalisation of the input psf
psf = np.atleast_2d(psf.squeeze()) # remove any extra singleton dimensions
nyin, nxin = psf.shape

ipsf = RectBivariateSpline(
Expand Down
Loading