Skip to content

module 'xarray' has no attribute 'open_rasterio' when trying to plot trajectory with DEM slice

When using LSTrajectory.plot_trajectory(..., dem='/path/to/dem.tif', ...) I get:

AttributeError: module 'xarray' has no attribute 'open_rasterio'

The solution is to use rioxarray, which will require a new dependency. Also this would be a good time to relax the UTM projection constraint since we can re-project basically any DEM using rioxarray

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information