lentil.slit

lentil.slit(shape, width, length=None)[source]

Compute a slit mask.

Parameters
  • shape (array_like) – Size of output in pixels (nrows, ncols)

  • width (float) – Slit width in pixels

  • length (float, optional) – Slit length in pixels. If not specified, the slit spans the entire column shape (default).

Returns

mask

Return type

ndarray