Skip to content

Commit 81832af

Browse files
rmjarvisnihardalal
andcommitted
Flip to WFI coords and document the flip (#1363)
* Flip to WFI coords and document the flip Flipped the coordinate system, and added some justification/documentation * Fixed to use galsim transformation isntead --------- Co-authored-by: Nihar Dalal <140463192+nihardalal@users.noreply.github.com> Co-authored-by: nihardalal <nihardalal@rocketmail.com>
1 parent 49dcbad commit 81832af

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

galsim/roman/roman_psfs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ def __make_aperture(SCA, pupil_plane_type, pupil_bin, wave, gsparams):
290290

291291
pupil_plane_im = pupil_plane_im.bin(pupil_bin,pupil_bin)
292292

293+
#The project provides pupils in the exit frame orientation. To switch to WFI coords, we need to flip following:
294+
#https://github.com/Roman-HLIS-Cosmology-PIT/PSFSim/blob/main/docs/coordinates.rst, which has the chirality
295+
#looking in the telescope. Can be accomplished by flipping the vertical axis.
296+
297+
pupil_plane_im = pupil_plane_im.flip_ud()
298+
293299
aper = Aperture(lam=wave, diam=diameter,
294300
obscuration=obscuration,
295301
pupil_plane_im=pupil_plane_im,

0 commit comments

Comments
 (0)