-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I am trying to display an elevation dataset, but it seems pyvista-xarray somehow uses the nodata value as the minimum value to render the data, making it look like a long vertical column. Is it possible to specify a minimum value to prevent pyxarray from using the nodata value for rendering?
import rioxarray
da = rioxarray.open_rasterio("madison.tif")
da = da.rio.reproject("EPSG:3857")
# Grab the mesh object for use with PyVista
mesh = da[dict(band=0)].pyvista.mesh(x="x", y="y")
# plot in 3D
mesh.warp_by_scalar().plot()Rendering the original lidar point cloud
import leafmap
leafmap.view_lidar('madison.las', cmap='terrain')Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

