Skip to content

Replacing Data and Writing/Updating to the same TIFF file #3006

Answered by sgillies
anna24valcarcel asked this question in Q&A
Discussion options

You must be logged in to vote

@anna24valcarcel you're on the right track. If you open a dataset with mode="r+" you can update entire bands, smaller windows of bands, and non-structural metadata. Documentation of this use case has been overlooked (by me), but there are a bunch of examples in the test suite. For example https://github.com/rasterio/rasterio/blob/main/tests/test_update.py#L25.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sgillies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants