Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))