-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: open_dataset error with "Y" axis bounds #215
Comments
In working on #244, I am using observational datasets, which have lots of quirks. I keep hitting this issue. I don't know if this is a bug (presumably these datasets do not have complete metadata), but if a dataset has a dimension called "lat" or "lon" I want xcdat to figure out that this corresponds to the X/Y dimension.
But the dataset does have a longitude axis:
@tomvothecoder - should this be considered a bug or is this behaving properly (and we should have a feature request to infer the X/Y attributes)? |
Hi @pochedls, our current implementation of spatial averaging requires the CF-compliant In your case,
I am exploring a way for |
I'm revisiting the code snippet from this comment, which I thought was addressed in 0.3.0 (here), but I am getting the same error...it is totally possible I am making a mistake somewhere, but |
@pochedls I tested the code snipped from this comment using the latest One possibility is you're executing the code using the dev env ( I'll try to help debug in our upcoming meeting. |
@tomvothecoder is correct and explained that although I was using the new environment installed via conda (xcdat 0.3.0), my In[1]:
|
What happened?
A poorly formed (non-CF compliant) netcdf4 file has had issues with the
xcdat.open_dataset
. The log output below will catch this edge case, seems like it is related to thebounds.py
functionality.As an FYI, this appears to have 2 CF-compliance errors, and a warning:
What did you expect to happen?
The file would be opened with a warning
Minimal Complete Verifiable Example
Relevant log output
Anything else we need to know?
Nope
Environment
INSTALLED VERSIONS
commit: None
python: 3.10.4 | packaged by conda-forge | (main, Mar 24 2022, 17:39:04) [GCC 10.3.0]
python-bits: 64
OS: Linux
OS-release: 3.10.0-1160.42.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.12.1
libnetcdf: 4.8.1
xarray: 2022.3.0
pandas: 1.4.1
numpy: 1.22.3
scipy: None
netCDF4: 1.5.8
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: 1.6.0
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: None
dask: 2022.03.0
distributed: 2022.3.0
matplotlib: installed
cartopy: None
seaborn: None
numbagg: None
fsspec: 2022.02.0
cupy: None
pint: None
sparse: None
setuptools: 61.2.0
pip: 22.0.4
conda: None
pytest: None
IPython: 7.32.0
sphinx: 4.5.0
The text was updated successfully, but these errors were encountered: