pysrw.tools.extractCrossCuts

pysrw.tools.extractCrossCuts#

pysrw.tools.extractCrossCuts(spatialDistr, point=[0, 0])[source]#

Get the cross cut from a two-dimensional distribution.

Parameters:
  • spatialDistr – any dictionary representing a spatial distribution with ‘xax’ and ‘yax’ as coordinate axes and ‘data’ as data matrix.

  • point (optional) – the point where to extract the cross cut. The cross cuts are extracted at the closest available position to this value. Defaults to [0,0].

Returns:

dictionary with ‘xax’, ‘yax’, ‘xdata’ and ‘ydata’.

Return type:

dict