add xarray to pyproject.toml
the current version needs xarray to work, so it needs to be pip-installed when importing the package anyway. Thus, I would suggest to add it to the pyproject.toml directly. Not sure which xarray version is best.
issue