These are chat archives for SHTOOLS/SHTOOLS
SHCoeffs. As it is now, the
coeffsare stored as an array attribute with invalid elements set to zero. The class has a corresponding boolean array attribute that tells which elements are valid. Thus, we could remove the
maskattribute, and replace the ndarray
coeffswith a masked array. We would have to ensure that this wouldn't break anything, but I think it should be relatively straightforward to implement. What do you think?