These are chat archives for SHTOOLS/SHTOOLS
I'm back. @MMesch, could you let me know what the logic is of doing this? Its not clear why you only set off non-masked coefficients equal to zero if copy is true.
if copy: + self.coeffs = _np.copy(coeffs) + self.coeffs[~mask] = 0. + else: + self.coeffs = coeffs +
I would naively just delete this
self.coeffs[~mask] = 0.