Merging WarpedVRTs? #3081
Unanswered
lukas-paulun
asked this question in
Q&A
Replies: 1 comment 5 replies
-
After looking at |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
Situation:
I have a number of large (between 100 and 1000 MB) satellite images in my cloud storage. The images are stored as cloud-optimized GeoTIFFs. I would like to create small tiles with a given size and resolution from the satellite images to run the tiles through a machine learning model.
The pre-release version of
rasterio.merge.merge()
seems to be the perfect solution: I open my satellite images withrasterio.open()
and pass the list of openDatasetReaders
torasterio.merge.merge()
. There I can also set the bounds and the resolution of the target tile. Due to the cloud-optimized format, only the data that is actually required for the output tile is loadedProblem:
Not all of the satellite images are in the same CRS. I wanted to use lazy warping to create
WarpedVRT
objects in the correct CRS while not loading more data than necessary from the cloud because my code is also running in a cloud resource and has very limited memory resources. However,rasterio.merge.merge()
does not acceptWarpedVRT
objects, onlyDatasetReaders
.What solution do you suggest?
Beta Was this translation helpful? Give feedback.
All reactions