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

Add support for labelled arrays #73

Open
3 tasks done
Tracked by #69
LukeWeidenwalker opened this issue Feb 27, 2023 · 3 comments
Open
3 tasks done
Tracked by #69

Add support for labelled arrays #73

LukeWeidenwalker opened this issue Feb 27, 2023 · 3 comments

Comments

@LukeWeidenwalker
Copy link
Contributor

LukeWeidenwalker commented Feb 27, 2023

  • array_labels
  • array_find_label (optional in core profile)
  • array_create_labeled (optional in core profile)

We'll need to figure out how we can support labelled arrays. It's easy for datacubes, there the labels are just the xr.Dataarray coordinates. But how do we get these down into child processes? E.g. an apply_dimension wrapping array_labels, all that's currently ending up in array_labels is the raw numpy array without the labels.

@clausmichele
Copy link
Member

NotImplementedError: labelled arrays are currently not implemented. Please use index instead.

I encountered this error trying to compute the NDVI passing the bands labels to the array_element process.

Is there some development going on to solve this issue?

@LukeWeidenwalker
Copy link
Contributor Author

No, we're not currently working on this!

@clausmichele
Copy link
Member

Implementation is in this PR #155

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