neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
96 stars 8 forks source link

Consider adding metadata to our xarray datasets/data arrays #148

Open sfmig opened 6 months ago

sfmig commented 6 months ago

From https://docs.xarray.dev/en/latest/user-guide/plotting.html#simple-example:

Xarray uses the coordinate name along with metadata attrs.long_name, attrs.standard_name, DataArray.name and attrs.units (if available) to label the axes.

We could add this metadata automatically upon loading to have more specific names for the axes when plotting.