How to use the pyshtools.shtools.MakeGridDH function in pyshtools

To help you get started, we’ve selected a few pyshtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github soravux / skylibs / tools3d / spharm.py View on Github external
def reconstruct(self, height=None, max_l=None, clamp_negative=True):
        """
        :height: height of the reconstructed image
        :clamp_negative: Remove reconstructed values under 0
        """

        retval = []
        for i in range(len(self.coeffs)):
            retval.append(MakeGridDH(self.coeffs[i], norm=self.norm, sampling=2, lmax=height, lmax_calc=max_l))

        retval = np.asarray(retval).transpose((1,2,0))

        if clamp_negative:
            retval = np.maximum(retval, 0)

        return retval

pyshtools

SHTOOLS - Spherical Harmonic Tools

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

78 / 100
Full package analysis

Similar packages