xbout.cherab.grid.da_with_cherab_grid

xbout.cherab.grid.da_with_cherab_grid(da)[source]

Convert an BOUT++ DataArray to a format that Cherab can use: - A ‘cell_number’ coordinate - A ‘cherab_grid` attribute

The cell_number coordinate enables the DataArray to be sliced before input to Cherab.

Parameters:

ds (xarray.DataArray)

Return type:

updated_da