desc.grid.Grid.expand
- Grid.expand(x, surface_label='rho')Source
Expand
x
by duplicating elements to match the grid’s pattern.- Parameters:
x (ndarray) – Stores the values of a surface function (constant over a surface) for all unique surfaces of the specified label on the grid. The length of
x
should match the number of unique surfaces of the corresponding label in this grid.x
should be sorted such that the first element corresponds to the value associated with the smallest surface, and the last element corresponds to the value associated with the largest surface.surface_label (str) – The surface label of rho, theta, or zeta.
- Returns:
expand_x (ndarray) –
x
expanded to match the grid’s pattern.