-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
59 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _user.fundamentals.segmented: | ||
|
||
************************* | ||
Segmented optical systems | ||
************************* | ||
|
||
Lentil works with segmented apertures out of the box. | ||
Creating a model of a segmented aperture optical system in Lentil doesn't require any | ||
special treatment. The |Plane| object works the same with sparse or | ||
segmented amplitude, opd, and mask attributes as with monolithic ones. | ||
|
||
That being said, it is advantageous from a performance point of view to supply a | ||
3-dimensional `segment mask` when specifying a Plane's :attr:`~lentil.Plane.mask` | ||
attribute rather than a flattened 2-dimensional `global mask` when working | ||
with a segmented aperture, as depicted below: | ||
|
||
.. plot:: _img/python/segmask.py | ||
:scale: 50 | ||
|
||
This modification is not necessary to achieve accurate propagations, but can | ||
greatly improve performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _user.fundamentals.tilt: | ||
|
||
******************************** | ||
Working with large optical tilts | ||
******************************** | ||
|
||
|
||
One of lentil's unique features is its hybrid approach to handling tilt. | ||
|
||
The plane's :func:`~lentil.Plane.fit_tilt` method performs a least squares fit to | ||
estimate and remove tilt from the :attr:`~lentil.Plane.opd` attribute. The removed | ||
tilt is accounted for by appending an equivalent :class:`~lentil.Tilt` object to the | ||
plane's :attr:`~lentil.Plane.tilt` attribute. The optical effect of the tilt is | ||
automatically applied during a propagation step. | ||
|
||
|
||
|
||
|
||
|
||
.. image:: /_static/img/propagate_tilt_phase.png | ||
:width: 450px | ||
:align: center | ||
|
||
.. image:: /_static/img/propagate_tilt_phase_wrap.png | ||
:width: 650px | ||
:align: center | ||
|
||
.. image:: /_static/img/propagate_tilt_angle.png | ||
:width: 600px | ||
:align: center | ||
|
||
.. image:: /_static/img/propagate_tilt_angle_steps.png | ||
:width: 600px | ||
:align: center |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters