ezyrb.regular_grid.RegularGrid.get_grid_axes

RegularGrid.get_grid_axes(pts_scrmbld, vals_scrmbld)[source]

Calculates the grid axes from a meshed grid and re-orders the values so they fit on a mesh generated with numpy.meshgrid(ax1, ax2, …, axn, indexing=”ij”)

Parameters:
  • pts_scrmbld (array_like) – the coordinates of the points.

  • vals_scrmbld (array_like) – the (vector-)values in the points.

Returns:

The grid axes given as a tuple of ndarray, with shapes (m1, ), …, (mn, ) and values mapped on the ordered grid.

Return type:

(list, numpy.ndarray)