webbpsf_ext.coords.oversampled_coords

webbpsf_ext.coords.oversampled_coords(coords, oversample)[source]

Transform image index to oversampled image index

Assumes 0-based indexing where the center of a pixel corresponds to the integer index. That is, the center of the first pixel is at 0.0, and the center of the last pixel is at N-1.0 where N is the number of pixels.

Parameters:
  • coords (float or array-like) – Image index or indices

  • oversample (int) – Oversampling factor

Returns:

float or array-like – Oversampled image index or indices