-
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]: Additional dimension for lat_bnds and lon_bnds #390
Comments
When I look at the what I think is the original version of this dataset, I get the following:
See #162 for more on this. I think this error arises when the |
Here is the output from ncdump -h:
I concatenated all the piControl simulation with the following code:
I forgot why I didn't do
|
@ShihengDuan – I realize that when I go back to the original issue on this ticket, if I use xarray instead of xcdat when opening the dataset (or the original data), I think I have the same issue ( Do you agree? |
Oh yes, I didn't realize that. I guess it is related to how the original data file is formatted? |
Based on the error below, I believe this is an issue with the underlying data rather than with xarray.
Here is info from the FAQs that covers this specific issue and a workaround with xarray:
The xcdat/xarray workaround is to configure
|
Thanks for the information. This makes sense to me. |
What happened?
When I load data with xcdat, sometimes it generates additional dimensions for lat_bnds and lon_bnds. An example code is here:
It generates the following output:
For lon_bnds, an additional latitude dimension is generated.
The situation changes for different files. Sometimes I got
(time, lon, bnds)
for lon_bnds.The version of xCDAT is 0.4.0.
What did you expect to happen?
Keep only latitude/longitude and bnds dimensions for bnds variables.
Minimal Complete Verifiable Example
No response
Relevant log output
No response
Anything else we need to know?
No response
Environment
xCDAT is 0.4.0.
xr.show_versions() yields the following
The text was updated successfully, but these errors were encountered: