xugrid.UgridDataArrayAccessor.to_nonperiodic#

UgridDataArrayAccessor.to_nonperiodic(xmax: float)[source]#

Convert this grid from a periodic grid (where the rightmost boundary shares its nodes with the leftmost boundary) to an aperiodic grid, where the leftmost nodes are separate from the rightmost nodes.

Parameters:

xmax (float) – The x-value of the newly created rightmost boundary nodes.

Returns:

nonperiodic

Return type:

UgridDataArray