issue_comments
where author_association = "NONE" sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
These facets timed out: author_association, user, issue
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
585452791 | https://github.com/pydata/xarray/issues/3762#issuecomment-585452791 | https://api.github.com/repos/pydata/xarray/issues/3762 | MDEyOklzc3VlQ29tbWVudDU4NTQ1Mjc5MQ== | bjcosta 6491058 | 2020-02-12T22:34:56Z | 2023-08-02T19:50:42Z | NONE |
Hi dcherian, I had a look at the apply_ufunc() example you linked and have re-implemented my code. The example helped me understand apply_ufunc() usage better but is very different from my use case and I still am unable to parallelize using dask. The key difference is apply_ufunc() as described in the docs and the example, applys a function to a vector of data of a single type (in the example case it is air temperature across the 3 dimensions lat,long,time). Where as I need to apply an operation using heterogeneous data (depth_bins, lower_limit, upper_limit) over a single dimension (time) to produce a new array of depths over time (which is why I tried groupby/map initially). Anyhow, I have an implementation using apply_ufunc() that works using xarray and numpy arrays with apply_ufunc(), but when I try to parallelize it using dask my ufunc is called with empty arrays by xarray and it fails. I.e. You can see when running the code below it logs the following when entering the ufunc: args: (array([], shape=(0, 0), dtype=int32), array([], dtype=int32), array([], dtype=int32), array([], dtype=int32)), kwargs: {} I was expecting this to be called once for each chunk with 1000 items for each array. Have I done something wrong in this work-around for the groupby/map code? Thanks, Brendon ```python import sys import math import logging import dask import xarray import numpy logger = logging.getLogger('main') if name == 'main': logging.basicConfig( stream=sys.stdout, format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray groupby/map fails to parallelize 561921094 | |
1078439763 | https://github.com/pydata/xarray/issues/2233#issuecomment-1078439763 | https://api.github.com/repos/pydata/xarray/issues/2233 | IC_kwDOAMm_X85AR69T | rsignell-usgs 1872600 | 2022-03-24T22:26:07Z | 2023-07-16T15:13:39Z | NONE | https://github.com/pydata/xarray/issues/2233#issuecomment-397602084 Would the new xarray index/coordinate internal refactoring now allow us to address this issue? cc @kthyng |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Problem opening unstructured grid ocean forecasts with 4D vertical coordinates 332471780 | |
1577528999 | https://github.com/pydata/xarray/issues/7894#issuecomment-1577528999 | https://api.github.com/repos/pydata/xarray/issues/7894 | IC_kwDOAMm_X85eBy6n | chfite 59711987 | 2023-06-05T21:59:45Z | 2023-06-05T21:59:45Z | NONE | ``` input array
however the integrated value ends up as a NaN
if one still wanted to know the integrated values for where there were values it would essentially by like integrating the separate chunks for where the valid values existedfirst chunk
second chunk
and then the sum would be the fully integrated area``` @dcherian I essentially was wondering whether it was possible for a skipna argument or some kind of NaN handling to be implemented that would allow users to avoid integrating in chunks due to the presence of NaNs. I do not work in dev so I would not know how to implement this, but I thought I'd see if others had thoughts. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Can a "skipna" argument be added for Dataset.integrate() and DataArray.integrate()? 1742035781 | |
1574324606 | https://github.com/pydata/xarray/issues/7890#issuecomment-1574324606 | https://api.github.com/repos/pydata/xarray/issues/7890 | IC_kwDOAMm_X85d1kl- | welcome[bot] 30606887 | 2023-06-02T21:16:03Z | 2023-06-02T21:16:03Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`xarray.rolling_window` Converts `dims` Argument from Tuple to List Causing Issues for Cupy-Xarray 1738835134 | |
1460873349 | https://github.com/pydata/xarray/issues/7456#issuecomment-1460873349 | https://api.github.com/repos/pydata/xarray/issues/7456 | IC_kwDOAMm_X85XEyiF | Karimat22 127195910 | 2023-03-08T21:04:05Z | 2023-06-01T15:42:44Z | NONE | The xr.Dataset.expand_dims() method can be used to add new dimensions to a dataset. The axis parameter is used to specify where to insert the new dimension in the dataset. However, it's worth noting that the axis parameter only works when expanding along a 1D coordinate, not when expanding along a multi-dimensional array. Here's an example to illustrate how to use the axis parameter to expand a dataset along a 1D coordinate: import xarray as xr create a sample datasetdata = xr.DataArray([[1, 2], [3, 4]], dims=('x', 'y')) ds = xr.Dataset({'foo': data}) add a new dimension along the 'x' coordinate using the 'axis' parameterds_expanded = ds.expand_dims({'z': [1]}, axis='x') In this example, we create a 2D array with dimensions x and y, and then add a new dimension along the x coordinate using the axis='x' parameter. However, if you try to use the axis parameter to expand a dataset along a multi-dimensional array, you may encounter an error. This is because expanding along a multi-dimensional array would result in a dataset with non-unique dimension names, which is not allowed in xarray. Here's an example to illustrate this issue: import xarray as xr create a sample dataset with a 2D arraydata = xr.DataArray([[1, 2], [3, 4]], dims=('x', 'y')) ds = xr.Dataset({'foo': data}) add a new dimension along the 'x' and 'y' coordinates using the 'axis' parameterds_expanded = ds.expand_dims({'z': [1]}, axis=('x', 'y')) In this example, we try to use the axis=('x', 'y') parameter to add a new dimension along both the x and y coordinates. However, this results in a ValueError because the resulting dataset would have non-unique dimension names. To add a new dimension along a multi-dimensional array, you can instead use the xr.concat() function to concatenate the dataset with a new data array along the desired dimension: import xarray as xr create a sample dataset with a 2D arraydata = xr.DataArray([[1, 2], [3, 4]], dims=('x', 'y')) ds = xr.Dataset({'foo': data}) add a new dimension along the 'x' and 'y' coordinates using xr.concatds_expanded = xr.concat([ds, xr.DataArray([1], dims=('z'))], dim='z') In this example, we use the xr.concat() function to concatenate the original dataset with a new data array that has a single value along the new dimension z. The dim='z' parameter is used to specify that the new dimension should be named z. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xr.DataSet.expand_dims axis option doesn't work 1548355645 | |
1571684058 | https://github.com/pydata/xarray/issues/7884#issuecomment-1571684058 | https://api.github.com/repos/pydata/xarray/issues/7884 | IC_kwDOAMm_X85drf7a | leamhowe 48015835 | 2023-06-01T09:29:13Z | 2023-06-01T09:29:13Z | NONE | Just running Is this an issue that cannot be solved? Thanks again for all your help! ```ModuleNotFoundError Traceback (most recent call last) Cell In[32], line 1 ----> 1 import cfgrib File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib__init__.py:20 18 # cfgrib core API depends on the ECMWF ecCodes C-library only 19 from .abc import Field, Fieldset, Index, MappingFieldset ---> 20 from .cfmessage import COMPUTED_KEYS 21 from .dataset import ( 22 Dataset, 23 DatasetBuildError, (...) 27 open_from_index, 28 ) 29 from .messages import FieldsetIndex, FileStream, Message File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib\cfmessage.py:29 26 import attr 27 import numpy as np ---> 29 from . import abc, messages 31 LOG = logging.getLogger(name) 33 # taken from eccodes stepUnits.table File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib\messages.py:28 25 import typing as T 27 import attr ---> 28 import eccodes # type: ignore 29 import numpy as np 31 from . import abc File ~\Anaconda3\envs\doom_test\lib\site-packages\eccodes__init__.py:13 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 13 from .eccodes import * # noqa 14 from .highlevel import * File ~\Anaconda3\envs\doom_test\lib\site-packages\eccodes\eccodes.py:12 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 12 from gribapi import ( 13 CODES_PRODUCT_ANY, 14 CODES_PRODUCT_BUFR, 15 CODES_PRODUCT_GRIB, 16 CODES_PRODUCT_GTS, 17 CODES_PRODUCT_METAR, 18 ) 19 from gribapi import GRIB_CHECK as CODES_CHECK 20 from gribapi import GRIB_MISSING_DOUBLE as CODES_MISSING_DOUBLE File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi__init__.py:13 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 13 from .gribapi import * # noqa 14 from .gribapi import version, lib 16 # The minimum recommended version for the ecCodes package File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\gribapi.py:34 30 from functools import wraps 32 import numpy as np ---> 34 from gribapi.errors import GribInternalError 36 from . import errors 37 from .bindings import ENC File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\errors.py:16 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 9 # does it submit to any jurisdiction. 10 # 12 """ 13 Exception class hierarchy 14 """ ---> 16 from .bindings import ENC, ffi, lib 19 class GribInternalError(Exception): 20 """ 21 @brief Wrap errors coming from the C API in a Python exception object. 22 23 Base class for all exceptions 24 """ File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\bindings.py:40 37 # default encoding for ecCodes strings 38 ENC = "ascii" ---> 40 ffi = cffi.FFI() 41 CDEF = pkgutil.get_data(name, "grib_api.h") 42 CDEF += pkgutil.get_data(name, "eccodes.h") File ~\Anaconda3\envs\doom_test\lib\site-packages\cffi\api.py:48, in FFI.init(self, backend) 42 """Create an FFI instance. The 'backend' argument is used to 43 select a non-default backend, mostly for tests. 44 """ 45 if backend is None: 46 # You need PyPy (>= 2.0 beta), or a CPython (>= 2.6) with 47 # _cffi_backend.so compiled. ---> 48 import _cffi_backend as backend 49 from . import version 50 if backend.version != version: 51 # bad version! Try to be as explicit as possible. ModuleNotFoundError: No module named '_cffi_backend' ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Reading .grib files with xarray 1732510720 | |
1570518243 | https://github.com/pydata/xarray/issues/7884#issuecomment-1570518243 | https://api.github.com/repos/pydata/xarray/issues/7884 | IC_kwDOAMm_X85dnDTj | leamhowe 48015835 | 2023-05-31T16:06:55Z | 2023-05-31T16:06:55Z | NONE | The version of I tried to update my own environment as you advised and have this error: ```ModuleNotFoundError Traceback (most recent call last) File ~\Anaconda3\envs\doom_test\lib\site-packages\xarray\tutorial.py:151, in open_dataset(name, cache, cache_dir, engine, **kws) 150 try: --> 151 import cfgrib # noqa 152 except ImportError as e: File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib__init__.py:20 19 from .abc import Field, Fieldset, Index, MappingFieldset ---> 20 from .cfmessage import COMPUTED_KEYS 21 from .dataset import ( 22 Dataset, 23 DatasetBuildError, (...) 27 open_from_index, 28 ) File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib\cfmessage.py:29 27 import numpy as np ---> 29 from . import abc, messages 31 LOG = logging.getLogger(name) File ~\Anaconda3\envs\doom_test\lib\site-packages\cfgrib\messages.py:28 27 import attr ---> 28 import eccodes # type: ignore 29 import numpy as np File ~\Anaconda3\envs\doom_test\lib\site-packages\eccodes__init__.py:13 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 13 from .eccodes import * # noqa 14 from .highlevel import * File ~\Anaconda3\envs\doom_test\lib\site-packages\eccodes\eccodes.py:12 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 12 from gribapi import ( 13 CODES_PRODUCT_ANY, 14 CODES_PRODUCT_BUFR, 15 CODES_PRODUCT_GRIB, 16 CODES_PRODUCT_GTS, 17 CODES_PRODUCT_METAR, 18 ) 19 from gribapi import GRIB_CHECK as CODES_CHECK File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi__init__.py:13 1 # 2 # (C) Copyright 2017- ECMWF. 3 # (...) 10 # 11 # ---> 13 from .gribapi import * # noqa 14 from .gribapi import version, lib File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\gribapi.py:34 32 import numpy as np ---> 34 from gribapi.errors import GribInternalError 36 from . import errors File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\errors.py:16 12 """ 13 Exception class hierarchy 14 """ ---> 16 from .bindings import ENC, ffi, lib 19 class GribInternalError(Exception): File ~\Anaconda3\envs\doom_test\lib\site-packages\gribapi\bindings.py:40 38 ENC = "ascii" ---> 40 ffi = cffi.FFI() 41 CDEF = pkgutil.get_data(name, "grib_api.h") File ~\Anaconda3\envs\doom_test\lib\site-packages\cffi\api.py:48, in FFI.init(self, backend) 45 if backend is None: 46 # You need PyPy (>= 2.0 beta), or a CPython (>= 2.6) with 47 # _cffi_backend.so compiled. ---> 48 import _cffi_backend as backend 49 from . import version ModuleNotFoundError: No module named '_cffi_backend' The above exception was the direct cause of the following exception: ImportError Traceback (most recent call last) Cell In[30], line 2 1 import xarray as xr ----> 2 xr.tutorial.open_dataset("era5-2mt-2019-03-uk.grib") File ~\Anaconda3\envs\doom_test\lib\site-packages\xarray\tutorial.py:153, in open_dataset(name, cache, cache_dir, engine, **kws) 151 import cfgrib # noqa 152 except ImportError as e: --> 153 raise ImportError( 154 "Reading this tutorial dataset requires the cfgrib package." 155 ) from e 157 url = f"{base_url}/raw/{version}/{path.name}" 159 # retrieve the file ImportError: Reading this tutorial dataset requires the cfgrib package. ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Reading .grib files with xarray 1732510720 | |
1568737270 | https://github.com/pydata/xarray/issues/7884#issuecomment-1568737270 | https://api.github.com/repos/pydata/xarray/issues/7884 | IC_kwDOAMm_X85dgQf2 | leamhowe 48015835 | 2023-05-30T16:32:00Z | 2023-05-30T16:32:00Z | NONE | Thanks for getting back to me! cfgrib is installed. I believe it might be a case that grib files are no longer readable in this way that I am following from: https://docs.xarray.dev/en/stable/examples/ERA5-GRIB-example.html As there are error messages on this example page. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Reading .grib files with xarray 1732510720 | |
1568648350 | https://github.com/pydata/xarray/issues/7884#issuecomment-1568648350 | https://api.github.com/repos/pydata/xarray/issues/7884 | IC_kwDOAMm_X85df6ye | welcome[bot] 30606887 | 2023-05-30T15:32:08Z | 2023-05-30T15:32:08Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Reading .grib files with xarray 1732510720 | |
1564629142 | https://github.com/pydata/xarray/pull/7874#issuecomment-1564629142 | https://api.github.com/repos/pydata/xarray/issues/7874 | IC_kwDOAMm_X85dQliW | welcome[bot] 30606887 | 2023-05-26T16:19:38Z | 2023-05-26T16:19:38Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Changed duck typing exception to: (ImportError, AttributeError) 1725525753 | |
1562734279 | https://github.com/pydata/xarray/issues/7871#issuecomment-1562734279 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dJW7H | gkb999 7091088 | 2023-05-25T11:23:44Z | 2023-05-25T11:23:44Z | NONE |
Thanks for getting back. I did post in rioxarray and yet, the last step I mentioned isn't successful there too. I'll post the code maybe 8hrs from here(can reach out to my sys then). Thanks for all the helpful suggestions so far. Really helpful. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1562698250 | https://github.com/pydata/xarray/issues/7871#issuecomment-1562698250 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dJOIK | gkb999 7091088 | 2023-05-25T10:55:09Z | 2023-05-25T10:55:09Z | NONE |
This is really helpful as I didn't know this before.
Which format would not cause the issue in that case float 64? If yes, can we manually convert?
Yeah. I have done the 180 to 360 deg conversions before. But the issue is more of with rioxarray reprojection I feel The internet data is in meters, as I wanted in degrees/lat-lon format, I converted the data from polar stereographic to wgs84. This converted the datas coordinates to degrees, latitudes are perfect. But longitude are arranged to -180 to +180 instead of 160E to 199W. I as well tried wrapping longitude to 0-360, but it should technically fall in 160-200 range while the long show all 0-360 and stretch throughout, which isn't right. So, converting the existing gridded data (in meters) to lat-lon projection without affecting the resolution and without nan is my ultimate aim/objective. I successfully converted data to lat-lon and clipped to region but, it drastically changed the resolution like around 20 times maybe. Preserving the resolution is very imp for my work. So, that's the issue with longitudes Thanks for your time if you went through this. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1562648682 | https://github.com/pydata/xarray/pull/7874#issuecomment-1562648682 | https://api.github.com/repos/pydata/xarray/issues/7874 | IC_kwDOAMm_X85dJCBq | welcome[bot] 30606887 | 2023-05-25T10:15:41Z | 2023-05-25T10:15:41Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Changed duck typing exception to: (ImportError, AttributeError) 1725525753 | |
1562040566 | https://github.com/pydata/xarray/issues/7344#issuecomment-1562040566 | https://api.github.com/repos/pydata/xarray/issues/7344 | IC_kwDOAMm_X85dGtj2 | riley-brady 82663402 | 2023-05-24T23:12:48Z | 2023-05-24T23:12:48Z | NONE | I want to add a +1 to disable it by default. It's pretty common to be using |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Disable bottleneck by default? 1471685307 | |
1561999178 | https://github.com/pydata/xarray/issues/7871#issuecomment-1561999178 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dGjdK | gkb999 7091088 | 2023-05-24T22:17:02Z | 2023-05-24T22:17:02Z | NONE | Well, that does makes sense.
I want to calculate anomalies along x-y grids and I'm guessing the nan values are interfering with the results.
Also, I have another question which isn't regarding Nan's. if it is right here, I may proceed. (else tag/link to other places/forums relevant).
Assuming you must be knowing:
I reprojected my nc file from meters to degrees
Now, although the projection is right, the values of longitude aren't.
Is there a way xarray can sort this automatically or do I need to manually reset the cordinates? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1561481756 | https://github.com/pydata/xarray/pull/7795#issuecomment-1561481756 | https://api.github.com/repos/pydata/xarray/issues/7795 | IC_kwDOAMm_X85dElIc | trexfeathers 40734014 | 2023-05-24T16:07:58Z | 2023-05-24T16:07:58Z | NONE | If you're curious what happened, we had the same problem: https://github.com/SciTools/iris/issues/5280#issuecomment-1525802077 Just wish I'd spotted this sooner but it's quite hard to follow two organisations' repos 😆 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
[skip-ci] Add cftime groupby, resample benchmarks 1688781350 | |
1561358915 | https://github.com/pydata/xarray/issues/7868#issuecomment-1561358915 | https://api.github.com/repos/pydata/xarray/issues/7868 | IC_kwDOAMm_X85dEHJD | ghiggi 19285200 | 2023-05-24T15:20:00Z | 2023-05-24T15:20:00Z | NONE | Dask array with dtype With your PR, the dtype is not anymore |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`open_dataset` with `chunks="auto"` fails when a netCDF4 variables/coordinates is encoded as `NC_STRING` 1722417436 | |
1561317714 | https://github.com/pydata/xarray/issues/7873#issuecomment-1561317714 | https://api.github.com/repos/pydata/xarray/issues/7873 | IC_kwDOAMm_X85dD9FS | anmyachev 45976948 | 2023-05-24T14:56:47Z | 2023-05-24T14:56:47Z | NONE |
Thanks for the answer! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
No `Xarray` conda package compatible with pandas>=2 for python 3.8 1724137371 | |
1561269845 | https://github.com/pydata/xarray/issues/7873#issuecomment-1561269845 | https://api.github.com/repos/pydata/xarray/issues/7873 | IC_kwDOAMm_X85dDxZV | welcome[bot] 30606887 | 2023-05-24T14:29:15Z | 2023-05-24T14:29:15Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
No `Xarray` conda package compatible with pandas>=2 for python 3.8 1724137371 | |
1561052487 | https://github.com/pydata/xarray/issues/7872#issuecomment-1561052487 | https://api.github.com/repos/pydata/xarray/issues/7872 | IC_kwDOAMm_X85dC8VH | welcome[bot] 30606887 | 2023-05-24T12:37:46Z | 2023-05-24T12:37:46Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`Dataset.to_array()` throws `IndexError` for empty datasets 1723889854 | |
1561014651 | https://github.com/pydata/xarray/pull/7551#issuecomment-1561014651 | https://api.github.com/repos/pydata/xarray/issues/7551 | IC_kwDOAMm_X85dCzF7 | sfinkens 1991007 | 2023-05-24T12:15:18Z | 2023-05-24T12:15:18Z | NONE | @markelg Thanks a lot for adding this! Do you have time to finalize it in the near future? If not, I could also take a look at the tests if you like. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Support for the new compression arguments. 1596511582 | |
1560651807 | https://github.com/pydata/xarray/issues/7868#issuecomment-1560651807 | https://api.github.com/repos/pydata/xarray/issues/7868 | IC_kwDOAMm_X85dBagf | ghiggi 19285200 | 2023-05-24T08:12:18Z | 2023-05-24T08:12:18Z | NONE | Thanks @kmuehlbauer ! https://github.com/pydata/xarray/pull/7869 solve the issues ! Summarizing:
- With #7869, netCDF4 with Thanks again @kmuehlbauer for having resolved the problem in less than 2 hours :1st_place_medal: |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`open_dataset` with `chunks="auto"` fails when a netCDF4 variables/coordinates is encoded as `NC_STRING` 1722417436 | |
1560588932 | https://github.com/pydata/xarray/issues/7871#issuecomment-1560588932 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dBLKE | gkb999 7091088 | 2023-05-24T07:25:38Z | 2023-05-24T07:26:40Z | NONE |
Yes, I did.
As we can see, the nan values are not completely gone |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1560584420 | https://github.com/pydata/xarray/issues/7871#issuecomment-1560584420 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dBKDk | gkb999 7091088 | 2023-05-24T07:22:13Z | 2023-05-24T07:22:13Z | NONE | Thanks alot for responding, but,
when I plot: I get,
I need to use data that has no empty cells for further analysis. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1560323080 | https://github.com/pydata/xarray/issues/7871#issuecomment-1560323080 | https://api.github.com/repos/pydata/xarray/issues/7871 | IC_kwDOAMm_X85dAKQI | welcome[bot] 30606887 | 2023-05-24T01:13:43Z | 2023-05-24T01:13:43Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Nan Values never get deleted 1723010051 | |
1560055470 | https://github.com/pydata/xarray/issues/4050#issuecomment-1560055470 | https://api.github.com/repos/pydata/xarray/issues/4050 | IC_kwDOAMm_X85c_I6u | ac547 54964372 | 2023-05-23T20:07:28Z | 2023-05-23T20:07:28Z | NONE | Another cause for this issue could be an unclosed netcdf file. Specifically if you did something like: my_file = Dataset('my_file.nc','w') and did not close it with my_file.close() The ncfile is still open and the HDF library still has a lock on it. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
RuntimeError: NetCDF: HDF error 615288533 | |
1560049559 | https://github.com/pydata/xarray/pull/7865#issuecomment-1560049559 | https://api.github.com/repos/pydata/xarray/issues/7865 | IC_kwDOAMm_X85c_HeX | welcome[bot] 30606887 | 2023-05-23T20:02:12Z | 2023-05-23T20:02:12Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Upload nightly wheels to scientific-python-nightly-wheels 1720850091 | |
1559971607 | https://github.com/pydata/xarray/issues/7870#issuecomment-1559971607 | https://api.github.com/repos/pydata/xarray/issues/7870 | IC_kwDOAMm_X85c-0cX | welcome[bot] 30606887 | 2023-05-23T18:54:19Z | 2023-05-23T18:54:19Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Name collision with Pulsar Timing package 'PINT' 1722614979 | |
1558282400 | https://github.com/pydata/xarray/issues/7866#issuecomment-1558282400 | https://api.github.com/repos/pydata/xarray/issues/7866 | IC_kwDOAMm_X85c4YCg | welcome[bot] 30606887 | 2023-05-23T00:41:57Z | 2023-05-23T00:41:57Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Enable object_codec in zarr backend 1720924071 | |
1558210722 | https://github.com/pydata/xarray/issues/7860#issuecomment-1558210722 | https://api.github.com/repos/pydata/xarray/issues/7860 | IC_kwDOAMm_X85c4Gii | znichollscr 114576287 | 2023-05-23T00:00:50Z | 2023-05-23T00:00:50Z | NONE |
Legend thanks |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
diff of cftime.Datetime 1719805837 | |
1558206595 | https://github.com/pydata/xarray/pull/7865#issuecomment-1558206595 | https://api.github.com/repos/pydata/xarray/issues/7865 | IC_kwDOAMm_X85c4FiD | welcome[bot] 30606887 | 2023-05-22T23:57:08Z | 2023-05-22T23:57:08Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Upload nightly wheels to scientific-python-nightly-wheels 1720850091 | |
1557708767 | https://github.com/pydata/xarray/issues/7863#issuecomment-1557708767 | https://api.github.com/repos/pydata/xarray/issues/7863 | IC_kwDOAMm_X85c2L_f | bsipocz 6788290 | 2023-05-22T18:36:12Z | 2023-05-22T18:36:12Z | NONE | @martinfleis already volunteered to do it using the github action we're working on in the scientific-python space. |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Produce nightly wheels 1720191529 | |
1557683734 | https://github.com/pydata/xarray/issues/7863#issuecomment-1557683734 | https://api.github.com/repos/pydata/xarray/issues/7863 | IC_kwDOAMm_X85c2F4W | welcome[bot] 30606887 | 2023-05-22T18:16:13Z | 2023-05-22T18:16:13Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Produce nightly wheels 1720191529 | |
1555891907 | https://github.com/pydata/xarray/issues/7854#issuecomment-1555891907 | https://api.github.com/repos/pydata/xarray/issues/7854 | IC_kwDOAMm_X85cvQbD | welcome[bot] 30606887 | 2023-05-20T11:30:56Z | 2023-05-20T11:30:56Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Freezing Issue When Accessing Precipitation Values with xarray 1718143526 | |
1551677537 | https://github.com/pydata/xarray/pull/7788#issuecomment-1551677537 | https://api.github.com/repos/pydata/xarray/issues/7788 | IC_kwDOAMm_X85cfLhh | welcome[bot] 30606887 | 2023-05-17T16:06:03Z | 2023-05-17T16:06:03Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix as_compatible_data for read-only np.ma.MaskedArray 1685422501 | |
1547022976 | https://github.com/pydata/xarray/pull/7840#issuecomment-1547022976 | https://api.github.com/repos/pydata/xarray/issues/7840 | IC_kwDOAMm_X85cNbKA | ayjayt 30324885 | 2023-05-14T23:10:31Z | 2023-05-14T23:10:31Z | NONE | I'm sorry, but just to reiterate, "x" is referred to as a dimension several times in the document. It is then, one time, mistakenly referred to as a coordinate. This pull request, which should be accepted, is to make the document consistent in how it refers to "x". |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix words to make terminology consistent in docs 1707774178 | |
1546367218 | https://github.com/pydata/xarray/issues/644#issuecomment-1546367218 | https://api.github.com/repos/pydata/xarray/issues/644 | IC_kwDOAMm_X85cK7Dy | davidshumway 3892695 | 2023-05-12T22:16:16Z | 2023-05-12T22:31:46Z | NONE | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Feature request: only allow nearest-neighbor .sel for valid data (not NaN positions) 114773593 | ||
1546068136 | https://github.com/pydata/xarray/issues/7838#issuecomment-1546068136 | https://api.github.com/repos/pydata/xarray/issues/7838 | IC_kwDOAMm_X85cJyCo | haiboliucu 14111025 | 2023-05-12T17:33:03Z | 2023-05-12T17:33:03Z | NONE | Thanks, yes. The remote access and local access are different with xarray v0.20.2.
remote:
local access:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Anomaly calculation with groupby leaves seasonal cycle 1706864252 | |
1546041240 | https://github.com/pydata/xarray/pull/7840#issuecomment-1546041240 | https://api.github.com/repos/pydata/xarray/issues/7840 | IC_kwDOAMm_X85cJreY | ayjayt 30324885 | 2023-05-12T17:07:08Z | 2023-05-12T17:09:44Z | NONE | Yeah, as a total new comer, this explanation seems not only unintuitive but also like we're fighting with common terminology used in math and everywhere else. When you define the coordinates,
It looks like you are defining a specific coordinate system Intuitively, we think: An xarray contains dimensions along which specific coordinates can be defined: xarray.dimension.coordinate In the attribute definition, we say:
I'm done, thank you for your time. I will continue reading and learning about xarray. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix words to make terminology consistent in docs 1707774178 | |
1546019472 | https://github.com/pydata/xarray/pull/7840#issuecomment-1546019472 | https://api.github.com/repos/pydata/xarray/issues/7840 | IC_kwDOAMm_X85cJmKQ | ayjayt 30324885 | 2023-05-12T16:47:46Z | 2023-05-12T16:51:44Z | NONE | Well, it's not consistent within this particular document, which is reasonably the first anyone reads. The dimension, as its refered to, in this example is called "x", we are assigning an attribute to "x", the coordinates of "x" are [10,20], we are not assigning an attribute to a coordinate within the dimension "x". |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix words to make terminology consistent in docs 1707774178 | |
1545958981 | https://github.com/pydata/xarray/issues/7838#issuecomment-1545958981 | https://api.github.com/repos/pydata/xarray/issues/7838 | IC_kwDOAMm_X85cJXZF | haiboliucu 14111025 | 2023-05-12T15:56:52Z | 2023-05-12T15:58:16Z | NONE | v 2022.11.0
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Anomaly calculation with groupby leaves seasonal cycle 1706864252 | |
1545870642 | https://github.com/pydata/xarray/pull/7840#issuecomment-1545870642 | https://api.github.com/repos/pydata/xarray/issues/7840 | IC_kwDOAMm_X85cJB0y | welcome[bot] 30606887 | 2023-05-12T14:53:26Z | 2023-05-12T14:53:26Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix words to make terminology consistent in docs 1707774178 | |
1545810160 | https://github.com/pydata/xarray/issues/6335#issuecomment-1545810160 | https://api.github.com/repos/pydata/xarray/issues/6335 | IC_kwDOAMm_X85cIzDw | davidshumway 3892695 | 2023-05-12T14:09:52Z | 2023-05-12T14:09:52Z | NONE |
An empty file will raise the same |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
ValueError: did not find a match in any of xarray's currently installed IO backends ['netcdf4']. 1160309381 | |
1545060540 | https://github.com/pydata/xarray/issues/7838#issuecomment-1545060540 | https://api.github.com/repos/pydata/xarray/issues/7838 | IC_kwDOAMm_X85cF8C8 | welcome[bot] 30606887 | 2023-05-12T03:34:09Z | 2023-05-12T03:34:09Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Anomaly calculation with groupby leaves seasonal cycle 1706864252 | |
1544952425 | https://github.com/pydata/xarray/issues/3213#issuecomment-1544952425 | https://api.github.com/repos/pydata/xarray/issues/3213 | IC_kwDOAMm_X85cFhpp | jbbutler 41593244 | 2023-05-12T01:01:21Z | 2023-05-12T01:01:21Z | NONE | Thank you all so much for the feedback and resources! I agree (1) testing the limits of xArray's API compatibility with sparse and (2) developing some documentation for what is/isn't supported are great places to start, so I'll get on that while I think about the other I/O issues (serialization, etc.) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should xarray use/support sparse arrays? 479942077 | |
1542421052 | https://github.com/pydata/xarray/issues/7832#issuecomment-1542421052 | https://api.github.com/repos/pydata/xarray/issues/7832 | IC_kwDOAMm_X85b73o8 | welcome[bot] 30606887 | 2023-05-10T15:37:19Z | 2023-05-10T15:37:19Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Opening grb files fails 1704196744 | |
1541877797 | https://github.com/pydata/xarray/issues/7831#issuecomment-1541877797 | https://api.github.com/repos/pydata/xarray/issues/7831 | IC_kwDOAMm_X85b5zAl | simonrp84 13449576 | 2023-05-10T10:20:35Z | 2023-05-10T10:20:35Z | NONE | Thanks for the replies. Yes, that second suggestion sounds good @kmuehlbauer! I realise it's not practical to add specific checks / messages for all engines, so something like this that links to a webpage that describes potential solutions seems like an excellent compromise. Your earlier solution (rephasing the error) I think would not help, however, as it still doesn't show users what the actual missing package is |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Can't open datasets with the `rasterio` engine. 1702025553 | |
1540113095 | https://github.com/pydata/xarray/issues/7831#issuecomment-1540113095 | https://api.github.com/repos/pydata/xarray/issues/7831 | IC_kwDOAMm_X85bzELH | welcome[bot] 30606887 | 2023-05-09T13:20:07Z | 2023-05-09T13:20:07Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Can't open datasets with the `rasterio` engine. 1702025553 | |
1537683612 | https://github.com/pydata/xarray/issues/7259#issuecomment-1537683612 | https://api.github.com/repos/pydata/xarray/issues/7259 | IC_kwDOAMm_X85bpzCc | rbuckland 1148383 | 2023-05-08T03:19:31Z | 2023-05-08T03:20:50Z | NONE | :heavy_plus_sign: 1 ``` ❯ pip freeze |grep -Ei "xarray|numpy|netcdf" netCDF4==1.6.3 numpy==1.23.3 xarray==2023.4.2 ❯ python -c "import xarray;import warnings;warnings.filterwarnings('error');import netCDF4" ❯ python -c "import netCDF4;import xarray;import warnings;warnings.filterwarnings('error');import netCDF4"
❯
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995 | |
1460894580 | https://github.com/pydata/xarray/issues/7593#issuecomment-1460894580 | https://api.github.com/repos/pydata/xarray/issues/7593 | IC_kwDOAMm_X85XE3t0 | Karimat22 127195910 | 2023-03-08T21:23:08Z | 2023-05-06T03:24:36Z | NONE | If you are encountering an error message that says "Plotting with time-zone-aware pd.Timestamp axis not possible", it means that you are trying to plot a Pandas DataFrame or Series that has a time-zone-aware pd.Timestamp axis using a plotting library that does not support time zones. To fix this error, you can convert the time-zone-aware pd.Timestamp axis to a time-zone-naive datetime object. This can be done using the tz_localize() method to set the time zone, followed by the tz_convert() method to convert to a new time zone or remove the time zone information altogether. Here is an example: import pandas as pd import matplotlib.pyplot as plt Create a time-series DataFrame with a time-zone-aware pd.Timestamp axisdata = pd.DataFrame({'value': [1, 2, 3, 4]}, index=pd.date_range('2022-03-01 00:00:00', periods=4, freq='H', tz='US/Eastern')) Convert the time-zone-aware pd.Timestamp axis to a time-zone-naive datetime objectdata.index = data.index.tz_localize(None) Plot the DataFrame using Matplotlibdata.plot() plt.show() In this example, we create a time-series DataFrame with a time-zone-aware pd.Timestamp axis using the pd.date_range() function with the tz parameter set to 'US/Eastern'. We then use the tz_localize() method to set the time zone to None to convert the axis to a time-zone-naive datetime object. Finally, we plot the DataFrame using Matplotlib and the plot() method. Note that converting the time-zone-aware pd.Timestamp axis to a time-zone-naive datetime object means that the time zone information is lost, so make sure that this is acceptable for your use case before making this conversion. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Plotting with time-zone-aware pd.Timestamp axis not possible 1613054013 | |
1536900927 | https://github.com/pydata/xarray/issues/7814#issuecomment-1536900927 | https://api.github.com/repos/pydata/xarray/issues/7814 | IC_kwDOAMm_X85bmz8_ | paul0207 25112215 | 2023-05-05T23:27:17Z | 2023-05-05T23:28:08Z | NONE | Thanks Kai,
I have attached the output of
I tried with two netcdf files from https://www.northwestknowledge.net/metdata/data/ and got the same TypeError: 'NoneType' object is not callable
Only engine="netcdf4" works as a parameter but I get the same error, h5netcdf is not recognized as an engine.
Yes, opening files with xr.open_dataset and combining them with xr.concat gives the same error. Please note the following that I just realized, the resulting combined netCDF file is actually created even though the errors are displayed. Also, as I mentioned in my first message, if I run the commands line by line in the python console no error message is displayed, this happens only when the code is ran as a script. Paul |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
TypeError: 'NoneType' object is not callable when joining netCDF files. Works when ran interactively. 1695028906 | |
1536431418 | https://github.com/pydata/xarray/issues/7818#issuecomment-1536431418 | https://api.github.com/repos/pydata/xarray/issues/7818 | IC_kwDOAMm_X85blBU6 | jules-ch 43635101 | 2023-05-05T15:32:25Z | 2023-05-05T15:34:20Z | NONE | Might be related to https://github.com/dask/distributed/issues/6402 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Warning on distributed lock on dask cluster 1697705761 | |
1535931753 | https://github.com/pydata/xarray/issues/7816#issuecomment-1535931753 | https://api.github.com/repos/pydata/xarray/issues/7816 | IC_kwDOAMm_X85bjHVp | gauteh 56827 | 2023-05-05T08:46:42Z | 2023-05-05T08:46:42Z | NONE | Hi, I forgot to rebuild the package after removing the BACKEND_... line. With only the line in pyproject.toml it works as it should! My mistake. Thanks for the patience. Regards, Gaute |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Backend registration does not match docs, and is no longer specifiable in maturin pyproject toml 1695809136 | |
1535716950 | https://github.com/pydata/xarray/issues/7816#issuecomment-1535716950 | https://api.github.com/repos/pydata/xarray/issues/7816 | IC_kwDOAMm_X85biS5W | gauteh 56827 | 2023-05-05T05:29:10Z | 2023-05-05T05:29:10Z | NONE | Hi, Yes, I tried that, but I then got the same error as if I kept that line in the old format. I'll do a few tests and post the proper error here. Gaute |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Backend registration does not match docs, and is no longer specifiable in maturin pyproject toml 1695809136 | |
1535432806 | https://github.com/pydata/xarray/issues/7816#issuecomment-1535432806 | https://api.github.com/repos/pydata/xarray/issues/7816 | IC_kwDOAMm_X85bhNhm | gauteh 56827 | 2023-05-04T21:23:31Z | 2023-05-04T21:23:31Z | NONE | If I do not manually add the backend to the array, but only have this line in https://github.com/gauteh/hidefix/blob/main/pyproject.toml#L29:
which is only what is supported by pyproject.toml/maturin I get an error where xarray expected a tuple and cannot parse the entrypoint, not just the adderss to the entrypoint - as it used to be (back in January at least). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Backend registration does not match docs, and is no longer specifiable in maturin pyproject toml 1695809136 | |
1535347180 | https://github.com/pydata/xarray/issues/7705#issuecomment-1535347180 | https://api.github.com/repos/pydata/xarray/issues/7705 | IC_kwDOAMm_X85bg4ns | psychemedia 82988 | 2023-05-04T20:07:27Z | 2023-05-04T20:07:27Z | NONE | As well as |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Using xarray in Docker on a mac fails with "No such file or directory: 'gdal-config'" 1649994877 | |
1535168128 | https://github.com/pydata/xarray/issues/7814#issuecomment-1535168128 | https://api.github.com/repos/pydata/xarray/issues/7814 | IC_kwDOAMm_X85bgM6A | paul0207 25112215 | 2023-05-04T17:44:14Z | 2023-05-04T17:44:31Z | NONE | Deepak, thanks for replying, I have attached a couple of my netCDF files. Hopefully these will help for reproducing the issue. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
TypeError: 'NoneType' object is not callable when joining netCDF files. Works when ran interactively. 1695028906 | |
1534695467 | https://github.com/pydata/xarray/issues/3213#issuecomment-1534695467 | https://api.github.com/repos/pydata/xarray/issues/3213 | IC_kwDOAMm_X85beZgr | khaeru 1634164 | 2023-05-04T12:31:22Z | 2023-05-04T12:31:22Z | NONE | That's a totally valid scope limitation for the sparse package, and I understand the motivation. I'm just saying that the principle of least astonishment is not being followed: the user cannot at the moment read either the xarray or sparse docs and know which portions of the xarray API will work when giving |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should xarray use/support sparse arrays? 479942077 | |
1534231523 | https://github.com/pydata/xarray/issues/3213#issuecomment-1534231523 | https://api.github.com/repos/pydata/xarray/issues/3213 | IC_kwDOAMm_X85bcoPj | khaeru 1634164 | 2023-05-04T07:40:26Z | 2023-05-04T07:40:26Z | NONE | @jbbutler please also see this comment et seq. https://github.com/pydata/sparse/issues/1#issuecomment-792342987 and related pydata/sparse#438. To add to @rabernat's point about sparse support being "not well documented", I suspect (but don't know, as I'm just a user of xarray, not a developer) that it's also not thoroughly tested. I expected to be able to use e.g. IMHO, I/O to/from sparse-backed objects is less valuable if only a small subset of xarray functionality is available on those objects. Perhaps explicitly testing/confirming which parts of the API do/do not currently work with sparse would support the improvements to the docs that Ryan mentioned, and reveal the work remaining to provide full(er) support. |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should xarray use/support sparse arrays? 479942077 | |
1533918236 | https://github.com/pydata/xarray/issues/7814#issuecomment-1533918236 | https://api.github.com/repos/pydata/xarray/issues/7814 | IC_kwDOAMm_X85bbbwc | welcome[bot] 30606887 | 2023-05-04T00:41:32Z | 2023-05-04T00:41:32Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
TypeError: 'NoneType' object is not callable when joining netCDF files. Works when ran interactively. 1695028906 | |
1533842816 | https://github.com/pydata/xarray/issues/3213#issuecomment-1533842816 | https://api.github.com/repos/pydata/xarray/issues/3213 | IC_kwDOAMm_X85bbJWA | jbbutler 41593244 | 2023-05-03T22:40:32Z | 2023-05-03T22:40:32Z | NONE | Hi all! As part of a research project, I'm looking to contribute to xArray's sparse capabilities, with an emphasis on sparse support for use-cases in the geosciences. I'm wondering if anyone in the geosciences (or adjacent disciplines!) has encountered problems with xArray's current level of sparse support, and what kinds of improvements they'd like to see to address those issues. From playing around, it seems the current strategy of backing DataArrays with COO sparse arrays takes care of a lot of use cases, but I have the following ideas that may (or may not) be useful to implement further:
I'd appreciate any feedback on these ideas, as well as any other things that would be nice to have implemented! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should xarray use/support sparse arrays? 479942077 | |
1532152709 | https://github.com/pydata/xarray/issues/7790#issuecomment-1532152709 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bUsuF | christine-e-smit 14983768 | 2023-05-02T21:07:27Z | 2023-05-02T21:09:10Z | NONE | @kmuehlbauer - genius! Yes. That pull request should fix this issue exactly! And it explains why I see this issue and you don't - with undefined behavior anything can happen. Since we are on different OSes, our systems behave differently. I just double checked with pandas and this fix will do the right thing:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1531571768 | https://github.com/pydata/xarray/issues/7807#issuecomment-1531571768 | https://api.github.com/repos/pydata/xarray/issues/7807 | IC_kwDOAMm_X85bSe44 | welcome[bot] 30606887 | 2023-05-02T14:22:17Z | 2023-05-02T14:22:17Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interpolation on unstructured data/irregular grid 1692523672 | |
1530996828 | https://github.com/pydata/xarray/issues/7805#issuecomment-1530996828 | https://api.github.com/repos/pydata/xarray/issues/7805 | IC_kwDOAMm_X85bQShc | welcome[bot] 30606887 | 2023-05-02T07:15:14Z | 2023-05-02T07:15:14Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
[FR] add support for rss and rss button to xarray blog 1691902604 | |
1530347592 | https://github.com/pydata/xarray/issues/7790#issuecomment-1530347592 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bN0BI | christine-e-smit 14983768 | 2023-05-01T21:43:08Z | 2023-05-01T21:43:56Z | NONE | Ah hah! Well, I don't know why this is working for you @kmuehlbauer, but I can see why it is not working for me. I've been debugging through the code and it looks like the problem is the It all starts in the There's a bunch of stuff that gets called, but eventually we get to the function and then, in In line 254, |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1530186148 | https://github.com/pydata/xarray/issues/7790#issuecomment-1530186148 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bNMmk | christine-e-smit 14983768 | 2023-05-01T20:25:34Z | 2023-05-01T20:25:34Z | NONE | @kmuehlbauer - I ran https://github.com/pydata/xarray/issues/7790#issuecomment-1529894939 and I get an incorrect fill value: ``` Created with fill value 1900-01-01 <xarray.DataArray 'time' (time: 2)> array([ 'NaT', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] NaT 2023-01-02 Read back out of the zarr store with xarray <xarray.DataArray 'time' (time: 2)> array(['1970-01-01T00:00:00.000000000', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 1970-01-01 2023-01-02 {} {'chunks': (2,), 'preferred_chunks': {'time': 2}, 'compressor': Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0), 'filters': None, '_FillValue': -2208988800000000000, 'units': 'nanoseconds since 1970-01-01', 'calendar': 'proleptic_gregorian', 'dtype': dtype('int64')} Read back out of the zarr store with zarr <zarr.core.Array '/time' (2,) int64 read-only> <zarr.attrs.Attributes object at 0x132802a50> [-2208988800000000000 1672617600000000000]
commit: None python: 3.11.3 | packaged by conda-forge | (main, Apr 6 2023, 08:58:31) [Clang 14.0.6 ] python-bits: 64 OS: Darwin OS-release: 22.4.0 machine: arm64 processor: arm byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: ('en_US', 'UTF-8') libhdf5: None libnetcdf: None xarray: 2023.4.2 pandas: 2.0.1 numpy: 1.24.3 scipy: None netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: 2.14.2 cftime: None nc_time_axis: None PseudoNetCDF: None iris: None bottleneck: None dask: None distributed: None matplotlib: None cartopy: None seaborn: None numbagg: None fsspec: None cupy: None pint: None sparse: None flox: None numpy_groupies: None setuptools: 67.7.2 pip: 23.1.2 conda: None pytest: None mypy: None IPython: 8.13.1 sphinx: None ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1530056660 | https://github.com/pydata/xarray/issues/7790#issuecomment-1530056660 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bMs_U | christine-e-smit 14983768 | 2023-05-01T18:37:47Z | 2023-05-01T18:39:21Z | NONE | Oops! Yes. You are right. I had some cross-wording on the variable names. So I started a new notebook. Unfortunately, I think you may have also gotten some wires crossed? You set the time fill value to 1900-01-01, but then use NaT in the actual array? Here is a fresh notebook with a stand-alone cell with everything that I think you were doing, but I'm not 100%. The fill value is still wrong when it gets read out, but it is at least different? The fill value is now set to the units for some reason. This seems like progress? ```python import numpy as np import xarray as xr import zarr Create a time array with one fill value, NaTtime = np.array([np.datetime64("NaT", "ns"), '2023-01-02 00:00:00.00000000'], dtype='M8[ns]') Create xarray with this fill valuexr_time_array = xr.DataArray(data=time,dims=['time'],name='time') xr_ds = xr.Dataset(dict(time=xr_time_array)) print("****") print("xarray created with NaT fill value") print("----------------------") print(xr_ds["time"]) Save as zarrlocation_with_units = "xarray_and_units.zarr" encoding = { "time":{"_FillValue":np.datetime64("NaT","ns"),"dtype":np.int64,"units":"nanoseconds since 1970-01-01"} } xr_ds.to_zarr(location_with_units,mode="w",encoding=encoding) Read it back out againxr_read = xr.open_zarr(location_with_units) print("****") print("xarray created read with NaT fill value") print("----------------------") print(xr_read["time"]) print(xr_read["time"].attrs) print(xr_read["time"].encoding) ``` ``` xarray created with NaT fill value<xarray.DataArray 'time' (time: 2)> array([ 'NaT', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] NaT 2023-01-02 xarray created read with NaT fill value<xarray.DataArray 'time' (time: 2)> array(['1970-01-01T00:00:00.000000000', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 1970-01-01 2023-01-02 {} {'chunks': (2,), 'preferred_chunks': {'time': 2}, 'compressor': Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0), 'filters': None, '_FillValue': -9223372036854775808, 'units': 'nanoseconds since 1970-01-01', 'calendar': 'proleptic_gregorian', 'dtype': dtype('int64')} ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1529821519 | https://github.com/pydata/xarray/pull/7801#issuecomment-1529821519 | https://api.github.com/repos/pydata/xarray/issues/7801 | IC_kwDOAMm_X85bLzlP | welcome[bot] 30606887 | 2023-05-01T15:13:48Z | 2023-05-01T15:13:48Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Update asv links in contributing guide 1690872248 | |
1529099827 | https://github.com/pydata/xarray/pull/7799#issuecomment-1529099827 | https://api.github.com/repos/pydata/xarray/issues/7799 | IC_kwDOAMm_X85bJDYz | welcome[bot] 30606887 | 2023-04-30T18:04:54Z | 2023-04-30T18:04:54Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Start making unit testing more general 1690019325 | |
1460859657 | https://github.com/pydata/xarray/issues/7584#issuecomment-1460859657 | https://api.github.com/repos/pydata/xarray/issues/7584 | IC_kwDOAMm_X85XEvMJ | Karimat22 127195910 | 2023-03-08T20:51:15Z | 2023-04-29T03:41:57Z | NONE | When using NumPy arrays, the np.multiply() function and the * operator behave the same way and perform element-wise multiplication on the arrays. Similarly, the np.add() function and the + operator perform element-wise addition. However, when using Dask arrays, there is a difference between using the * and + operators and using the dask.array.multiply() and dask.array.add() functions. This is because Dask arrays are lazy and do not compute the result of an operation until it is explicitly requested. When you use the * or + operators, Dask constructs a task graph that describes the computation, but does not actually execute it until you explicitly call a computation method like dask.compute() or dask.persist(). On the other hand, when you use the dask.array.multiply() or dask.array.add() functions, Dask immediately constructs a task graph and adds it to the computation graph, triggering the computation to begin. Here's an example to illustrate the difference: import dask.array as da x = da.ones((1000, 1000), chunks=(100, 100)) y = da.ones((1000, 1000), chunks=(100, 100)) using the * operatorz = x * y no computation is triggered yetusing dask.array.multiply()z = da.multiply(x, y) computation is immediately triggeredIn this example, the * operator creates a task graph for the multiplication but does not execute it, whereas the dask.array.multiply() function immediately adds the task graph to the computation graph and triggers the computation to begin. It's worth noting that using the * and + operators can be more convenient and can lead to cleaner code, especially for simple operations. However, if you need more control over when computations are executed or want to avoid unnecessary computations, you should use the dask.array.multiply() and dask.array.add() functions. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`np.multiply` and `dask.array.multiply` trigger graph computation vs using `+` and `*` operators. 1609090149 | |
1528096647 | https://github.com/pydata/xarray/pull/7787#issuecomment-1528096647 | https://api.github.com/repos/pydata/xarray/issues/7787 | IC_kwDOAMm_X85bFOeH | tacaswell 199813 | 2023-04-28T21:07:24Z | 2023-04-28T21:07:24Z | NONE | I'm also relatively sure that if you are willing to put a floor on the version of Matplotlib you support |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow the label run-upstream to run upstream CI 1684281101 | |
1527948787 | https://github.com/pydata/xarray/issues/7790#issuecomment-1527948787 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bEqXz | christine-e-smit 14983768 | 2023-04-28T18:39:01Z | 2023-04-28T18:39:01Z | NONE | Where in the code is the time array being decoded? That seems to be where a lot of the issue is? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1527918654 | https://github.com/pydata/xarray/issues/7790#issuecomment-1527918654 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bEjA- | christine-e-smit 14983768 | 2023-04-28T18:08:16Z | 2023-04-28T18:08:16Z | NONE | The zarr store does indeed use an integer in this case according to the .zmetadata file:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1527917772 | https://github.com/pydata/xarray/issues/7790#issuecomment-1527917772 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bEizM | christine-e-smit 14983768 | 2023-04-28T18:07:40Z | 2023-04-28T18:07:40Z | NONE | @kmuehlbauer - I think I'm not understanding what you are suggesting because the zarr store is still not being read correctly when I switch the fill value to a different date: ```python Create a numpy array of type np.datetime64 with one fill value and one datetime_fill_value = np.datetime64("1900-01-01") time = np.array([time_fill_value,'2023-01-02'],dtype='M8[ns]') Create a dataset with this one arrayxr_time_array = xr.DataArray(data=time,dims=['time'],name='time') xr_ds = xr.Dataset(dict(time=xr_time_array)) print("******") print("Created with fill value 1900-01-01") print(xr_ds["time"]) Save the dataset to zarrlocation_new_fill = "from_xarray_new_fill.zarr" encoding = { "time":{"_FillValue":time_fill_value,"dtype":np.int64} } xr_ds.to_zarr(location_new_fill,encoding=encoding) xr_read = xr.open_zarr(location)
print("******")
print("Read back out of the zarr store with xarray")
print(xr_read["time"])
print(xr_read["time"].encoding)
Created with fill value 1900-01-01 <xarray.DataArray 'time' (time: 2)> array(['1900-01-01T00:00:00.000000000', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 1900-01-01 2023-01-02 <xarray.DataArray 'time' (time: 2)> array(['2023-01-02T00:00:00.000000000', '2023-01-02T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 2023-01-02 2023-01-02 {'chunks': (2,), 'preferred_chunks': {'time': 2}, 'compressor': Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0), 'filters': None, '_FillValue': -9.223372036854776e+18, 'units': 'days since 2023-01-02 00:00:00', 'calendar': 'proleptic_gregorian', 'dtype': dtype('float64')} ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1527759092 | https://github.com/pydata/xarray/issues/7794#issuecomment-1527759092 | https://api.github.com/repos/pydata/xarray/issues/7794 | IC_kwDOAMm_X85bD8D0 | welcome[bot] 30606887 | 2023-04-28T15:48:28Z | 2023-04-28T15:48:28Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
TypeError for time_bnds variable when calling Dataset.to_netcdf 1688779793 | |
1527713055 | https://github.com/pydata/xarray/pull/7635#issuecomment-1527713055 | https://api.github.com/repos/pydata/xarray/issues/7635 | IC_kwDOAMm_X85bDw0f | welcome[bot] 30606887 | 2023-04-28T15:09:31Z | 2023-04-28T15:09:31Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Implement DataArray.to_dask_dataframe() 1627298527 | |
1527606751 | https://github.com/pydata/xarray/issues/7015#issuecomment-1527606751 | https://api.github.com/repos/pydata/xarray/issues/7015 | IC_kwDOAMm_X85bDW3f | ljstrnadiii 3171991 | 2023-04-28T13:55:34Z | 2023-04-28T13:55:34Z | NONE | @jdldeauna how did you resolve this issue? I am seeing similar issues, but only encounter this when writing to zarr with a dask cluster. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
ArrayNotFoundError when saving xarray Dataset as zarr 1368186791 | |
1526090523 | https://github.com/pydata/xarray/issues/7792#issuecomment-1526090523 | https://api.github.com/repos/pydata/xarray/issues/7792 | IC_kwDOAMm_X85a9ksb | welcome[bot] 30606887 | 2023-04-27T17:45:03Z | 2023-04-27T17:45:03Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
If "chunks=None" is set in open_mfdataset, it is changed to "chunks={}" before being passed to "_dataset_from_backend_dataset" 1687297423 | |
1526051246 | https://github.com/pydata/xarray/issues/7713#issuecomment-1526051246 | https://api.github.com/repos/pydata/xarray/issues/7713 | IC_kwDOAMm_X85a9bGu | zoj613 44142765 | 2023-04-27T17:11:09Z | 2023-04-27T17:11:34Z | NONE | @kmuehlbauer It looks like a bug in the code if indeed tuples are meant to be treated the same as any sequence of data. These lines https://github.com/pydata/xarray/blob/0f4e99d036b0d6d76a3271e6191eacbc9922662f/xarray/core/variable.py#L259-L260 suggest that when a tuple is passed in, it is converted to a 0-dimension array of type object via https://github.com/pydata/xarray/blob/0f4e99d036b0d6d76a3271e6191eacbc9922662f/xarray/core/utils.py#L344-L348 Maybe removing the tuple type check and relying on this line https://github.com/pydata/xarray/blob/0f4e99d036b0d6d76a3271e6191eacbc9922662f/xarray/core/variable.py#L287-L288 is better? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`Variable/IndexVariable` do not accept a tuple for data. 1652227927 | |
1525774670 | https://github.com/pydata/xarray/issues/7790#issuecomment-1525774670 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85a8XlO | christine-e-smit 14983768 | 2023-04-27T14:13:58Z | 2023-04-27T14:13:58Z | NONE | Interestingly, xarray is also perfectly happy to read a numpy.datetime64 array out of a zarr store as long as the xarray metadata is present. xarray even helpfully creates an '_FillValue" attribute for the array so there is no confusion: ``` Create a zarr store directly with numpy.datetime64 typelocation_zarr_direct = "from_zarr.zarr" root = zarr.open(location_zarr_direct,mode='w') z_time_array = root.create_dataset( "time",data=time,shape=time.shape,chunks=time.shape,dtype=time.dtype, fill_value=time_fill_value ) Add xarray metadataz_time_array.attrs["_ARRAY_DIMENSIONS"] = ["time"] zarr.convenience.consolidate_metadata(location_zarr_direct) Use xarray to read this data outxr_read_from_zarr = xr.open_zarr(location_zarr_direct)
print(xr_read_from_zarr["time"])
So I am extremely confused as to why xarray encodes time arrays so strangely when it creates the zarr store itself! (Hence https://github.com/pydata/xarray/discussions/7776) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1525766244 | https://github.com/pydata/xarray/issues/7790#issuecomment-1525766244 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85a8Vhk | christine-e-smit 14983768 | 2023-04-27T14:08:37Z | 2023-04-27T14:08:37Z | NONE | Ah! Okay. I did not know about the Interestingly, -9.223372036854776e+18 is just the float equivalent of numpy.datetime64('NaT'):
And I know this isn't an issue with zarr and NaT because I can create the zarr store directly with the zarr library and it's perfectly happy: ```python Create a zarr store directly with numpy.datetime64 typelocation_zarr_direct = "from_zarr.zarr" root = zarr.open(location_zarr_direct,mode='w') z_time_array = root.create_dataset( "time",data=time,shape=time.shape,chunks=time.shape,dtype=time.dtype, fill_value=time_fill_value ) zarr.convenience.consolidate_metadata(location_zarr_direct) Read it back out againread_zarr = zarr.open(location_zarr_direct,mode='r')
print(read_zarr["time"][:])
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1524099019 | https://github.com/pydata/xarray/issues/7790#issuecomment-1524099019 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85a1-fL | welcome[bot] 30606887 | 2023-04-26T22:03:08Z | 2023-04-26T22:03:08Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1523782262 | https://github.com/pydata/xarray/pull/7788#issuecomment-1523782262 | https://api.github.com/repos/pydata/xarray/issues/7788 | IC_kwDOAMm_X85a0xJ2 | welcome[bot] 30606887 | 2023-04-26T17:15:27Z | 2023-04-26T17:15:27Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix as_compatible_data for read-only np.ma.MaskedArray 1685422501 | |
1523589395 | https://github.com/pydata/xarray/pull/7786#issuecomment-1523589395 | https://api.github.com/repos/pydata/xarray/issues/7786 | IC_kwDOAMm_X85a0CET | welcome[bot] 30606887 | 2023-04-26T15:10:46Z | 2023-04-26T15:10:46Z | NONE | Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use canonical name for set_horizonalalignment over alias set_ha 1683839855 | |
1522392856 | https://github.com/pydata/xarray/pull/7786#issuecomment-1522392856 | https://api.github.com/repos/pydata/xarray/issues/7786 | IC_kwDOAMm_X85avd8Y | welcome[bot] 30606887 | 2023-04-25T20:45:28Z | 2023-04-25T20:45:28Z | NONE | Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use canonical name for set_horizonalalignment over alias set_ha 1683839855 | |
1521731294 | https://github.com/pydata/xarray/issues/7758#issuecomment-1521731294 | https://api.github.com/repos/pydata/xarray/issues/7758 | IC_kwDOAMm_X85as8be | huaracheguarache 33153877 | 2023-04-25T12:46:52Z | 2023-04-25T12:46:52Z | NONE | @dcherian Interesting! There should ideally be a way to set that because 32-64 seconds is way to long to wait before timing out in my opinion. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Provide a way to specify how long open_dataset tries to fetch data before timing out 1668898601 | |
1520222850 | https://github.com/pydata/xarray/issues/7782#issuecomment-1520222850 | https://api.github.com/repos/pydata/xarray/issues/7782 | IC_kwDOAMm_X85anMKC | welcome[bot] 30606887 | 2023-04-24T14:04:15Z | 2023-04-24T14:04:15Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xr.open_dataset() reading ubyte variables as float32 from DAP server 1681353195 | |
1519897098 | https://github.com/pydata/xarray/issues/7772#issuecomment-1519897098 | https://api.github.com/repos/pydata/xarray/issues/7772 | IC_kwDOAMm_X85al8oK | dabhicusp 123355381 | 2023-04-24T10:51:16Z | 2023-04-24T10:51:16Z | NONE | Thank you @dcherian . I cannot reproduced this on |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Process getting killed due to high memory consumption of xarray's nbytes method 1676561243 | |
1517919313 | https://github.com/pydata/xarray/issues/7388#issuecomment-1517919313 | https://api.github.com/repos/pydata/xarray/issues/7388 | IC_kwDOAMm_X85aeZxR | zklaus 1185813 | 2023-04-21T14:27:48Z | 2023-04-21T14:27:48Z | NONE | Do you need them in 4.9.1 then, or is updating to 4.9.2 an option? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Xarray does not support full range of netcdf-python compression options 1503046820 | |
1517649648 | https://github.com/pydata/xarray/issues/7772#issuecomment-1517649648 | https://api.github.com/repos/pydata/xarray/issues/7772 | IC_kwDOAMm_X85adX7w | dabhicusp 123355381 | 2023-04-21T10:57:28Z | 2023-04-21T10:57:28Z | NONE | The first point that you mentioned does not seem to be correct. Please see the below code (we took the sparse matrix ) and output: ``` import xarray as xa import numpy as np def get_data(): lat_dim = 7210 lon_dim = 7440
if name == "main": get_data() ```
And for the 2nd point can you share any solution for the nbytes for the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Process getting killed due to high memory consumption of xarray's nbytes method 1676561243 | |
1517341155 | https://github.com/pydata/xarray/issues/7773#issuecomment-1517341155 | https://api.github.com/repos/pydata/xarray/issues/7773 | IC_kwDOAMm_X85acMnj | aragong 48764870 | 2023-04-21T06:40:49Z | 2023-04-21T06:40:49Z | NONE | I open a new issue in netcdf github - https://github.com/Unidata/netcdf4-python/issues/1246 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
opendap access fails only in ubuntu machines 1676792648 | |
1517328574 | https://github.com/pydata/xarray/issues/7773#issuecomment-1517328574 | https://api.github.com/repos/pydata/xarray/issues/7773 | IC_kwDOAMm_X85acJi- | aragong 48764870 | 2023-04-21T06:25:40Z | 2023-04-21T06:25:40Z | NONE | Sure @dcherian! I add a simple test as you recommend, and all ubuntu tests crashed. ```python def test_only_netCDF4_access(): dataset = Dataset( "https://ihthredds.ihcantabria.com/thredds/dodsC/Bathymetry/Global/Gebco_2020.nc" ) assert isinstance(dataset, Dataset) ```` And also I run this code in Googlecolab. Same problem... seems that something happend with netCDF4.... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
opendap access fails only in ubuntu machines 1676792648 | |
1516635334 | https://github.com/pydata/xarray/issues/2995#issuecomment-1516635334 | https://api.github.com/repos/pydata/xarray/issues/2995 | IC_kwDOAMm_X85aZgTG | rebeccaringuette 49281118 | 2023-04-20T16:38:46Z | 2023-04-20T16:38:46Z | NONE | Related issue: https://github.com/pydata/xarray/issues/4122 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Remote writing NETCDF4 files to Amazon S3 449706080 | |
1516494141 | https://github.com/pydata/xarray/issues/7721#issuecomment-1516494141 | https://api.github.com/repos/pydata/xarray/issues/7721 | IC_kwDOAMm_X85aY909 | rgommers 98330 | 2023-04-20T15:04:17Z | 2023-04-20T15:04:17Z | NONE |
I was considering this question for SciPy (xref scipy#18286) this week, and I think I'm happy with this strategy:
1. Cast all "array-like" inputs like Python scalars, lists/sequences, and generators, to What that results in is an API that's backwards-compatible for numpy and array-like usage, and much stricter when using other array libraries. That strictness to me is a good thing, because:
- that's what CuPy, PyTorch & co themselves do, and it works well there
- it avoids the complexity raised by arbitrary mixing, which results in questions like the one raised in this issue.
- in case you do need to use a scalar from within a function inside your own library, just convert it explicitly to the desired array type with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`as_shared_dtype` converts scalars to 0d `numpy` arrays if chunked `cupy` is involved 1655290694 | |
1516188394 | https://github.com/pydata/xarray/issues/7772#issuecomment-1516188394 | https://api.github.com/repos/pydata/xarray/issues/7772 | IC_kwDOAMm_X85aXzLq | welcome[bot] 30606887 | 2023-04-20T11:46:04Z | 2023-04-20T11:46:04Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Process getting killed due to high memory consumption of xarray's nbytes method 1676561243 | |
1515869547 | https://github.com/pydata/xarray/pull/7769#issuecomment-1515869547 | https://api.github.com/repos/pydata/xarray/issues/7769 | IC_kwDOAMm_X85aWlVr | gsieros 16255489 | 2023-04-20T07:42:09Z | 2023-04-20T07:42:09Z | NONE | Just confirmed that the fix works for the actual application that I was using (where N-NW etc were used as labels in binning wind directions), so all good in that respect. |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
Fix groupby_bins when labels are specified 1675073096 | |
1515600072 | https://github.com/pydata/xarray/issues/7721#issuecomment-1515600072 | https://api.github.com/repos/pydata/xarray/issues/7721 | IC_kwDOAMm_X85aVjjI | leofang 5534781 | 2023-04-20T01:50:58Z | 2023-04-20T01:50:58Z | NONE | Thanks, Justus, for expanding on this. It sounds to me the question is "how do we cast dtypes when multiple array libraries are participating in the same computation?" and I am not sure I am knowledgable enough to make any comment. From the array API point of view, long long ago we decided that this is UB (undefined behavior), meaning it's completely up to each library to decide what to do. You can raise or come up with a special rule that you can make sense of. It sounds like Xarray has some machinery to deal with this situation, but you'd rather prefer to not keep special-casing for a certain array library? Am I understanding it right? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`as_shared_dtype` converts scalars to 0d `numpy` arrays if chunked `cupy` is involved 1655290694 | |
1514662357 | https://github.com/pydata/xarray/issues/7768#issuecomment-1514662357 | https://api.github.com/repos/pydata/xarray/issues/7768 | IC_kwDOAMm_X85aR-nV | welcome[bot] 30606887 | 2023-04-19T12:37:55Z | 2023-04-19T12:37:55Z | NONE | Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Supplying multidimensional initial guess to `curvefit` 1674818753 | |
1514473763 | https://github.com/pydata/xarray/issues/7767#issuecomment-1514473763 | https://api.github.com/repos/pydata/xarray/issues/7767 | IC_kwDOAMm_X85aRQkj | tbloch1 34276374 | 2023-04-19T10:08:52Z | 2023-04-19T10:08:52Z | NONE | Thanks for the replies So while The latter feels quite unintuitive to me. Is the reason they're different only for the mask example you provided? Where NaN is returned as the default 'x' value? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Inconsistency between xr.where() and da.where() 1674532233 | |
1514362199 | https://github.com/pydata/xarray/issues/7765#issuecomment-1514362199 | https://api.github.com/repos/pydata/xarray/issues/7765 | IC_kwDOAMm_X85aQ1VX | MuellerSeb 19690642 | 2023-04-19T08:47:08Z | 2023-04-19T08:47:08Z | NONE | Pandas seems to also look at the policies of its dependencies like Numpy: https://numpy.org/neps/nep-0029-deprecation_policy.html#support-table |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Revisiting Xarray's Minimum dependency versions policy 1673579421 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);