foscat 2026.1.1__py3-none-any.whl → 2026.2.1__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/FoCUS.py CHANGED
@@ -9,7 +9,7 @@ from foscat.SphereDownGeo import SphereDownGeo
9
9
  from foscat.SphereUpGeo import SphereUpGeo
10
10
  import torch
11
11
 
12
- TMPFILE_VERSION = "V12_0"
12
+ TMPFILE_VERSION = "V13_0"
13
13
 
14
14
 
15
15
  class FoCUS:
@@ -39,7 +39,7 @@ class FoCUS:
39
39
  mpi_rank=0
40
40
  ):
41
41
 
42
- self.__version__ = "2026.01.1"
42
+ self.__version__ = "2026.02.1"
43
43
  # P00 coeff for normalization for scat_cov
44
44
  self.TMPFILE_VERSION = TMPFILE_VERSION
45
45
  self.P1_dic = None
@@ -1579,11 +1579,20 @@ class FoCUS:
1579
1579
 
1580
1580
  xx=np.tile(np.arange(self.KERNELSZ)-self.KERNELSZ//2,self.KERNELSZ).reshape(self.KERNELSZ,self.KERNELSZ)
1581
1581
 
1582
- wwr=(np.exp(-pw2*(xx**2+(xx.T)**2))*np.cos(pw*xx*np.pi)).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1583
- wwr-=wwr.mean()
1584
- wwi=(np.exp(-pw2*(xx**2+(xx.T)**2))*np.sin(pw*xx*np.pi)).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1585
- wwi-=wwi.mean()
1586
- amp=np.sum(abs(wwr+1J*wwi))
1582
+ if nside>2:
1583
+ wwr=(np.exp(-pw2*(xx**2+(xx.T)**2))*np.cos(pw*xx*np.pi)).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1584
+ wwr-=wwr.mean()
1585
+ wwi=(np.exp(-pw2*(xx**2+(xx.T)**2))*np.sin(pw*xx*np.pi)).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1586
+ wwi-=wwi.mean()
1587
+ amp=np.sum(abs(wwr+1J*wwi))
1588
+ else:
1589
+ #asymetric kernels
1590
+ wwr=(np.exp(-2*pw2*(xx**2+self.NORIENT*(xx.T)**2))).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1591
+ #wwr-=wwr.mean()
1592
+ #wwi=(np.exp(-pw2*(xx**2+(xx.T)**2))*np.sin(pw*xx*np.pi)).reshape(1,1,self.KERNELSZ*self.KERNELSZ)
1593
+ #wwi-=wwi.mean()
1594
+ wwi=0.0*wwr
1595
+ amp=self.NORIENT*np.sum(abs(wwr+1J*wwi))
1587
1596
 
1588
1597
  wwr/=amp
1589
1598
  wwi/=amp
foscat/SphereDownGeo.py CHANGED
@@ -259,7 +259,7 @@ class SphereDownGeo(nn.Module):
259
259
  # angular distance via dot product
260
260
  dots = np.clip(np.dot(vec, vec0), -1.0, 1.0)
261
261
  ang = np.arccos(dots)
262
- w = np.exp(- 2*(ang / sigma_rad) ** 2)
262
+ w = np.exp(- 2.0*(ang / sigma_rad) ** 2)
263
263
 
264
264
  w = self._normalize_weights(w)
265
265
 
foscat/scat_cov.py CHANGED
@@ -2701,7 +2701,7 @@ class funct(FOC.FoCUS):
2701
2701
  if nside is None:
2702
2702
  nside = int(np.sqrt(npix // 12))
2703
2703
 
2704
- J = int(np.log(nside) / np.log(2)) # Number of j scales
2704
+ J = int(np.log2(nside)+1) # Number of j scales
2705
2705
  if cell_ids is not None:
2706
2706
  J=np.min([J,int(np.log(cell_ids.shape[0]) / (2*np.log(2)))-1])
2707
2707
 
@@ -2712,7 +2712,7 @@ class funct(FOC.FoCUS):
2712
2712
  if Jmax > J:
2713
2713
  print("==========\n\n")
2714
2714
  print(
2715
- "The Jmax you requested is larger than the data size, which may cause problems while computing the scattering transform."
2715
+ "The Jmax you requested is larger than the data size ", J,", which may cause problems while computing the scattering transform."
2716
2716
  )
2717
2717
  print("\n\n==========")
2718
2718
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foscat
3
- Version: 2026.1.1
3
+ Version: 2026.2.1
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>
@@ -4,14 +4,14 @@ foscat/BkTensorflow.py,sha256=iIdLx6VTOfOEocfZBOGyizQn5geDLTfdWWAwDeQr9YA,20056
4
4
  foscat/BkTorch.py,sha256=9utOTAfS99E7DPN0QfCnn5ULS1WdS4z3-Z0XJMriJY4,53202
5
5
  foscat/CNN.py,sha256=4vky7jqTshL1aYLWsc-hQwf7gDjTVjL7I6HZiAsa6x4,5158
6
6
  foscat/CircSpline.py,sha256=CXi49FxF8ZoeZ17Ua8c1AZXe2B5ICEC9aCXb97atB3s,4028
7
- foscat/FoCUS.py,sha256=QP5qZlZrrfn4FyhnoKRCF2CwusoLGrrouPc-ysfiP3M,109246
7
+ foscat/FoCUS.py,sha256=HxXh9jHGtopt-jtYAz_dx4GH-88tALY6yZ30kkbDIHM,109790
8
8
  foscat/GCNN.py,sha256=q7yWHCMJpP7-m3WvR3OQnp5taeYWaMxIY2hQ6SIb9gs,4487
9
9
  foscat/HOrientedConvol.py,sha256=xMaS-zzoUyXisBCPsHBVpn54tuA9Qv3na-tT86Cwn7U,38744
10
10
  foscat/HealBili.py,sha256=YRPk9PO5G8NdwKeb33xiJs3_pMPAgIv5phCs8GT6LN0,12943
11
11
  foscat/HealSpline.py,sha256=YRotJ1NQuXYFyFiM8fp6qkATIwRJ8lqIVo4vGXpHO-w,7472
12
12
  foscat/Plot.py,sha256=bpohWGsblTBxMrqE_X-iRvuvT-YyHDcgfWB4iYk5l10,49218
13
13
  foscat/Softmax.py,sha256=UDZGrTroYtmGEyokGUVpwNO_cgbICi9QVuRr8Yx52_k,2917
14
- foscat/SphereDownGeo.py,sha256=KA25940n0Wu8D8t0xCWdkUjHqfsRUnKIDjA-DvpRTnc,15378
14
+ foscat/SphereDownGeo.py,sha256=B_ENfL4Mqn6VmpXEGGxEW8DR3R6zCNV-YVtsU00xwjY,15380
15
15
  foscat/SphereUpGeo.py,sha256=KvvXqVRW7eX79MJsJJS6g5ll84Qyx0bLZzQaDXy4fp4,7023
16
16
  foscat/SphericalStencil.py,sha256=kRyQXwZyoxdRW326e2ht8eGzg1-Lvl89tdHSpVTfJzg,47620
17
17
  foscat/Spline1D.py,sha256=rKzzenduaZZ-yBDJd35it6Gyrj1spqb7hoIaUgISPzY,2983
@@ -33,14 +33,14 @@ foscat/planar_vit.py,sha256=lQqwyz_P8G-Dav2vLqgkssDfeSe15YmjFzP5W-otjs0,6888
33
33
  foscat/scat.py,sha256=emN7MsSuoJzPWQfgDETScZeKLmu8K-jjEh5Dp7szQzY,72809
34
34
  foscat/scat1D.py,sha256=FvvxwhlzxwvIETkenpisvDteJ06DBYP5K7wsnJ2nHjM,53713
35
35
  foscat/scat2D.py,sha256=boKj0ASqMMSy7uQLK6hPniG87m3hZGJBYBiq5v8F9IQ,532
36
- foscat/scat_cov.py,sha256=MQ31UjFqhdc3NBoUhnphyN1HhJZGLnrBf6CIMVEaevU,271772
36
+ foscat/scat_cov.py,sha256=R_-S1RLz6_TUUPGyZO9aenSfRWIzF-Ber5W3-LbdLwU,271770
37
37
  foscat/scat_cov1D.py,sha256=XOxsZZ5TYq8f34i2tUgIfzyaqaTDlICB3HzD2l_puro,531
38
38
  foscat/scat_cov2D.py,sha256=pAm0fKw8wyXram0TFbtw8tGcc8QPKuPXpQk0kh10r4U,7078
39
39
  foscat/scat_cov_map.py,sha256=9MzpwT2g9S3dmnjHEMK7PPLQ27oGQg2VFVsP_TDUU5E,2869
40
40
  foscat/scat_cov_map2D.py,sha256=zaIIYshXCqAeZ04I158GhD-Op4aoMlLnLEy7rxckVYY,2842
41
41
  foscat/unet_2_d_from_healpix_params.py,sha256=r8hN-s091f3yHYlvAAiBbLOvtsz9vPrdwrWPM0ULR2Q,15949
42
- foscat-2026.1.1.dist-info/licenses/LICENSE,sha256=i0ukIr8ZUpkSY2sZaE9XZK-6vuSU5iG6IgX_3pjatP8,1505
43
- foscat-2026.1.1.dist-info/METADATA,sha256=5Wkrz1VwUxbh8Edc6X_84dOTcpOzYl7dFo71fxzyFJk,4489
44
- foscat-2026.1.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
45
- foscat-2026.1.1.dist-info/top_level.txt,sha256=AGySXBBAlJgb8Tj8af6m_F-aiNg2zNTcybCUPVOKjAg,7
46
- foscat-2026.1.1.dist-info/RECORD,,
42
+ foscat-2026.2.1.dist-info/licenses/LICENSE,sha256=i0ukIr8ZUpkSY2sZaE9XZK-6vuSU5iG6IgX_3pjatP8,1505
43
+ foscat-2026.2.1.dist-info/METADATA,sha256=bj4y6lKOf7qwfFrR6KdRt_8GWXh6W3q0fkHKMo6fSD8,4489
44
+ foscat-2026.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
45
+ foscat-2026.2.1.dist-info/top_level.txt,sha256=AGySXBBAlJgb8Tj8af6m_F-aiNg2zNTcybCUPVOKjAg,7
46
+ foscat-2026.2.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5