xarray
xarray copied to clipboard
N-D labeled arrays and datasets in Python
Dask has a pretty nice guideline for type hinting, see https://github.com/dask/community/issues/255. Notable for us is to avoid adding typing in docstrings to avoid duplicating information.
- [x] Closes #6838 - [ ] Tests added - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` This PR hopefully improves how are handled...
Hi all, I use the latest version of xarray (0.18) and I have some problems. Here are very simple examples: ```python velocity = xr.DataArray(7.3, name='velocity', attrs={'units':'m/s'}) elevation = xr.DataArray(3.5, name='elevation',...
Hi folks, is there any simple way to iterate over all elements of an xarray together with its labels? What I am looking for is an equivalent to numpy's `nditer`...
- [x] Closes #5329 - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New...
### Is your feature request related to a problem? `apply_ufunc( func, *args, kwargs={kwargs})` I am using a vectorized function that takes as a kwarg either a numpy array of dew...
**What happened**: In a Python environment with xarray 0.18.0 and python-netcdf4 installed, I called `xarray.open_dataset("nonexistent")`. (The file "nonexistent" does not exist.) xarray threw a `ValueError: cannot guess the engine, try...
### Context By using `copy(deep=False)` custom operations may avoid copying large amounts of data but can modify, e.g., coord dicts: ```python tmp = da.copy(deep=False) del tmp.coords['abc'] # Use tmp ```...
### What is your issue? I am increasingly thinking that automatic index-based alignment in Xarray (copied from pandas) may have been a design mistake. Almost every time I work with...
### What happened? When I select a single point (or regional subset) from a netcdf file and save as a new netcdf file, the newly saved file has an encoding...