pysrw.computations.resizeWfr

Contents

pysrw.computations.resizeWfr#

pysrw.computations.resizeWfr(wfr, hResChange=1.0, vResChange=1.0, hRangeChange=1.0, vRangeChange=1.0, hCentreChange=0.5, vCentreChange=0.5)[source]#

Change the extension, resolution or centre of a wavefront.

Parameters:
  • wfr – the Wavefront: input wavefront.

  • hResChange (optional) – rescaling factor to increase (>1.0) or decrease (<1.0) the horizontal resolution. Defaults to 1.0.

  • vResChange (optional) – rescaling factor to increase (>1.0) or decrease (<1.0) the vertical resolution. Defaults to 1.0.

  • hRangeChange (optional) – rescaling factor to increase (>1.0) or decrease (<1.0) the horizontal extension. Defaults to 1.0.

  • vRangeChange (optional) – rescaling factor to increase (>1.0) or decrease (<1.0) the vertical extension. Defaults to 1.0.

  • hCentreChange (optional) – new horizontal centre. Defaults to 0.0.

  • vCentreChange (optional) – new vertical centre. Defaults to 0.0.

Returns:

the resized wavefront.

Return type:

Wavefront