-
How can I convert xarray's xarray.DataSet to rioxarray's xarray.DataSet? What I have works because I write out the xarray.DataSet (using xarray) and then read it back in (using rioxarray). Both items say thay are an This works fine:
According to the docs, Q: how do I get rioxarray to do those things on an existing (i.e. in-memory) xarray DataSet? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Is this what you are referring to: https://corteva.github.io/rioxarray/stable/getting_started/crs_management.html ? |
Beta Was this translation helpful? Give feedback.
-
Thank you, but no, it's not the crs part. It's not as bad as I thought, and it may be in the "it's a feature, not a bug" category. If I write out a Dataset that has this:
and read it back in, I get a Dataset that has this:
It appears that:
So, to replicate the write/read operation, it looks like |
Beta Was this translation helpful? Give feedback.
-
This is because
This is because |
Beta Was this translation helpful? Give feedback.
This is because
mask_and_scale=True
is default withopen_dataset
. You can disable it if you don't want the data masked and scaled.This is because
mask_and_scale=True
is default withopen_dataset
. You can disable it if you don't want the data masked and scaled.