foscat 2025.10.2__tar.gz → 2026.1.1__tar.gz

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.
Files changed (51) hide show
  1. {foscat-2025.10.2/src/foscat.egg-info → foscat-2026.1.1}/PKG-INFO +1 -69
  2. {foscat-2025.10.2 → foscat-2026.1.1}/README.md +0 -68
  3. {foscat-2025.10.2 → foscat-2026.1.1}/pyproject.toml +1 -1
  4. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/BkTorch.py +635 -141
  5. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/FoCUS.py +135 -52
  6. foscat-2026.1.1/src/foscat/SphereDownGeo.py +380 -0
  7. foscat-2026.1.1/src/foscat/SphereUpGeo.py +175 -0
  8. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/SphericalStencil.py +27 -246
  9. foscat-2026.1.1/src/foscat/alm_loc.py +270 -0
  10. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat.py +1 -1
  11. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat1D.py +1 -1
  12. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat_cov.py +24 -24
  13. {foscat-2025.10.2 → foscat-2026.1.1/src/foscat.egg-info}/PKG-INFO +1 -69
  14. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat.egg-info/SOURCES.txt +3 -0
  15. {foscat-2025.10.2 → foscat-2026.1.1}/LICENSE +0 -0
  16. {foscat-2025.10.2 → foscat-2026.1.1}/setup.cfg +0 -0
  17. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/BkBase.py +0 -0
  18. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/BkNumpy.py +0 -0
  19. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/BkTensorflow.py +0 -0
  20. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/CNN.py +0 -0
  21. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/CircSpline.py +0 -0
  22. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/GCNN.py +0 -0
  23. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/HOrientedConvol.py +0 -0
  24. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/HealBili.py +0 -0
  25. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/HealSpline.py +0 -0
  26. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/Plot.py +0 -0
  27. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/Softmax.py +0 -0
  28. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/Spline1D.py +0 -0
  29. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/Synthesis.py +0 -0
  30. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/UNET.py +0 -0
  31. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/__init__.py +0 -0
  32. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/alm.py +0 -0
  33. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/backend.py +0 -0
  34. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/backend_tens.py +0 -0
  35. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/heal_NN.py +0 -0
  36. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/healpix_unet_torch.py +0 -0
  37. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/healpix_vit_skip.py +0 -0
  38. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/healpix_vit_torch-old.py +0 -0
  39. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/healpix_vit_torch.py +0 -0
  40. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/loss_backend_tens.py +0 -0
  41. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/loss_backend_torch.py +0 -0
  42. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/planar_vit.py +0 -0
  43. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat2D.py +0 -0
  44. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat_cov1D.py +0 -0
  45. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat_cov2D.py +0 -0
  46. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat_cov_map.py +0 -0
  47. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/scat_cov_map2D.py +0 -0
  48. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat/unet_2_d_from_healpix_params.py +0 -0
  49. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat.egg-info/dependency_links.txt +0 -0
  50. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat.egg-info/requires.txt +0 -0
  51. {foscat-2025.10.2 → foscat-2026.1.1}/src/foscat.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foscat
3
- Version: 2025.10.2
3
+ Version: 2026.1.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>
@@ -91,74 +91,6 @@ git clone https://github.com/jmdelouis/FOSCAT_DEMO.git
91
91
 
92
92
  ```
93
93
 
94
- # Spherical data example
95
-
96
- ## compute a synthetic image
97
-
98
- ```
99
- python demo.py -n=32 -k -c -s=100
100
- ```
101
-
102
- The _demo.py_ script serves as a demonstration of the capabilities of the foscat library. It utilizes the Cross Wavelet Scattering Transform to generate a Healpix map that possesses the same characteristics as a specified input map.
103
-
104
- - `-n=32` computes map with nside=32.
105
- - `-k` uses 5x5 kernel.
106
- - `-c` uses Scattering Covariance.
107
- - `-l` uses LBFGS minimizer.
108
- - `-s=100` computes 100 steps.
109
-
110
- ```
111
- python demo.py -n=8 [-c|--cov][-s|--steps=3000][-S=1234|--seed=1234][-k|--k5x5][-d|--data][-o|--out][-r|--orient] [-p|--path][-a|--adam]
112
-
113
- ```
114
-
115
- - The "-n" option specifies the nside of the input map. The maximum nside value is 256 with the default map.
116
- - The "--cov" option (optional) uses scat_cov instead of scat.
117
- - The "--steps" option (optional) specifies the number of iterations. If not specified, the default value is 1000.
118
- - The "--seed" option (optional) specifies the seed of the random generator.
119
- - The "--path" option (optional) allows you to define the path where the output files will be written. The default path is "data".
120
- - The "--k5x5" option (optional) uses a 5x5 kernel instead of a 3x3.
121
- - The "--data" option (optional) specifies the input data file to be used. If not specified, the default file "LSS_map_nside128.npy" will be used.
122
- - The "--out" option (optional) specifies the output file name. If not specified, the output file will be saved in "demo".
123
- - The "--orient" option (optional) specifies the number of orientations. If not specified, the default value is 4.
124
- - The "--adam" option (optional) makes the synthesis using the ADAM optimizer instead of the L_BFGS.
125
-
126
- ## plot the result
127
-
128
- The following script generates a series of plots that showcase different aspects of the synthesis process using the _demo.py_ script.
129
-
130
- > python test2D.py
131
-
132
- ```
133
- python plotdemo.py -n=32 -c
134
- ```
135
-
136
- # 2D field demo
137
-
138
- > python test2Dplot.py
139
-
140
- # compute a synthetic turbulent field
141
-
142
- The python scripts _demo2D.py_ included in this package demonstrate how to use the foscat library to generate a 2D synthetic fields that have patterns with the same statistical properties as a specified 2D image. In this particular case, the input field is a sea surface temperature extracted from a north atlantic ocean simulation.
143
-
144
- > python testHealpix.py
145
-
146
- ```
147
- python demo2d.py -n=32 -k -c
148
- ```
149
-
150
- > python testHplot.py
151
-
152
- The following script generates a series of plots that showcase different aspects of the synthesis process using the _demo2D.py_ script.
153
-
154
- ```
155
- python plotdemo2d.py -n=32 -c
156
- ```
157
-
158
- For more information, see the [documentation](https://foscat-documentation.readthedocs.io/en/latest/index.html).
159
-
160
- > mpirun -np 3 testHealpix_mpi.py
161
-
162
94
  ## Authors and acknowledgment
163
95
 
164
96
  Authors: J.-M. Delouis, P. Campeti, T. Foulquier, J. Mangin, L. Mousset, T. Odaka, F. Paul, E. Allys
@@ -62,74 +62,6 @@ git clone https://github.com/jmdelouis/FOSCAT_DEMO.git
62
62
 
63
63
  ```
