mesmer.core.geospatial.geodist_exact

Contents

mesmer.core.geospatial.geodist_exact#

mesmer.core.geospatial.geodist_exact(lon, lat, equal_dim_suffixes=('_i', '_j'))#

exact great circle distance based on WSG 84

Parameters:
  • lon (xr.DataArray, np.ndarray) – 1D array of longitudes

  • lat (xr.DataArray, np.ndarray) – 1D array of latitudes

  • equal_dim_suffixes (tuple of str, default: (“_i”, “_j”)) – Suffixes to add to the the name of dim for the geodist array (xr.DataArray cannot have two dimensions with the same name).

Returns:

geodist (xr.DataArray, np.ndarray) – 2D array of great circle distances.