foscat 3.3.3__py3-none-any.whl → 3.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- foscat/alm.py +8 -5
- {foscat-3.3.3.dist-info → foscat-3.3.4.dist-info}/METADATA +1 -1
- {foscat-3.3.3.dist-info → foscat-3.3.4.dist-info}/RECORD +6 -6
- {foscat-3.3.3.dist-info → foscat-3.3.4.dist-info}/LICENCE +0 -0
- {foscat-3.3.3.dist-info → foscat-3.3.4.dist-info}/WHEEL +0 -0
- {foscat-3.3.3.dist-info → foscat-3.3.4.dist-info}/top_level.txt +0 -0
foscat/alm.py
CHANGED
|
@@ -3,10 +3,13 @@ import numpy as np
|
|
|
3
3
|
|
|
4
4
|
class alm():
|
|
5
5
|
|
|
6
|
-
def __init__(self,backend=None,lmax=24,limit_range=1E7):
|
|
6
|
+
def __init__(self,backend=None,lmax=24,nside=None,limit_range=1E7):
|
|
7
7
|
self._logtab={}
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if nside is not None:
|
|
9
|
+
self.lmax=3*nside
|
|
10
|
+
else:
|
|
11
|
+
self.lmax=lmax
|
|
12
|
+
for k in range(1,2*self.lmax+1):
|
|
10
13
|
self._logtab[k]=np.log(k)
|
|
11
14
|
self._limit_range=1/limit_range
|
|
12
15
|
self._log_limit_range=np.log(limit_range)
|
|
@@ -52,7 +55,7 @@ class alm():
|
|
|
52
55
|
ratio[0,0]= self.double_factorial_log(2*m - 1)-0.5*np.sum(self.log(1+np.arange(2*m)))
|
|
53
56
|
|
|
54
57
|
if m == lmax:
|
|
55
|
-
return result*np.exp(ratio)*np.sqrt((2*(np.arange(lmax-m+1)
|
|
58
|
+
return result*np.exp(ratio)*np.sqrt(4*np.pi*(2*(np.arange(lmax-m+1)+m)+1)).reshape(lmax+1-m,1)
|
|
56
59
|
|
|
57
60
|
# Étape 2 : Calcul de P_{l+1, m}(x)
|
|
58
61
|
result[1] = x * (2*m + 1) * result[0]
|
|
@@ -68,7 +71,7 @@ class alm():
|
|
|
68
71
|
result[l-m]*=self._limit_range
|
|
69
72
|
ratio[l-m-1,0]+=self._log_limit_range
|
|
70
73
|
ratio[l-m,0]+=self._log_limit_range
|
|
71
|
-
|
|
74
|
+
|
|
72
75
|
return result*np.exp(ratio)*(np.sqrt(4*np.pi*(2*(np.arange(lmax-m+1)+m)+1))).reshape(lmax+1-m,1)
|
|
73
76
|
|
|
74
77
|
def comp_tf(self,im,ph):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foscat
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.4
|
|
4
4
|
Summary: Generate synthetic Healpix or 2D data using Cross Scattering Transform
|
|
5
5
|
Author-email: Jean-Marc DELOUIS <jean.marc.delouis@ifremer.fr>
|
|
6
6
|
Maintainer-email: Theo Foulquier <theo.foulquier@ifremer.fr>
|
|
@@ -6,7 +6,7 @@ foscat/Softmax.py,sha256=aBLQauoG0q2SJYPotV6U-cxAhsJcspWHNRWdnA_nAiQ,2854
|
|
|
6
6
|
foscat/Spline1D.py,sha256=a5Jb8I9tb8y20iM8W-z6iZsIqDFByRp6eZdChpmuI5k,3010
|
|
7
7
|
foscat/Synthesis.py,sha256=3_Lq5-gUM-WmO2h15kajMES8XjRo2BGseoxvTLW_xEc,13626
|
|
8
8
|
foscat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
foscat/alm.py,sha256=
|
|
9
|
+
foscat/alm.py,sha256=L29DxMFuKUPk3LO9wVErhDKDqyWUxk5OndyxFHphgps,5597
|
|
10
10
|
foscat/backend.py,sha256=TZnOyPYjqbHjOTkH2Zk0zN5DQf2-WNHlaxenuPo_wO0,38822
|
|
11
11
|
foscat/backend_tens.py,sha256=9Dp136m9frkclkwifJQLLbIpl3ETI3_txdPUZcKfuMw,1618
|
|
12
12
|
foscat/loss_backend_tens.py,sha256=dCOVN6faDtIpN3VO78HTmYP2i5fnFAf-Ddy5qVBlGrM,1783
|
|
@@ -19,8 +19,8 @@ foscat/scat_cov1D.py,sha256=XOxsZZ5TYq8f34i2tUgIfzyaqaTDlICB3HzD2l_puro,531
|
|
|
19
19
|
foscat/scat_cov2D.py,sha256=3gn6xjKvfKsyHJoPfYIu8q9LLVAbU3tsiS2l1LAJ0XM,531
|
|
20
20
|
foscat/scat_cov_map.py,sha256=0wTRo4Nc7rYfI09RI2mh2bYixoukt5lrvAXR6wa9kjA,2744
|
|
21
21
|
foscat/scat_cov_map2D.py,sha256=FqF45FBcoiQbvuVsrLWUIPRUc95GsKsrnH6fKzB3GlE,2841
|
|
22
|
-
foscat-3.3.
|
|
23
|
-
foscat-3.3.
|
|
24
|
-
foscat-3.3.
|
|
25
|
-
foscat-3.3.
|
|
26
|
-
foscat-3.3.
|
|
22
|
+
foscat-3.3.4.dist-info/LICENCE,sha256=i0ukIr8ZUpkSY2sZaE9XZK-6vuSU5iG6IgX_3pjatP8,1505
|
|
23
|
+
foscat-3.3.4.dist-info/METADATA,sha256=yaXfM1oeDDodXs_qfv1UlHx_Fmd4oeMFk-L3noimUmo,7191
|
|
24
|
+
foscat-3.3.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
25
|
+
foscat-3.3.4.dist-info/top_level.txt,sha256=AGySXBBAlJgb8Tj8af6m_F-aiNg2zNTcybCUPVOKjAg,7
|
|
26
|
+
foscat-3.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|