Replies: 2 comments
-
See: pydata/xarray#6695 xr_band = xr_band.isel({xr_band.rio.y_dim: slice(None, None, -1)})
Not sure about this one. Would need a re-producible example. https://stackoverflow.com/help/minimal-reproducible-example |
Beta Was this translation helpful? Give feedback.
0 replies
-
Possibly related? #692 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
Issue
I think this is a pretty simple question with an easy solution that I'm missing. I am trying to export an xarray dataset using
xr.rio.to_raster
which is successful, but I have two issues.gdalbuildvrt does not support positive NS resolution
, so I have to do a vaguely annoying workaround to re-project after I run my python script:gdalwarp -overwrite -t_srs EPSG:4326 output.tif corrected_output.tif
Then, I can create my virtual raster successfully with the corrected tifs.There has to be a way to make sure the pixel size (North-South resolution) is (+,-) instead of (+,+) and to export the CRS information that I'm messing up.
Python Code
Bash Code
gdalinfo of output image
gdalinfo of re-projected image, which is a step I didn't want to do
And here is some system information you might want to know. I'm SSH'ed into a remote system while doing this.
Python Environment
GDAL and Conda
Thanks!
Morgan
Beta Was this translation helpful? Give feedback.
All reactions