airbornegeo.sample_grid

Contents

airbornegeo.sample_grid#

sample_grid(data, grid, coord_names)[source]#

Sample grid values at supplied points in dataframe.

Parameters:
  • data (DataFrame) – Dataframe containing columns ‘easting’, ‘northing’, or columns with names defined by kwarg “coord_names”.

  • grid (DataArray) – Grid to sample

  • coord_names (tuple[str, str]) – Names of the coordinates, in order x then y.

Returns:

sample values, which can be added to the dataframe

Return type:

ndarray[tuple[Any, ...], dtype[TypeVar(_ScalarT, bound= generic)]]