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

Feature Request: MultivariateEof for xarray objects #78

Open
jhamman opened this issue Aug 28, 2016 · 7 comments
Open

Feature Request: MultivariateEof for xarray objects #78

jhamman opened this issue Aug 28, 2016 · 7 comments

Comments

@jhamman
Copy link

jhamman commented Aug 28, 2016

Is there a reason MultivariateEof has not been implemented yet for xarray objects? If not, I'd be happy to contribute the feature if you can give some pointers on how best that would be done.

@ajdawson
Copy link
Owner

No reason other than I didn't need it. Feel free to have a go at this. I'd suggest following along the lines of the existing multivariate interfaces, and taking guidance on specifics from the currently implemented xarray interface.

@dchug2
Copy link

dchug2 commented Jun 11, 2020

Hi! Any updates on this?
Thanks a lot for this package, I'll be sure to cite your work.

@matteodefelice
Copy link

@ajdawson
Copy link
Owner

No update from me. I still don't have a need for this so I haven't implemented it, and no one else has contributed it, so I'm afraid it is not available.

@dchug2
Copy link

dchug2 commented Jun 11, 2020

Got it! Thanks anyway. For now, I am just extract my variables from xarray dataset, then using the standard multivariate interface and converting results back to xarray.
I haven't developed or contributed to packages before, but I will try my best to start with this one.

@nicrie
Copy link

nicrie commented Mar 12, 2022

I'm trying to bring together some of the currently existing EOF packages on github. I just released a new version of xeofs which provides support for Multivariate EOF analysis in numpy, pandas and xarray. Perhaps it's helpful.

@davidhgotler
Copy link

Since xarray package only works with DataArrays I suggest using to_stacked_array() and then doing EOF analysis on the stacked array. This is mathematically the same as multivariate eof analysis but you will have to do some reformatting to unstack/go back to a dataset. If someone does eventually implement multivariate for xarray I suggest adding functionality for Dataset type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants