sample_on_sky#

esis.optics.sample_on_sky(frame, x, y)[source]#

Read a frame bilinearly at the given sensor coordinates.

Points off the sensor read as NaN, not zero: an edge of zeros would be mistaken for structure by the correlation.

The coordinates are optika’s, see optika.sensors.AbstractImagingSensor.pixels(): pixel i spans [i, i + 1) and its value sits at i + 1/2, so a coordinate on a pixel’s centre reads that pixel alone.

Parameters:
  • frame (ndarray) – The observed image, indexed [y, x].

  • x (ndarray) – The sensor \(x\) coordinate of every sky-grid point, in pixels.

  • y (ndarray) – The sensor \(y\) coordinate of every sky-grid point, in pixels.

Return type:

ndarray