-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Assigning data to vector-indexed data doesn't seem to work #1743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@shoyer this is what I showed you earlier |
@mraspaud - dask arrays don't support assignment so your last line should not work. More importantly though, what indexing/broadcasting are you expecting |
@jhamman Same problem rises with a regular numpy array as a source for the DataArray. The use case I have is spatial resampling: assigning source data pixels to a destination grid. So in the example provided above, |
cc @fujiisoup It looks like we forgot to update |
Uh oh!
There was an error while loading. Please reload this page.
Code Sample
Problem description
This crashes on the last line with a
I'm expecting to be able to do assignment this way, and it doesn't work.
Expected Output
Expected output is the modified array with 2's in the indicated positions
Output of
xr.show_versions()
xarray: 0.10.0
pandas: 0.21.0
numpy: 1.13.3
scipy: 0.18.1
netCDF4: 1.1.8
h5netcdf: 0.4.2
Nio: None
bottleneck: None
cyordereddict: None
dask: 0.15.4
matplotlib: 1.2.0
cartopy: None
seaborn: None
setuptools: 36.2.1
pip: 9.0.1
conda: None
pytest: 3.1.3
IPython: 5.1.0
sphinx: 1.3.6
The text was updated successfully, but these errors were encountered: