wradlib.georef.raster.get_raster_elevation#

wradlib.georef.raster.get_raster_elevation(dataset, resample=None, **kwargs)[source]#
Return surface elevation corresponding to raster dataset

The resampling algorithm is chosen based on scale ratio

Parameters:
  • dataset (osgeo.gdal.Dataset) – raster image with georeferencing (GeoTransform at least)

  • resample (gdal:osgeo.gdalconst.ResampleAlg) – 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 (dict) – keyword arguments passed to wradlib.io.dem.get_srtm

Returns:

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