hydromt.gis.DataArray.raster.sample#

gis.DataArray.raster.sample(gdf, wdw=0)#

Sample from map at point locations with optional window around the points.

Parameters:
  • gdf (geopandas.GeoDataFrame) – GeoDataFrame with Point geometries

  • wdw (int) – Number of cells around point location to sample from

Returns:

ojb_out – Output sample data

Return type:

xr.Dataset or xr.DataArray