home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 363299007 and user = 20254164 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • mickaellalande · 1 ✖

issue 1

  • save "encoding" when using open_mfdataset · 1 ✖

author_association 1

  • CONTRIBUTOR 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
661721510 https://github.com/pydata/xarray/issues/2436#issuecomment-661721510 https://api.github.com/repos/pydata/xarray/issues/2436 MDEyOklzc3VlQ29tbWVudDY2MTcyMTUxMA== mickaellalande 20254164 2020-07-21T08:43:04Z 2020-07-21T08:43:04Z CONTRIBUTOR

Description

Any news about this issue? I am facing the same problem and I had to get the calendars by hand... I tried to update xarray but there is still the same issue of missing the ds.time.encoding with open_mfdataset when the dimension to concatenate is the time (because the example from @keewis above works but the concatenation is on x).

Step to reproduce

Here is a simple example to illustrate:

python import xarray as xr ds = xr.tutorial.open_dataset('air_temperature') ds.time.encoding

that gives: python {'source': '/home/lalandmi/.xarray_tutorial_data/air_temperature.nc', 'original_shape': (2920,), 'dtype': dtype('float32'), 'units': 'hours since 1800-01-01', 'calendar': 'standard'}

Let's slipt this dataset and try to read it back with open_mfdataset: python ds.sel(time='2013').to_netcdf('tutorial_air_temperature_2013.nc') ds.sel(time='2014').to_netcdf('tutorial_air_temperature_2014.nc') ds_mf = xr.open_mfdataset('tutorial_air_temperature_*.nc', combine='by_coords') ds_mf.time.encoding that results in an empty dictionary: python {}

Adding some arguments attrs_file=paths[0] with the name of the files didn't change anything for me. Is there any other way or update about this?

Xarray version

xr.show_versions() ```python INSTALLED VERSIONS ------------------ commit: None python: 3.8.4 | packaged by conda-forge | (default, Jul 17 2020, 15:16:46) [GCC 7.5.0] python-bits: 64 OS: Linux OS-release: 4.19.0-9-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: fr_FR.UTF-8 libhdf5: 1.10.6 libnetcdf: 4.7.4 xarray: 0.16.0 pandas: 1.0.5 numpy: 1.19.0 scipy: None netCDF4: 1.5.3 pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: 1.2.1 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2.21.0 distributed: 2.21.0 matplotlib: None cartopy: None seaborn: None numbagg: None pint: None setuptools: 49.2.0.post20200712 pip: 20.1.1 conda: None pytest: None IPython: 7.16.1 sphinx: None ```
{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  save "encoding" when using open_mfdataset 363299007

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 32.406ms · About: xarray-datasette