uxarray.io._mpas._replace_zeros

Contents

uxarray.io._mpas._replace_zeros#

uxarray.io._mpas._replace_zeros(grid_var)#

Replaces all instances of a zero (invalid/missing MPAS value) with a fill value.

Parameters:

grid_var (numpy.ndarray) – Grid variable that may contain zeros that need to be replaced

Returns:

grid_var – Grid variable with zero replaced by fill values, done in-place

Return type:

numpy.ndarray