Skip to content

How do you write a compressed GeoTiff #327

Answered by snowman2
JonesRusty asked this question in Q&A
Discussion options

You must be logged in to vote

The good news is that it is pretty simple. You just pass the compress kwarg into to_raster:

xds.rio.to_raster("file.tif", compress='LZW')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JonesRusty
Comment options

@snowman2
Comment options

Answer selected by JonesRusty
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