64
64
 
65
- # Spherical data example
66
-
67
- ## compute a synthetic image
68
-
69
- ```
70
- python demo.py -n=32 -k -c -s=100
71
- ```
72
-
73
- The _demo.py_ script serves as a demonstration of the capabilities of the foscat library. It utilizes the Cross Wavelet Scattering Transform to generate a Healpix map that possesses the same characteristics as a specified input map.
74
-
75
- - `-n=32` computes map with nside=32.
76
- - `-k` uses 5x5 kernel.
77
- - `-c` uses Scattering Covariance.
78
- - `-l` uses LBFGS minimizer.
79
- - `-s=100` computes 100 steps.
80
-
81
- ```
82
- python demo.py -n=8 [-c|--cov][-s|--steps=3000][-S=1234|--seed=1234][-k|--k5x5][-d|--data][-o|--out][-r|--orient] [-p|--path][-a|--adam]
83
-
84
- ```
85
-
86
- - The "-n" option specifies the nside of the input map. The maximum nside value is 256 with the default map.
87
- - The "--cov" option (optional) uses scat_cov instead of scat.
88
- - The "--steps" option (optional) specifies the number of iterations. If not specified, the default value is 1000.
89
- - The "--seed" option (optional) specifies the seed of the random generator.
90
- - The "--path" option (optional) allows you to define the path where the output files will be written. The default path is "data".
91
- - The "--k5x5" option (optional) uses a 5x5 kernel instead of a 3x3.
92
- - The "--data" option (optional) specifies the input data file to be used. If not specified, the default file "LSS_map_nside128.npy" will be used.
93
- - The "--out" option (optional) specifies the output file name. If not specified, the output file will be saved in "demo".
94
- - The "--orient" option (optional) specifies the number of orientations. If not specified, the default value is 4.
95
- - The "--adam" option (optional) makes the synthesis using the ADAM optimizer instead of the L_BFGS.
96
-
97
- ## plot the result
98
-
99
- The following script generates a series of plots that showcase different aspects of the synthesis process using the _demo.py_ script.
100
-
101
- > python test2D.py
102
-
103
- ```
104
- python plotdemo.py -n=32 -c
105
- ```
106
-
107
- # 2D field demo
108
-
109
- > python test2Dplot.py
110
-
111
- # compute a synthetic turbulent field
112
-
113
- The python scripts _demo2D.py_ included in this package demonstrate how to use the foscat library to generate a 2D synthetic fields that have patterns with the same statistical properties as a specified 2D image. In this particular case, the input field is a sea surface temperature extracted from a north atlantic ocean simulation.
114
-
115
- > python testHealpix.py
116
-
117
- ```
118
- python demo2d.py -n=32 -k -c
119
- ```
120
-
121
- > python testHplot.py
122
-
123
- The following script generates a series of plots that showcase different aspects of the synthesis process using the _demo2D.py_ script.
124
-
125
- ```
126
- python plotdemo2d.py -n=32 -c
127
- ```
128
-
129
- For more information, see the [documentation](https://foscat-documentation.readthedocs.io/en/latest/index.html).
130
-
131
- > mpirun -np 3 testHealpix_mpi.py
132
-
133
65
  ## Authors and acknowledgment
134
66
 
135
67
  Authors: J.-M. Delouis, P. Campeti, T. Foulquier, J. Mangin, L. Mousset, T. Odaka, F. Paul, E. Allys
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "foscat"
3
- version = "2025.10.2"
3
+ version = "2026.01.1"
4
4
  description = "Generate synthetic Healpix or 2D data using Cross Scattering Transform"
5
5
  readme = "README.md"
6
6
  license = { text = "BSD-3-Clause" }