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