home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 875696070

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
875696070 MDU6SXNzdWU4NzU2OTYwNzA= 5257 Inconsistencies between 0.17.0 and 0.17.1.dev102+gf455e00f 8453445 closed 0     3 2021-05-04T17:52:08Z 2021-05-04T20:02:00Z 2021-05-04T20:02:00Z CONTRIBUTOR      

Download file: !wget https://noaa-gefs-retrospective.s3.amazonaws.com/GEFSv12/reforecast/2000/2000012900/c00/Days%3A1-10/acpcp_sfc_2000012900_c00.grib2

I work on https://staging.us-central1-b.gcp.pangeo.io/

xarray: 0.17.0 cfgrib: 0.9.9.0

and when I try:

ds = xr.open_dataset("acpcp_sfc_2000012900_c00.grib2", engine="cfgrib", backend_kwargs={"extra_coords": {"stepRange": "step"}})

it works. The keyword argument 'extra_coords' it's new to cfgrib 0.9.9.0

After installing the latest xarray version from master (when I do !pip install git+https://github.com/pangeo-forge/pangeo-forge.git) the version becomes xarray '0.17.1.dev102+gf455e00f' cfgrib remains the same

when I attempt the same loading: ds = xr.open_dataset("acpcp_sfc_2000012900_c00.grib2", engine="cfgrib", backend_kwargs={"extra_coords": {"stepRange": "step"}})

I get ```python


TypeError Traceback (most recent call last) <ipython-input-5-6673e5f2812b> in <module> ----> 1 ds = xr.open_dataset("acpcp_sfc_2000012900_c00.grib2", engine="cfgrib", backend_kwargs={"extra_coords": {"stepRange": "step"}})

/srv/conda/envs/notebook/lib/python3.8/site-packages/xarray/backends/api.py in open_dataset(filename_or_obj, engine, chunks, cache, decode_cf, mask_and_scale, decode_times, decode_timedelta, use_cftime, concat_characters, decode_coords, drop_variables, backend_kwargs, args, *kwargs) 499 500 overwrite_encoded_chunks = kwargs.pop("overwrite_encoded_chunks", None) --> 501 backend_ds = backend.open_dataset( 502 filename_or_obj, 503 drop_variables=drop_variables,

TypeError: open_dataset() got an unexpected keyword argument 'extra_coords' ```

What you expected to happen:

I expect '0.17.1.dev102+gf455e00f' to work as '0.17.0'

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5257/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.761ms · About: xarray-datasette