-
|
Is there a method or convenient way for extracting (or creating) a |
Beta Was this translation helpful? Give feedback.
Answered by
snowman2
Jun 17, 2024
Replies: 1 comment
-
|
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:
.... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
snowman2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With rioxarray 0.21+ (#894):
With older rioxarray versions: