wradlib.georef.raster.get_raster_elevation

wradlib.georef.raster.get_raster_elevation(dataset, resample=None, **kwargs)
Return surface elevation corresponding to raster dataset
The resampling algorithm is chosen based on scale ratio
Parameters:
  • dataset (gdal.Dataset) – raster image with georeferencing (GeoTransform at least)
  • resample (GDALResampleAlg) – If None the best algorithm is chosen based on scales. GRA_NearestNeighbour = 0, GRA_Bilinear = 1, GRA_Cubic = 2, GRA_CubicSpline = 3, GRA_Lanczos = 4, GRA_Average = 5, GRA_Mode = 6, GRA_Max = 8, GRA_Min = 9, GRA_Med = 10, GRA_Q1 = 11, GRA_Q3 = 12
  • kwargs (keyword arguments) – passed to wradlib.io.dem.get_strm()
Returns:

elevation (numpy.ndarray) – Array of shape (rows, cols, 2) containing elevation