コード例 #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)
コード例 #2
0
ファイル: test_solution.py プロジェクト: ajdawson/eof2
 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)
コード例 #3
0
ファイル: test_tools.py プロジェクト: ajdawson/eof2
 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}
コード例 #4
0
ファイル: test_tools.py プロジェクト: 1895-art/eof2
 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)
コード例 #5
0
ファイル: test_tools.py プロジェクト: ajdawson/eof2
 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)
コード例 #6
0
ファイル: test_tools.py プロジェクト: 1895-art/eof2
 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
     }