xoa.core.grid.edges

Contents

xoa.core.grid.edges#

xoa.core.grid.edges(a, axis=-1, lon=False)[source]#

Cell edges from centers along an axis, extrapolated at the ends: n becomes n+1

Parameters:
  • a (array_like)

  • axis (int)

  • lon (bool) – The values are longitudes in degrees: differences are taken across the dateline and a result between points on each side of it is put in [-180, 180[ if the input has negative values and else in [0, 360[