Skip to content
Snippets Groups Projects
Commit b2bda19d authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Convert DEM to dask array.

parent a2bccb4b
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class EoDataset(torch.utils.data.Dataset):
----------
feature : :py:class:`numpy.ndarray`
The cyclcical feature to encode.
max_val : TYPE
max_val : `float`
Maximum physically possible value of ``feature``.
Returns
......@@ -148,9 +148,9 @@ class EoDataset(torch.utils.data.Dataset):
alg='Horn').ReadAsArray().astype(np.float32)
# scale digital elevation model to range [0-1]
dem = _scale(img2np(dem).astype(np.float32))
slope = _scale(slope)
aspect= _scale(aspect)
dem = da.asarray(_scale(img2np(dem).astype(np.float32)))
slope = da.asarray(_scale(slope))
aspect= da.asarray(_scale(aspect))
# digital elevation model features: elevation, slope and aspect
dem_vars = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment