issues: 548029687
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 548029687 | MDU6SXNzdWU1NDgwMjk2ODc= | 3681 | concat result not correct for particular dataset | 7933853 | closed | 0 | 7 | 2020-01-10T11:34:06Z | 2020-03-13T13:25:13Z | 2020-03-13T13:25:13Z | NONE | MCVE Code Sampledata here: https://www.dropbox.com/sh/8eist9mmlf41mpc/AAB8yp6ERz-b4VYozL8tsj-ma?dl=0 ``` import xarray as xr import numpy as np print(xr.version) # ds1 = xr.open_dataset('tas_Amon_NorESM1-ME_rcp26_r1i1p1_200601-206012.nc') ds2 = xr.open_dataset('tas_Amon_NorESM1-ME_rcp26_r1i1p1_206101-210112.nc') print(np.allclose(ds1.lat , ds2.lat), np.allclose(ds1.lat_bnds , ds2.lat_bnds)) # True, True ds3 = xr.concat((ds1,ds2), dim='time') print(ds3.lat.shape == ds1.lat.shape) # False ``` Expected Output
since ds3.lat should be identical to ds1.lat Problem DescriptionI've encountered a particular NetCDF dataset which is not handled correctly by the Xarray As a workaround, I've tried to reindex the result ( but that yields an incomplete field after the year 2061. This can be seen by issuing:
Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3681/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |