Skip to content
Discussion options

You must be logged in to vote

With rioxarray 0.21+ (#894):

with dataarray.rio.to_rasterio_dataset() as rio_ds:
    ...

With older rioxarray versions:

from rasterio.io import MemoryFile

with MemoryFile() as memfile:
    dataarray.rio.to_raster(memfile.name)
    with memfile.open() as src_ds:
        ....

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snowman2
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