Describe the bug
A xarray data set with a variable in int16 cannot be visualized in xcube Viewer. The error from xcube Server is: "TypeError: Object of type int16 is not JSON serializable"
The same dataset loaded as float64 can be visualized via xcube Viewer.
To Reproduce
Steps to reproduce the behavior:
- Create a dataset with a variable in int16
- Serve with xcube Server and visualize with xcube Viewer
- See error
Expected behavior
I expect int16 to be a valid value encoding and to be served and visualized without problems.
Additional context
xcube Viewer version 1.7.1
xcube Server version 1.13.1
Describe the bug
A xarray data set with a variable in int16 cannot be visualized in xcube Viewer. The error from xcube Server is: "TypeError: Object of type int16 is not JSON serializable"
The same dataset loaded as float64 can be visualized via xcube Viewer.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect int16 to be a valid value encoding and to be served and visualized without problems.
Additional context
xcube Viewer version 1.7.1
xcube Server version 1.13.1