-
Notifications
You must be signed in to change notification settings - Fork 46
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
Cannot open coordinate variables from Intake-ESM datastores #660
Comments
👋🏽 @dougiesquire, the primary reason why we are using So, I'm in favor of trying to relax this requirement to see what happens. another option would be to introduce a configurable setting that allows users to turn on the use of |
Hello and thanks @andersy005! I could well be misunderstanding, but I think using If you agree, I advocate that we don’t add the additional complexity of making this change configurable. |
@dougiesquire - checking back in here, are you interested in making a pull request with the fix you mentioned? |
Description
I'd like to include coordinate variables in my Intake-ESM datastore so that they can be searched for and opened like any other variable. However, Intake-ESM currently only allows opening the xarray
data_vars
from an asset. If I try to open a coordinate variable from my datastore I am returned an empty xarray Dataset.The obvious fix is to edit the line in the link above to include any
variable in ds
, but there may be a reason I don't understand for why things are done how they are currently.What I Did
To reproduce requires a multi-variable catalog that includes a coordinate variable in the lists of variables. E.g. one can edit the first row of
tests/sample-catalogs/multi-variable-catalog.csv
to include"TLAT"
in the list of variables. Then:returns a Dataset that does not contain
"TLAT"
Version information: output of
intake_esm.show_versions()
INSTALLED VERSIONS
cftime: 1.6.3
dask: 2024.2.1
fastprogress: 1.0.3
fsspec: 2024.2.0
gcsfs: 2024.2.0
intake: 0.7.0
intake_esm: 2023.6.14.post31+g141425b
netCDF4: 1.6.5
pandas: 2.2.1
requests: 2.31.0
s3fs: 2024.2.0
xarray: 2024.2.0
zarr: 2.17.0
The text was updated successfully, but these errors were encountered: