wradlib.georef.resample_raster_dataset

wradlib.georef.resample_raster_dataset(*args, **kwargs)

Resample given dataset according to keyword arguments

New in version 0.6.0.

# function inspired from github project # https://github.com/profLewis/geogg122

Parameters:
  • src_ds (gdal.Dataset) – raster image with georeferencing (GeoTransform at least)
  • spacing (float) – float or tuple of two floats pixel spacing of resampled dataset, same unit as pixel coordinates
  • size (int) – tuple of two ints X/YRasterSize of resampled dataset
  • resample (GDALResampleAlg) – defaults to GRA_Bilinear 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
Returns:

dst_ds (gdal.Dataset) – resampled raster dataset