Skip to content
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

xcube serve failing to open cubes (sometimes silently) #890

Open
mdespriee opened this issue Sep 4, 2023 · 1 comment
Open

xcube serve failing to open cubes (sometimes silently) #890

mdespriee opened this issue Sep 4, 2023 · 1 comment

Comments

@mdespriee
Copy link

Describe the bug

I'm evaluating xcube for a range of use-cases, like displaying a cube built from a sequence of geotiffs, or displaying an ECMWF model output like this one.

So far, my main struggle is when xcube serve refuses to load a cube (considered valid by xcube verify) and most of the time, the problem is silent (despite -vvv).

I manage to identify one cause, around type of dimension attributes:

  • in the ECMWF data mentioned above, some attributes are int64. This causes this exception: TypeError: Object of type int64 is not JSON serializable.
  • In another situation, I had the attribute valid_range being converted to a np.array by the to_netcdf() operation. This caused this line to fail.

Besides these 2 causes, I would strongly suggest to make the cube loading much more verbose, so we can pinpoint issues.

Additional context

xcube version 1.2.0

@AliceBalfanz
Copy link
Contributor

@mdespriee thank you for reporting! Would you like to start wroking on this issue yourself and create a PR? Looks like you have been looking closer into the code while debugging already :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants