New answers tagged

3 votes

Specifying target resolution when resampling with rasterio

You just need to figure out the scale factor from your chosen and current pixel size, e.g. I want to resample this 10m resolution "input.tif" to 12.5m: import rasterio from rasterio.enums ...
user avatar
  • 52.5k
1 vote

Calculate height profile from cogeoTiff using rasterio

I would try to create a virtual VRT dataset with a reduced resolution and use that as a src. Here is an example with gdal_translate but you can certainly create VRT also with rasterio. gdal_translate -...
user avatar
  • 52.3k

Top 50 recent answers are included