cartopy.io.srtm.fill_gaps

cartopy.io.srtm.fill_gaps(elevation, max_distance=10)[source]

Fill gaps in SRTM elevation data for which the distance from missing pixel to nearest existing one is smaller than max_distance.

This function requires osgeo/gdal to work.

Parameters
  • elevation – SRTM elevation data (in meters)

  • max_distance – Maximal distance (in pixels) between a missing point and the nearest valid one.

Returns

elevation – SRTM elevation data with filled gaps.