Beispiel #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)
Beispiel #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)
Beispiel #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}
Beispiel #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)
Beispiel #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)
Beispiel #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
     }