-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
The code in the line 411, returns Don't yet support nd fancy indexing from dask.
https://github.com/JavierRuano/ASI_Steady/blob/main/ASI_Datase_RACKt.py#L411
that was working well with python3.7 .
ASI_Datase_RACKt.py in refresh_Graphics
saveFile = self.xarray[indices_maps[str(self.typi)]].where(self.xarray.mask == 1).where( …
▼ Local vars
Variable Value
NETCDF_FILES_FOLDER
'/var/www/stream/stream/data/'
end
'2020-11-02'
indices_maps
{'horton': 'ASI_Horton_2012',
'huang': 'ASI_Huang_2018',
'wang': 'ASI_Wang_2017'}
lat_dos
48.75
lat_uno
48.0
lng_dos
-5.75
lng_uno
-5.0
self
<polls.ASI_Datase_RACKt.ASI object at 0x7f585899e1f0>
start
'2020-11-01'
/usr/local/lib/python3.9/dist-packages/xarray/core/common.py in where
self = self.isel(**indexers) …
▼ Local vars
Variable Value
DataArray
<class 'xarray.core.dataarray.DataArray'>
Dataset
<class 'xarray.core.dataset.Dataset'>
align
<function align at 0x7f5878522af0>
clipcond
<xarray.DataArray (latitude: 68, longitude: 81)>
array([[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]])
Coordinates:
- latitude (latitude) float32 75.0 74.25 73.5 72.75 ... 26.25 25.5 24.75
- longitude (longitude) float32 -20.0 -19.25 -18.5 -17.75 ... 38.5 39.25 40.0
cond
<xarray.DataArray (latitude: 68, longitude: 81)>
array([[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]])
Coordinates: - latitude (latitude) float32 75.0 74.25 73.5 72.75 ... 26.25 25.5 24.75
- longitude (longitude) float32 -20.0 -19.25 -18.5 -17.75 ... 38.5 39.25 40.0
drop
True
indexers
{'latitude': array([], dtype=int64), 'longitude': array([], dtype=int64)}
nonzeros
<zip object at 0x7f584bfc08c0>
other
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
self
NdArrayLikeIndexingAdapter(array=dask.array<copy, shape=(15310, 68, 81), dtype=float64, chunksize=(15310, 68, 81), chunktype=numpy.ndarray>)
/usr/local/lib/python3.9/dist-packages/dask/array/core.py in getitem
dsk, chunks = slice_array(out, self.name, self.chunks, index2, self.itemsize) …
▼ Local vars
Variable Value
dependencies
{'copy-60d43625606b762db38f4c336bfabf09'}
i
array([], shape=(1, 1, 0), dtype=int64)
index
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
index2
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
normalize_index
<function normalize_index at 0x7f585a1b7940>
out
'getitem-33275cee9730d05017ed841f8e82e286'
self
dask.array<copy, shape=(15310, 68, 81), dtype=float64, chunksize=(15310, 68, 81), chunktype=numpy.ndarray>
slice_with_bool_dask_array
<function slice_with_bool_dask_array at 0x7f585a1b7b80>
slice_with_int_dask_array
<function slice_with_int_dask_array at 0x7f585a1b7a60>
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_array
dsk_out, bd_out = slice_with_newaxes(out_name, in_name, blockdims, index, itemsize) …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
missing
0
not_none_count
3
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_with_newaxes
dsk, blockdims2 = slice_wrap_lists(out_name, in_name, blockdims, index2, itemsize) …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
index2
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
where_none
[]
where_none_orig
[]
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_wrap_lists
raise NotImplementedError("Don't yet support nd fancy indexing") …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
[[ 1]],
[[ 2]],
...,
[[15307]],
[[15308]],
[[15309]]]),
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
where_list
[0, 1, 2]