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

Incorrect time-slices after inserting into data cube (zarr) with packed variables #317

Closed
AliceBalfanz opened this issue Jun 23, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AliceBalfanz
Copy link
Contributor

Describe the bug
When an input slice is inserted into a data cube in zarr format which has defined a packing of variables, these input slices are incorrect in the data cube.

This problem is visualized in the viewer.cyanoalert.com where an input slice which has been inserted looks like this:
image
and if the same input slice has been added to a cube by appending it to the cube:
image

To Reproduce
Steps to reproduce the behavior:

  1. Select a few input datasets
  2. Create a data cube with defined packing, where xcube presorts the input slices
  3. Create a data cube with defined packing and ensure, that xcube gets a wrong order of input slices and forcing it to insert.
  4. Compare diff of both data cubes

Expected behavior
There should be no difference between the two cubes, xcube should be able to handle inserting of input slices with defined packing.

@AliceBalfanz AliceBalfanz self-assigned this Jun 23, 2020
AliceBalfanz added a commit that referenced this issue Jun 24, 2020
…fined. Addressing issue #317. Added test for replacing time slices when packing of variables is defined.
AliceBalfanz added a commit that referenced this issue Jun 24, 2020
…lice

xcube gen insert packed input slice issue #317
@forman forman added the bug Something isn't working label Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants