issues
1 row where user = 46776466 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date), closed_at (date)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1550569947 | I_kwDOAMm_X85ca9Hb | 7462 | xarray add coordinates to mapping variables | yrobink 46776466 | closed | 0 | 2 | 2023-01-20T09:47:39Z | 2023-01-24T07:13:45Z | 2023-01-24T07:13:45Z | NONE | What happened?When a netcdf file containing a mapping variable and a height coordinates is opened, the height coordinates is added to the mapping variable. The minimal example generates a netcdf similar to CMIP6 data remapped on a curvilinear grid (for this example in fact it is also a lat / lon grid), where the curvilinear coordinates x / y are connected to lat / lon and tas with the PlateCarree variable. The PlateCarree variable doesn't contains any coordinates when the netcdf is created, and it is also the case when the netcdf is read with netCDF4. But when it is read with xr.open_dataset, the height coordinates is added to the PlateCarree variable. What did you expect to happen?Variables without coordinates should not have any after reading with xarray Minimal Complete Verifiable Example```Python import sys,os import numpy as np import pandas as pd import xarray as xr import netCDF4 Functionsdef build_data(): ## Start by build the coordinates x = np.arange( -5 , 10 + 0.1 , 1 ) y = np.arange( 41 , 52 + 0.1 , 1 ) lon,lat = np.meshgrid(x,y) time = pd.date_range( "2000-01-01" , "2005-12-31" ).values
mainif name == "main":
``` MVCE confirmation
Relevant log outputNo response Anything else we need to know?No response Environment
INSTALLED VERSIONS
------------------
commit: None
python: 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:24:38)
[Clang 12.0.1 ]
python-bits: 64
OS: Darwin
OS-release: 22.2.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: fr_FR.UTF-8
LOCALE: ('fr_FR', 'UTF-8')
libhdf5: 1.12.1
libnetcdf: 4.8.1
xarray: 2022.9.0
pandas: 1.4.2
numpy: 1.23.2
scipy: 1.8.1
netCDF4: 1.5.8
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: 2.11.3
cftime: 1.6.0
nc_time_axis: 1.4.1
PseudoNetCDF: None
rasterio: None
cfgrib: 0.9.10.1
iris: None
bottleneck: 1.3.5
dask: 2022.11.0
distributed: 2022.11.0
matplotlib: 3.5.2
cartopy: 0.20.2
seaborn: 0.11.2
numbagg: None
fsspec: 2022.5.0
cupy: None
pint: 0.19.2
sparse: None
flox: None
numpy_groupies: None
setuptools: 62.3.2
pip: 22.1.1
conda: None
pytest: None
IPython: 7.31.1
sphinx: 4.5.0
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/7462/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] (
[id] INTEGER PRIMARY KEY,
[node_id] TEXT,
[number] INTEGER,
[title] TEXT,
[user] INTEGER REFERENCES [users]([id]),
[state] TEXT,
[locked] INTEGER,
[assignee] INTEGER REFERENCES [users]([id]),
[milestone] INTEGER REFERENCES [milestones]([id]),
[comments] INTEGER,
[created_at] TEXT,
[updated_at] TEXT,
[closed_at] TEXT,
[author_association] TEXT,
[active_lock_reason] TEXT,
[draft] INTEGER,
[pull_request] TEXT,
[body] TEXT,
[reactions] TEXT,
[performed_via_github_app] TEXT,
[state_reason] TEXT,
[repo] INTEGER REFERENCES [repos]([id]),
[type] TEXT
);
CREATE INDEX [idx_issues_repo]
ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
ON [issues] ([user]);