Timeline for Updating dimensions of raster with rasterio without scaling data
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2021 at 8:20 | history | edited | PolyGeo♦ | CC BY-SA 4.0 |
deleted 24 characters in body; edited title
|
Oct 30, 2021 at 11:40 | answer | added | user2856 | timeline score: 4 | |
Oct 29, 2021 at 19:48 | history | became hot network question | |||
Oct 29, 2021 at 16:28 | vote | accept | Sytze | ||
Oct 29, 2021 at 12:38 | comment | added | user30184 |
Certainly you do not need to edit the source file that way just for cutting tiles but you can define tile extents which are partly or even totally outside the extent of the source image. However, I do not know how to do that with rasterio. With gdal_translate it can be done with -srcwin gdal.org/programs/…. For example gdal_translate -srcwin -100 -150 200 200 input.tif output.tif writes a 200x200 sixed tile that has the top left corner 100 pixels left and 150 pixels upwards from the top left corner of the source image.
|
|
Oct 29, 2021 at 12:29 | answer | added | JonasV | timeline score: 3 | |
Oct 29, 2021 at 11:45 | history | asked | Sytze | CC BY-SA 4.0 |