desc.transform.Transform.fit

Transform.fit(x)[source]

Transform from physical domain to spectral using weighted least squares fit.

Parameters:

x (ndarray, shape(num_nodes,)) – values in real space at coordinates specified by grid

Returns:

c (ndarray, shape(num_coeffs,)) – spectral coefficients in basis