Ejemplo n.º 1
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # standard numpy array interface.
     cls.sf, cls.eofs, cls.pcs = reference_solution('numpy')
     cls.neofs = cls.eofs.shape[0]
     # Create an EofSolver instance with the scalar field.
     cls.eofobj = EofSolver(cls.sf)
Ejemplo n.º 2
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # standard numpy array interface.
     cls.sf, cls.eofs, cls.pcs = reference_solution('numpy')
     cls.neofs = cls.eofs.shape[0]
     # Create an EofSolver instance with the scalar field.
     cls.eofobj = EofSolver(cls.sf)
Ejemplo n.º 3
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # standard numpy array interface.
     cls.sf, cls.eofs, cls.pcs = reference_solution('numpy')
     # Create an EofSolver instance with the scalar field.
     cls.eofobj = EofSolver(cls.sf)
     cls.tools = {'covmap': eof2.nptools.covariance_map,
             'cormap': eof2.nptools.correlation_map}
Ejemplo n.º 4
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # cdms2 interface.
     try:
         cls.sf, cls.eofs, cls.pcs = reference_solution('cdms2')
     except ValueError:
         raise SkipTest('library component not available')
     # Create an Eof instance with the scalar field.
     cls.eofobj = Eof(cls.sf)
Ejemplo n.º 5
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # cdms2 interface.
     try:
         cls.sf, cls.eofs, cls.pcs = reference_solution('cdms2')
     except ValueError:
         raise SkipTest('library component not available')
     # Create an Eof instance with the scalar field.
     cls.eofobj = Eof(cls.sf)
Ejemplo n.º 6
0
 def setup_class(cls):
     # Generate a scalar field and a corresponding EOF solution for the
     # standard numpy array interface.
     cls.sf, cls.eofs, cls.pcs = reference_solution('numpy')
     # Create an EofSolver instance with the scalar field.
     cls.eofobj = EofSolver(cls.sf)
     cls.tools = {
         'covmap': eof2.nptools.covariance_map,
         'cormap': eof2.nptools.correlation_map
     }