mperrin / webbpsf

James Webb Space Telescope PSF simulation tool - NOTE THIS VERSION OF REPO IS SUPERCEDED BY spacetelescope/webbpsf
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

WFIRST Cycle 7 Updates #176

Closed robelgeda closed 6 years ago

robelgeda commented 6 years ago

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

webbpsf:

webbpsf-data-source:

mperrin commented 6 years ago

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

robelgeda commented 6 years ago

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.

robelgeda commented 6 years ago

@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).

robelgeda commented 6 years ago

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