coffee
Coronagraph Optimization For Fast Exoplanet Exploration
PIAACMCsimul_exec_optimize_lyot_stops_shapes_positions.c File Reference

Functions

long PIAACMCsimul_optimizeLyotStop_offaxis_min (const char *IDincohc_name)
 Make Lyot stops using off-axis light minimums. More...
 
int PIAACMCsimul_exec_optimize_lyot_stops_shapes_positions ()
 

Variables

PIAACMCsimul_varType piaacmcsimul_var
 
OPTSYSToptsyst
 optical system description More...
 
OPTPIAACMCDESIGNpiaacmc
 

Function Documentation

int PIAACMCsimul_exec_optimize_lyot_stops_shapes_positions ( )

Mode 5: Optimize Lyot stops shapes and positions

Initialize as in mode 0

Load CLI variables as appropriate

  • <- PIAACMC_nbpropstep : # of propagation steps along the beam
  • <- PIAACMC_lstransm : desired Lyot stop transmission

Identify post focal plane pupil plane (first pupil after focal plane mask)

Provides reference complex amplitude plane for downstream analysis

Compute incoherent 3D illumination near pupil plane

Multiple off-axis sources are propagated and the corresponding intensities added

  • -> OAincohc Output incoherent image (3D)

OAincohc is the summed light "all" from off-axis sources in the pupil, including the on-axis source(!), giving intensity contribution of all off-axis sources in order to preserve the intensity of the off-axis in the design. load OAincohc if exist, maybe we've been here before

Compute on-axis PSF 3D intensity to define light to reject

call function PIAACMCsimul_CA2propCubeInt() to compute 3D intensity cube

Parameters
[out]iprop003D intensity image

Compute image that has the min along z of OAincohc at each x,y

Function PIAACMCsimul_optimizeLyotStop_offaxis_min() computes minimal intensity image.

Optimize Lyot stops

The actual Lyot stop shape and location optimization is done by PIAACMCsimul_optimizeLyotStop(), producing optimal Lyot stops in optLM*.fits and position relative to elem0 in piaacmc[0].LyotStop_zpos

long PIAACMCsimul_optimizeLyotStop_offaxis_min ( const char *  IDincohc_name)

Make Lyot stops using off-axis light minimums.

Finds minumum flux level in 3D intensity data cube

Parameters
[in]IDincohc_nameimage: Input 3D intensity
[out]test_oals_val.fitsFITS : Minimum 2D image
[out]test_oals_index.fitsFITS : z-index for each pixel of the 2D output minimum

Variable Documentation

OPTSYST* optsyst

optical system description

OPTPIAACMCDESIGN* piaacmc
PIAACMCsimul_varType piaacmcsimul_var