Skip to content

Commit

Permalink
Merge pull request #585 from obi-wan76/update_doc
Browse files Browse the repository at this point in the history
added some information about source and mask offsets
  • Loading branch information
ojustino authored Sep 20, 2022
2 parents b1e877d + 3243bfb commit 951184e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,22 @@ The PSF may be shifted off-center by adjusting the offset of the stellar source.
>>> instrument.options['source_offset_r'] = 0.3 # offset in arcseconds
>>> instrument.options['source_offset_theta'] = 45. # degrees counterclockwise from instrumental +Y in the science frame

For convenience offsets can also be given in cartesian coordinates:

>>> instrument.options['source_offset_x'] = 4 # offset is in arsec
>>> instrument.options['source_offset_y'] = -3 # offset is in arsec


The option ``source_offset`` defines “the location of the point source within the simulated subarray”. It doesn’t affect the WFE, but it does affect the position offset of the source relative to any focal plane elements such as a coronagraph mask or spectrograph slit. For coronagraphic modes, the coronagraph occulter is always assumed to be at the center of the output array. Therefore, these options let you offset the source away from the coronagraph.

Note that instead of offsetting the source we could offset the coronagraph mask in the opposite direction. This can be done with the ``coron_shift_x`` and ``coron_shift_y`` options. These options will offset a coronagraphic mask in order to produce PSFs centered in the output image, rather than offsetting the PSF. Both options, ``coron_shift`` and ``source_offset`` give consistent results. Using the same ``source_offset`` values above, we can use offset a coronagraphic mask:

>>> instrument.options['coron_shift_x'] = -4 # offset is in arsec, note opposite sign convention
>>> instrument.options['coron_shift_y'] = +3 # offset is in arsec, note opposite sign convention


If these options are set, the offset is applied relative to the central coordinates as defined by the output array size and parity (described just below).

For coronagraphic modes, the coronagraph occulter is always assumed to be at the center of the output array. Therefore, these options let you offset the source away from the coronagraph.

Simulating telescope jitter
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 951184e

Please sign in to comment.