xoa.core.grid.centers# xoa.core.grid.centers(a, axis=-1, lon=False)[source]# Average consecutive points along an axis: size 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[