pysrw.wavefronts.Observer#
- class pysrw.wavefronts.Observer(centerCoord, obsXextension=0.001, obsYextension=0.001, obsXres=1e-05, obsYres=1e-05, nx=None, ny=None)[source]#
Bases:
object
- __init__(centerCoord, obsXextension=0.001, obsYextension=0.001, obsXres=1e-05, obsYres=1e-05, nx=None, ny=None)[source]#
Mesh at the observation plane.
- Parameters:
centerCoord – the [x, y, z] position of the observer center.
obsXextension (optional) – the width of the observation plane. Defaults to 1e-3.
obsYextension (optional) – the height of the observation plane. Defaults to 1e-3.
obsXres (optional) – the horizontal resolution of the mesh. Defaults to 10e-6.
obsYres (optional) – the vertical resolution of the mesh. Defaults to 10e-6.
nx (optional) – number of horizontal bins. If passed, obsXres is ignored.
ny (optional) – number of vertical bins. If passed, obsYres is ignored.
Note that either the resolution or the number of bins must be passed for both directions.
Methods
__init__
(centerCoord[, obsXextension, ...])Mesh at the observation plane.