JIWON
JIWON
> hi @jiwon-j, SOM is a multivariate model and you can build your input as a matrix where each row corresponds to a year and contains values from all the...
File ~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:312, in CCA._fit_algorithm(self, views) [309](https://vscode-remote+ssh-002dremote-002bweather1-002egist-002eac-002ekr.vscode-resource.vscode-cdn.net/home/etuomem/PhD/~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:309) [assert_not_complex(view) for view in views] [311](https://vscode-remote+ssh-002dremote-002bweather1-002egist-002eac-002ekr.vscode-resource.vscode-cdn.net/home/etuomem/PhD/~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:311) self.c = _process_parameter("c", self.c, 0, self.n_views_) --> [312](https://vscode-remote+ssh-002dremote-002bweather1-002egist-002eac-002ekr.vscode-resource.vscode-cdn.net/home/etuomem/PhD/~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:312) eigvals, eigvecs = self._solve_gevp(views) [313](https://vscode-remote+ssh-002dremote-002bweather1-002egist-002eac-002ekr.vscode-resource.vscode-cdn.net/home/etuomem/PhD/~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:313) self.eigvals = eigvals [314](https://vscode-remote+ssh-002dremote-002bweather1-002egist-002eac-002ekr.vscode-resource.vscode-cdn.net/home/etuomem/PhD/~/miniconda3/lib/python3.10/site-packages/xeofs/models/cca.py:314) self.eigvecs...
``` data_list = [precip_xr, SST_xr] model = xeofs.models.CCA( n_modes=2, use_coslat=True, pca=True, variance_fraction=0.9, init_pca_modes=0.30, ) model.fit(data_list, dim="time") components = model.components() scores = model.scores() ``` two datas have same time steps. I...
thank you for your caring 1. about dataset GPCP precipitation dataset have resolution of 2.5 x 2.5. In the domain I defined, the data has a total of 784 grids,...
it was 20 same for both
1. GPCP precipitation ``` model = xeofs.models.EOF(n_modes=20, standardize=False, use_coslat=True,) model.fit(precip_P1_xr, dim='time') model.explained_variance_ratio() array([2.15341437e-01, 1.91357740e-01, 1.07027890e-01, 6.50667319e-02, 6.04127807e-02, 5.37885277e-02, 4.60878220e-02, 3.65153038e-02, 3.32812623e-02, 2.91941211e-02, 2.61814632e-02, 2.43078690e-02, 2.32423052e-02, 1.88798822e-02, 1.86685204e-02, 1.50839098e-02, 1.30147616e-02, 1.25216876e-02,...
That's okay, thanks for your help in the meantime. I'll try a few more things and update if the issue is resolved.