xarray-spatial
xarray-spatial copied to clipboard
rtxpy hillshade does not handle np.nan values
GPU code seems to hang if the supplied cupy-backed xarray.DataArray contains np.nan values. Need to check rtxpy viewshed for the same problem.
Possible solutions:
- Keep the
np.nanvalues (andnp.inftoo?) and deal with them gracefully. - Check for existence of non-finite values and raise an exception.
- Document the limitation.