How to use the pyshtools.shtools.SHExpandDH 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
if copy_:
            self.spatial = input_.copy()
        else:
            self.spatial = input_

        if not isinstance(self.spatial, EnvironmentMap):
            self.spatial = EnvironmentMap(self.spatial, 'LatLong')

        if self.spatial.format_ != "latlong":
            self.spatial = self.spatial.convertTo("latlong")

        self.norm = norm

        self.coeffs = []
        for i in range(self.spatial.data.shape[2]):
            self.coeffs.append(SHExpandDH(self.spatial.data[:,:,i], norm=norm, sampling=2, lmax_calc=max_l))

pyshtools

SHTOOLS - Spherical Harmonic Tools

BSD-3-Clause
Latest version published 5 months ago

Package Health Score

72 / 100
Full package analysis

Similar packages