Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/e/o/eofs-HEAD/examples/standard/sst_example.py   eofs(Download)
import numpy as np
 
from eofs.standard import Eof
from eofs.examples import example_data_path
 
coslat = np.cos(np.deg2rad(lats))
wgts = np.sqrt(coslat)[..., np.newaxis]
solver = Eof(sst, weights=wgts)
 
# Retrieve the leading EOF, expressed as the correlation between the leading

src/e/o/eofs-HEAD/examples/standard/hgt_example.py   eofs(Download)
import numpy as np
 
from eofs.standard import Eof
from eofs.examples import example_data_path
 
coslat = np.cos(np.deg2rad(lats)).clip(0., 1.)
wgts = np.sqrt(coslat)[..., np.newaxis]
solver = Eof(z_djf, weights=wgts)
 
# Retrieve the leading EOF, expressed as the covariance between the leading PC

src/e/o/eofs-HEAD/lib/eofs/multivariate/standard.py   eofs(Download)
        self._slicers = info['slicers']
        weight_option = self._merge_weights(datasets, weights)
        self._solver = standard.Eof(data,
                                    weights=weight_option,
                                    center=center,