polartoolkit.get_grid_spacing

Contents

polartoolkit.get_grid_spacing#

get_grid_spacing(grid)[source]#

Returns the spacing of the specified grid.

Parameters:

grid (str or xarray.DataArray) – Input grid to get spacing from. Filename string or loaded grid.

Returns:

Spacing of the grid or None if it can’t be extracted.

Return type:

float | None