xarray-spatial icon indicating copy to clipboard operation
xarray-spatial copied to clipboard

rtxpy hillshade does not handle np.nan values

Open ianthomas23 opened this issue 2 years ago • 0 comments

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:

  1. Keep the np.nan values (and np.inf too?) and deal with them gracefully.
  2. Check for existence of non-finite values and raise an exception.
  3. Document the limitation.

ianthomas23 avatar Dec 22 '21 10:12 ianthomas23