spacetelescope / webbpsf

James Webb Space Telescope PSF simulation tool
https://webbpsf.readthedocs.io
BSD 3-Clause "New" or "Revised" License
119 stars 63 forks source link

WFIRST Cycle 7 Updates #176

Closed mperrin closed 6 years ago

mperrin commented 6 years ago

Issue by robelgeda Wednesday Nov 08, 2017 at 21:43 GMT Originally opened as https://github.com/mperrin/webbpsf/pull/176


This is the final draft of WFIRST Cycle 7 updates. The Following changes have been made:

webbpsf:

webbpsf-data-source:


robelgeda included the following code: https://github.com/mperrin/webbpsf/pull/176/commits

mperrin commented 6 years ago

Comment by mperrin Wednesday Nov 08, 2017 at 22:00 GMT


Can you explain a bit more about the pupil updates? What were you able to figure out about the coordinate system conventions?

mperrin commented 6 years ago

Comment by robelgeda Thursday Nov 09, 2017 at 13:10 GMT


I was able to obtain the instrument layout in both cycles. Both indicate that the coordinate system is Payload FOV {X, Y}. See axis labels below:

screen shot 2017-11-08 at 6 00 32 pm

I was able to figure out that the WSM rotated 90 degrees as follows.

screen shot 2017-11-08 at 6 39 51 pm

Where purple and orange arrows point to the origin in cycle 6 and 7 respectively.

After that I checked if the pupil files do the same transformation.

screen shot 2017-11-08 at 10 34 31 pm

I found this to be evidence that the pupil coordinate system conventions are the same.

mperrin commented 6 years ago

Comment by robelgeda Thursday Nov 09, 2017 at 15:22 GMT


@mperrin: Also, the people at Goddard shared a script to convert the pupil from tiffs to fits. One thing to note is that I had to flip the image upside down (edited the code they sent) because the y axis of a fits file starts to index at the top left (as opposed to the image reader which indexes at the bottom left).

mperrin commented 6 years ago

Comment by robelgeda Wednesday Nov 15, 2017 at 21:33 GMT


I tested the changes using the example Jupyter netbooks and the /webbpsf/tests/test_wfits.py script. Everything seems to be in order.