fouriax.Field#
- class Field(data, grid, spectrum, polarization_mode='scalar', domain='spatial', kx_pixel_size_cyc_per_um=None, ky_pixel_size_cyc_per_um=None)#
Bases:
objectComplex optical field over a 2D grid for one or more wavelengths.
- Parameters:
- __init__(data, grid, spectrum, polarization_mode='scalar', domain='spatial', kx_pixel_size_cyc_per_um=None, ky_pixel_size_cyc_per_um=None)#
Methods
__init__(data, grid, spectrum[, ...])apply_amplitude(mask)apply_phase(phase_map)normalize_power([target, eps])phase()plane_wave(grid, spectrum[, amplitude, ...])plane_wave_jones(grid, spectrum[, ex, ey, dtype])power()validate()zeros(grid, spectrum[, dtype])Attributes
- data: Array#
- polarization_mode: Literal['scalar', 'jones'] = 'scalar'#
- domain: Literal['spatial', 'kspace'] = 'spatial'#
- kx_pixel_size_cyc_per_um: float | None = None#
- ky_pixel_size_cyc_per_um: float | None = None#
- classmethod zeros(grid, spectrum, dtype=<class 'jax.numpy.complex64'>)#
- classmethod plane_wave(grid, spectrum, amplitude=1.0, phase=0.0, dtype=<class 'jax.numpy.complex64'>)#
- classmethod plane_wave_jones(grid, spectrum, ex=(1+0j), ey=0j, dtype=<class 'jax.numpy.complex64'>)#
- property is_jones: bool#
- property batch_shape: tuple[int, ...]#
- property has_batch: bool#
- property num_polarization_channels: int#
- component_intensity()#
- Return type:
Array
- intensity()#
- Return type:
Array
- phase()#
- Return type:
Array
- power()#
- Return type:
Array
- property spatial_pixel_size_um: tuple[float, float]#
- property kspace_pixel_size_cyc_per_um: tuple[float, float]#
- validate()#
- Return type:
None