correlation_raytraced#

esis.optics.correlation_raytraced(instrument, parameters, scene, observation, pupil, sigma_psf, seed=0, axis_wavelength='velocity', axis_field=('detector_x', 'detector_y'))[source]#

Compute the correlation of a ray-traced image with the observation.

An independent forward model to score a fit against. The ray trace samples every scene cell with a few rays, so the image carries sampling noise and needs a point-spread function of a few pixels to compare with the data.

Parameters:
  • instrument (AbstractInstrument) – The channel to image.

  • parameters (DistortionParameters) – The distortion parameters to apply to the channel.

  • scene (FunctionArray) – The spectral radiance of the scene.

  • observation (AbstractScalar) – The observed frame of this channel.

  • pupil (None | AbstractCartesian2dVectorArray) – The vertices of the pupil grid used to image the scene.

  • sigma_psf (None | float) – The standard deviation, in detector pixels, of the Gaussian point-spread function convolved with the modeled image.

  • seed (int) – The seed of the draw which places a ray at a random position inside each cell of the scene and the pupil, passed to the seed of optika.systems.SequentialSystem.image(). The same seed gives the same correlation, and another seed draws other positions.

  • axis_wavelength (str) – The logical axis of the scene along which the wavelength varies within each spectral line.

  • axis_field (tuple[str, str]) – The logical axes of the scene corresponding to field position.

Return type:

float