Closed robmarkcole closed 3 years ago
I wonder how large your raster is?
clipped.plot.imshow()
could be the fix.
See: https://gis.stackexchange.com/questions/384577/open-and-plot-a-large-raster-with-python-xarray
clipped.plot.imshow()
does indeed work. It is only a small raster, y: 1537x: 2471
http://xarray.pydata.org/en/stable/generated/xarray.DataArray.plot.html#xarray.DataArray.plot
By default for 2D rasters, it calls xarray.plot.pcolormesh()
. I think this is an xarray
issue. I would raise this issue here if you would have thoughts or ideas for them for how this might be improved: https://github.com/pydata/xarray/
I have created a clipped object following the example from the docs which I can plot with matplotlib but which hangs when calling the plot method on the object.
However I can plot with:
Environment Information
rio --gdal-version
) 3.2.1Installation method
pypi
environment information