pysteps 2.0.0rc1__tar.gz → 2.0.0rc2__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 (198) hide show
  1. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/MANIFEST.in +1 -3
  2. {pysteps-2.0.0rc1/PySTEPS.egg-info → pysteps-2.0.0rc2}/PKG-INFO +14 -2
  3. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2/PySTEPS.egg-info}/PKG-INFO +14 -2
  4. pysteps-2.0.0rc2/PySTEPS.egg-info/SOURCES.txt +195 -0
  5. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/PySTEPS.egg-info/requires.txt +13 -0
  6. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pyproject.toml +20 -4
  7. pysteps-2.0.0rc2/pysteps/__init__.py +223 -0
  8. pysteps-2.0.0rc2/pysteps/blending/__init__.py +8 -0
  9. pysteps-2.0.0rc2/pysteps/blending/clim.py +221 -0
  10. pysteps-2.0.0rc2/pysteps/blending/ens_kalman_filter_methods.py +644 -0
  11. pysteps-2.0.0rc2/pysteps/blending/interface.py +70 -0
  12. pysteps-2.0.0rc2/pysteps/blending/linear_blending.py +351 -0
  13. pysteps-2.0.0rc2/pysteps/blending/pca_ens_kalman_filter.py +1792 -0
  14. pysteps-2.0.0rc2/pysteps/blending/skill_scores.py +304 -0
  15. pysteps-2.0.0rc2/pysteps/blending/steps.py +4209 -0
  16. pysteps-2.0.0rc2/pysteps/blending/utils.py +550 -0
  17. pysteps-2.0.0rc2/pysteps/cascade/__init__.py +7 -0
  18. pysteps-2.0.0rc2/pysteps/cascade/bandpass_filters.py +244 -0
  19. pysteps-2.0.0rc2/pysteps/cascade/decomposition.py +308 -0
  20. pysteps-2.0.0rc2/pysteps/cascade/interface.py +67 -0
  21. pysteps-2.0.0rc2/pysteps/datasets.py +483 -0
  22. pysteps-2.0.0rc2/pysteps/decorators.py +252 -0
  23. pysteps-2.0.0rc2/pysteps/downscaling/__init__.py +4 -0
  24. pysteps-2.0.0rc2/pysteps/downscaling/interface.py +54 -0
  25. pysteps-2.0.0rc2/pysteps/downscaling/rainfarm.py +384 -0
  26. pysteps-2.0.0rc2/pysteps/exceptions.py +21 -0
  27. pysteps-2.0.0rc2/pysteps/extrapolation/__init__.py +8 -0
  28. pysteps-2.0.0rc2/pysteps/extrapolation/eulerian_persistence.py +51 -0
  29. pysteps-2.0.0rc2/pysteps/extrapolation/interface.py +90 -0
  30. pysteps-2.0.0rc2/pysteps/extrapolation/semilagrangian.py +266 -0
  31. pysteps-2.0.0rc2/pysteps/feature/__init__.py +4 -0
  32. pysteps-2.0.0rc2/pysteps/feature/blob.py +115 -0
  33. pysteps-2.0.0rc2/pysteps/feature/interface.py +72 -0
  34. pysteps-2.0.0rc2/pysteps/feature/shitomasi.py +171 -0
  35. pysteps-2.0.0rc2/pysteps/feature/tstorm.py +316 -0
  36. pysteps-2.0.0rc2/pysteps/io/__init__.py +12 -0
  37. pysteps-2.0.0rc2/pysteps/io/archive.py +133 -0
  38. pysteps-2.0.0rc2/pysteps/io/exporters.py +988 -0
  39. pysteps-2.0.0rc2/pysteps/io/importers.py +2402 -0
  40. pysteps-2.0.0rc2/pysteps/io/interface.py +240 -0
  41. pysteps-2.0.0rc2/pysteps/io/nowcast_importers.py +136 -0
  42. pysteps-2.0.0rc2/pysteps/io/readers.py +115 -0
  43. pysteps-2.0.0rc2/pysteps/motion/__init__.py +5 -0
  44. pysteps-2.0.0rc2/pysteps/motion/constant.py +62 -0
  45. pysteps-2.0.0rc2/pysteps/motion/darts.py +253 -0
  46. pysteps-2.0.0rc2/pysteps/motion/farneback.py +276 -0
  47. pysteps-2.0.0rc2/pysteps/motion/interface.py +111 -0
  48. pysteps-2.0.0rc2/pysteps/motion/lucaskanade.py +282 -0
  49. pysteps-2.0.0rc2/pysteps/motion/proesmans.py +104 -0
  50. pysteps-2.0.0rc2/pysteps/motion/vet.py +651 -0
  51. pysteps-2.0.0rc2/pysteps/noise/__init__.py +8 -0
  52. pysteps-2.0.0rc2/pysteps/noise/fftgenerators.py +899 -0
  53. pysteps-2.0.0rc2/pysteps/noise/interface.py +97 -0
  54. pysteps-2.0.0rc2/pysteps/noise/motion.py +180 -0
  55. pysteps-2.0.0rc2/pysteps/noise/utils.py +135 -0
  56. pysteps-2.0.0rc2/pysteps/nowcasts/__init__.py +3 -0
  57. pysteps-2.0.0rc2/pysteps/nowcasts/anvil.py +514 -0
  58. pysteps-2.0.0rc2/pysteps/nowcasts/extrapolation.py +127 -0
  59. pysteps-2.0.0rc2/pysteps/nowcasts/interface.py +113 -0
  60. pysteps-2.0.0rc2/pysteps/nowcasts/lagrangian_probability.py +132 -0
  61. pysteps-2.0.0rc2/pysteps/nowcasts/linda.py +1512 -0
  62. pysteps-2.0.0rc2/pysteps/nowcasts/sprog.py +437 -0
  63. pysteps-2.0.0rc2/pysteps/nowcasts/sseps.py +1052 -0
  64. pysteps-2.0.0rc2/pysteps/nowcasts/steps.py +1560 -0
  65. pysteps-2.0.0rc2/pysteps/nowcasts/utils.py +651 -0
  66. pysteps-2.0.0rc2/pysteps/postprocessing/__init__.py +7 -0
  67. pysteps-2.0.0rc2/pysteps/postprocessing/diagnostics.py +22 -0
  68. pysteps-2.0.0rc2/pysteps/postprocessing/ensemblestats.py +179 -0
  69. pysteps-2.0.0rc2/pysteps/postprocessing/interface.py +247 -0
  70. pysteps-2.0.0rc2/pysteps/postprocessing/probmatching.py +351 -0
  71. pysteps-2.0.0rc2/pysteps/scripts/__init__.py +5 -0
  72. pysteps-2.0.0rc2/pysteps/scripts/fit_vel_pert_params.py +95 -0
  73. pysteps-2.0.0rc2/pysteps/scripts/run_vel_pert_analysis.py +180 -0
  74. pysteps-2.0.0rc2/pysteps/tests/__init__.py +0 -0
  75. pysteps-2.0.0rc2/pysteps/tests/helpers.py +284 -0
  76. pysteps-2.0.0rc2/pysteps/tests/test_archive.py +22 -0
  77. pysteps-2.0.0rc2/pysteps/tests/test_blending_clim.py +150 -0
  78. pysteps-2.0.0rc2/pysteps/tests/test_blending_linear_blending.py +416 -0
  79. pysteps-2.0.0rc2/pysteps/tests/test_blending_pca_ens_kalman_filter.py +324 -0
  80. pysteps-2.0.0rc2/pysteps/tests/test_blending_skill_scores.py +339 -0
  81. pysteps-2.0.0rc2/pysteps/tests/test_blending_steps.py +891 -0
  82. pysteps-2.0.0rc2/pysteps/tests/test_blending_utils.py +377 -0
  83. pysteps-2.0.0rc2/pysteps/tests/test_cascade.py +73 -0
  84. pysteps-2.0.0rc2/pysteps/tests/test_datasets.py +94 -0
  85. pysteps-2.0.0rc2/pysteps/tests/test_decorators.py +33 -0
  86. pysteps-2.0.0rc2/pysteps/tests/test_downscaling_rainfarm.py +146 -0
  87. pysteps-2.0.0rc2/pysteps/tests/test_ensscores.py +68 -0
  88. pysteps-2.0.0rc2/pysteps/tests/test_exporters.py +248 -0
  89. pysteps-2.0.0rc2/pysteps/tests/test_extrapolation_semilagrangian.py +72 -0
  90. pysteps-2.0.0rc2/pysteps/tests/test_feature.py +38 -0
  91. pysteps-2.0.0rc2/pysteps/tests/test_feature_tstorm.py +123 -0
  92. pysteps-2.0.0rc2/pysteps/tests/test_importer_decorator.py +51 -0
  93. pysteps-2.0.0rc2/pysteps/tests/test_interfaces.py +409 -0
  94. pysteps-2.0.0rc2/pysteps/tests/test_io_archive.py +34 -0
  95. pysteps-2.0.0rc2/pysteps/tests/test_io_bom_rf3.py +54 -0
  96. pysteps-2.0.0rc2/pysteps/tests/test_io_dwd_hdf5.py +65 -0
  97. pysteps-2.0.0rc2/pysteps/tests/test_io_fmi_geotiff.py +45 -0
  98. pysteps-2.0.0rc2/pysteps/tests/test_io_fmi_pgm.py +64 -0
  99. pysteps-2.0.0rc2/pysteps/tests/test_io_knmi_hdf5.py +58 -0
  100. pysteps-2.0.0rc2/pysteps/tests/test_io_mch_gif.py +58 -0
  101. pysteps-2.0.0rc2/pysteps/tests/test_io_mrms_grib.py +121 -0
  102. pysteps-2.0.0rc2/pysteps/tests/test_io_nowcast_importers.py +67 -0
  103. pysteps-2.0.0rc2/pysteps/tests/test_io_opera_hdf5.py +196 -0
  104. pysteps-2.0.0rc2/pysteps/tests/test_io_readers.py +22 -0
  105. pysteps-2.0.0rc2/pysteps/tests/test_io_saf_crri.py +93 -0
  106. pysteps-2.0.0rc2/pysteps/tests/test_motion.py +529 -0
  107. pysteps-2.0.0rc2/pysteps/tests/test_motion_farneback.py +153 -0
  108. pysteps-2.0.0rc2/pysteps/tests/test_motion_lk.py +109 -0
  109. pysteps-2.0.0rc2/pysteps/tests/test_noise_fftgenerators.py +71 -0
  110. pysteps-2.0.0rc2/pysteps/tests/test_noise_motion.py +63 -0
  111. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_anvil.py +138 -0
  112. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_lagrangian_probability.py +139 -0
  113. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_linda.py +289 -0
  114. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_sprog.py +104 -0
  115. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_sseps.py +153 -0
  116. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_steps.py +506 -0
  117. pysteps-2.0.0rc2/pysteps/tests/test_nowcasts_utils.py +62 -0
  118. pysteps-2.0.0rc2/pysteps/tests/test_paramsrc.py +87 -0
  119. pysteps-2.0.0rc2/pysteps/tests/test_plt_animate.py +127 -0
  120. pysteps-2.0.0rc2/pysteps/tests/test_plt_cartopy.py +51 -0
  121. pysteps-2.0.0rc2/pysteps/tests/test_plt_motionfields.py +132 -0
  122. pysteps-2.0.0rc2/pysteps/tests/test_plt_precipfields.py +86 -0
  123. pysteps-2.0.0rc2/pysteps/tests/test_plugins_support.py +101 -0
  124. pysteps-2.0.0rc2/pysteps/tests/test_postprocessing_ensemblestats.py +91 -0
  125. pysteps-2.0.0rc2/pysteps/tests/test_postprocessing_probmatching.py +202 -0
  126. pysteps-2.0.0rc2/pysteps/tests/test_timeseries_autoregression.py +249 -0
  127. pysteps-2.0.0rc2/pysteps/tests/test_tracking_tdating.py +109 -0
  128. pysteps-2.0.0rc2/pysteps/tests/test_utils_arrays.py +22 -0
  129. pysteps-2.0.0rc2/pysteps/tests/test_utils_cleansing.py +192 -0
  130. pysteps-2.0.0rc2/pysteps/tests/test_utils_conversion.py +904 -0
  131. pysteps-2.0.0rc2/pysteps/tests/test_utils_dimension.py +500 -0
  132. pysteps-2.0.0rc2/pysteps/tests/test_utils_interpolate.py +142 -0
  133. pysteps-2.0.0rc2/pysteps/tests/test_utils_pca.py +59 -0
  134. pysteps-2.0.0rc2/pysteps/tests/test_utils_reprojection.py +179 -0
  135. pysteps-2.0.0rc2/pysteps/tests/test_utils_spectral.py +26 -0
  136. pysteps-2.0.0rc2/pysteps/tests/test_utils_transformation.py +383 -0
  137. pysteps-2.0.0rc2/pysteps/tests/test_verification_detcatscores.py +63 -0
  138. pysteps-2.0.0rc2/pysteps/tests/test_verification_detcontscores.py +150 -0
  139. pysteps-2.0.0rc2/pysteps/tests/test_verification_probscores.py +77 -0
  140. pysteps-2.0.0rc2/pysteps/tests/test_verification_salscores.py +56 -0
  141. pysteps-2.0.0rc2/pysteps/tests/test_verification_spatialscores.py +109 -0
  142. pysteps-2.0.0rc2/pysteps/timeseries/__init__.py +2 -0
  143. pysteps-2.0.0rc2/pysteps/timeseries/autoregression.py +1221 -0
  144. pysteps-2.0.0rc2/pysteps/timeseries/correlation.py +272 -0
  145. pysteps-2.0.0rc2/pysteps/tracking/__init__.py +4 -0
  146. pysteps-2.0.0rc2/pysteps/tracking/interface.py +56 -0
  147. pysteps-2.0.0rc2/pysteps/tracking/lucaskanade.py +189 -0
  148. pysteps-2.0.0rc2/pysteps/tracking/tdating.py +476 -0
  149. pysteps-2.0.0rc2/pysteps/utils/__init__.py +15 -0
  150. pysteps-2.0.0rc2/pysteps/utils/arrays.py +56 -0
  151. pysteps-2.0.0rc2/pysteps/utils/check_norain.py +155 -0
  152. pysteps-2.0.0rc2/pysteps/utils/cleansing.py +249 -0
  153. pysteps-2.0.0rc2/pysteps/utils/conversion.py +321 -0
  154. pysteps-2.0.0rc2/pysteps/utils/dimension.py +512 -0
  155. pysteps-2.0.0rc2/pysteps/utils/fft.py +141 -0
  156. pysteps-2.0.0rc2/pysteps/utils/images.py +86 -0
  157. pysteps-2.0.0rc2/pysteps/utils/interface.py +274 -0
  158. pysteps-2.0.0rc2/pysteps/utils/interpolate.py +181 -0
  159. pysteps-2.0.0rc2/pysteps/utils/pca.py +178 -0
  160. pysteps-2.0.0rc2/pysteps/utils/reprojection.py +204 -0
  161. pysteps-2.0.0rc2/pysteps/utils/spectral.py +239 -0
  162. pysteps-2.0.0rc2/pysteps/utils/tapering.py +142 -0
  163. pysteps-2.0.0rc2/pysteps/utils/transformation.py +350 -0
  164. pysteps-2.0.0rc2/pysteps/verification/__init__.py +11 -0
  165. pysteps-2.0.0rc2/pysteps/verification/detcatscores.py +404 -0
  166. pysteps-2.0.0rc2/pysteps/verification/detcontscores.py +745 -0
  167. pysteps-2.0.0rc2/pysteps/verification/ensscores.py +275 -0
  168. pysteps-2.0.0rc2/pysteps/verification/interface.py +251 -0
  169. pysteps-2.0.0rc2/pysteps/verification/lifetime.py +158 -0
  170. pysteps-2.0.0rc2/pysteps/verification/plots.py +223 -0
  171. pysteps-2.0.0rc2/pysteps/verification/probscores.py +423 -0
  172. pysteps-2.0.0rc2/pysteps/verification/salscores.py +467 -0
  173. pysteps-2.0.0rc2/pysteps/verification/spatialscores.py +692 -0
  174. pysteps-2.0.0rc2/pysteps/visualization/__init__.py +8 -0
  175. pysteps-2.0.0rc2/pysteps/visualization/animations.py +332 -0
  176. pysteps-2.0.0rc2/pysteps/visualization/basemaps.py +301 -0
  177. pysteps-2.0.0rc2/pysteps/visualization/motionfields.py +240 -0
  178. pysteps-2.0.0rc2/pysteps/visualization/precipfields.py +553 -0
  179. pysteps-2.0.0rc2/pysteps/visualization/spectral.py +100 -0
  180. pysteps-2.0.0rc2/pysteps/visualization/thunderstorms.py +121 -0
  181. pysteps-2.0.0rc2/pysteps/visualization/utils.py +456 -0
  182. pysteps-2.0.0rc2/pysteps/xarray_helpers.py +400 -0
  183. pysteps-2.0.0rc1/PySTEPS.egg-info/SOURCES.txt +0 -19
  184. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/CONTRIBUTING.rst +0 -0
  185. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/LICENSE +0 -0
  186. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/PySTEPS.egg-info/dependency_links.txt +0 -0
  187. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/PySTEPS.egg-info/top_level.txt +0 -0
  188. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/README.rst +0 -0
  189. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/io/mch_lut_8bit_Metranet_AZC_V104.txt +0 -0
  190. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/io/mch_lut_8bit_Metranet_v103.txt +0 -0
  191. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/motion/_proesmans.c +0 -0
  192. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/motion/_proesmans.pyx +0 -0
  193. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/motion/_vet.c +0 -0
  194. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/motion/_vet.pyx +0 -0
  195. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/pystepsrc +0 -0
  196. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/pysteps/pystepsrc_schema.json +0 -0
  197. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/setup.cfg +0 -0
  198. {pysteps-2.0.0rc1 → pysteps-2.0.0rc2}/setup.py +0 -0
@@ -1,9 +1,7 @@
1
- include LICENSE *.txt *.rst
1
+ include LICENSE *.rst
2
2
  include pysteps/pystepsrc
3
3
  include pysteps/pystepsrc_schema.json
4
4
  include pysteps/io/mch_lut_8bit_Metranet_AZC_V104.txt
5
5
  include pysteps/io/mch_lut_8bit_Metranet_v103.txt
6
6
  recursive-include pysteps *.pyx
7
7
  include pyproject.toml
8
-
9
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PySTEPS
3
- Version: 2.0.0rc1
3
+ Version: 2.0.0rc2
4
4
  Summary: Python framework for short-term ensemble prediction systems
5
5
  License-Expression: BSD-3-Clause
6
6
  Project-URL: Homepage, https://github.com/you/my-package
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Operating System :: OS Independent
23
- Requires-Python: <3.14.0,>=3.11.0
23
+ Requires-Python: <3.14.0,>=3.11.5
24
24
  Description-Content-Type: text/x-rst
25
25
  License-File: LICENSE
26
26
  Requires-Dist: jsmin
@@ -52,6 +52,18 @@ Provides-Extra: gdal
52
52
  Requires-Dist: pip; extra == "gdal"
53
53
  Requires-Dist: setuptools>=67; extra == "gdal"
54
54
  Requires-Dist: wheel; extra == "gdal"
55
+ Provides-Extra: doc
56
+ Requires-Dist: sphinx; extra == "doc"
57
+ Requires-Dist: sphinxcontrib.bibtex; extra == "doc"
58
+ Requires-Dist: sphinx-book-theme; extra == "doc"
59
+ Requires-Dist: sphinx_gallery; extra == "doc"
60
+ Requires-Dist: scikit-image; extra == "doc"
61
+ Requires-Dist: scikit-learn; extra == "doc"
62
+ Requires-Dist: pandas; extra == "doc"
63
+ Requires-Dist: pysteps-nwp-importers; extra == "doc"
64
+ Requires-Dist: pygrib; extra == "doc"
65
+ Requires-Dist: h5py; extra == "doc"
66
+ Requires-Dist: cartopy>=0.18; extra == "doc"
55
67
  Dynamic: license-file
56
68
 
57
69
  pysteps - Python framework for short-term ensemble prediction systems
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PySTEPS
3
- Version: 2.0.0rc1
3
+ Version: 2.0.0rc2
4
4
  Summary: Python framework for short-term ensemble prediction systems
5
5
  License-Expression: BSD-3-Clause
6
6
  Project-URL: Homepage, https://github.com/you/my-package
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Operating System :: OS Independent
23
- Requires-Python: <3.14.0,>=3.11.0
23
+ Requires-Python: <3.14.0,>=3.11.5
24
24
  Description-Content-Type: text/x-rst
25
25
  License-File: LICENSE
26
26
  Requires-Dist: jsmin
@@ -52,6 +52,18 @@ Provides-Extra: gdal
52
52
  Requires-Dist: pip; extra == "gdal"
53
53
  Requires-Dist: setuptools>=67; extra == "gdal"
54
54
  Requires-Dist: wheel; extra == "gdal"
55
+ Provides-Extra: doc
56
+ Requires-Dist: sphinx; extra == "doc"
57
+ Requires-Dist: sphinxcontrib.bibtex; extra == "doc"
58
+ Requires-Dist: sphinx-book-theme; extra == "doc"
59
+ Requires-Dist: sphinx_gallery; extra == "doc"
60
+ Requires-Dist: scikit-image; extra == "doc"
61
+ Requires-Dist: scikit-learn; extra == "doc"
62
+ Requires-Dist: pandas; extra == "doc"
63
+ Requires-Dist: pysteps-nwp-importers; extra == "doc"
64
+ Requires-Dist: pygrib; extra == "doc"
65
+ Requires-Dist: h5py; extra == "doc"
66
+ Requires-Dist: cartopy>=0.18; extra == "doc"
55
67
  Dynamic: license-file
56
68
 
57
69
  pysteps - Python framework for short-term ensemble prediction systems
@@ -0,0 +1,195 @@
1
+ CONTRIBUTING.rst
2
+ LICENSE
3
+ MANIFEST.in
4
+ README.rst
5
+ pyproject.toml
6
+ setup.py
7
+ PySTEPS.egg-info/PKG-INFO
8
+ PySTEPS.egg-info/SOURCES.txt
9
+ PySTEPS.egg-info/dependency_links.txt
10
+ PySTEPS.egg-info/requires.txt
11
+ PySTEPS.egg-info/top_level.txt
12
+ pysteps/__init__.py
13
+ pysteps/datasets.py
14
+ pysteps/decorators.py
15
+ pysteps/exceptions.py
16
+ pysteps/pystepsrc
17
+ pysteps/pystepsrc_schema.json
18
+ pysteps/xarray_helpers.py
19
+ pysteps/blending/__init__.py
20
+ pysteps/blending/clim.py
21
+ pysteps/blending/ens_kalman_filter_methods.py
22
+ pysteps/blending/interface.py
23
+ pysteps/blending/linear_blending.py
24
+ pysteps/blending/pca_ens_kalman_filter.py
25
+ pysteps/blending/skill_scores.py
26
+ pysteps/blending/steps.py
27
+ pysteps/blending/utils.py
28
+ pysteps/cascade/__init__.py
29
+ pysteps/cascade/bandpass_filters.py
30
+ pysteps/cascade/decomposition.py
31
+ pysteps/cascade/interface.py
32
+ pysteps/downscaling/__init__.py
33
+ pysteps/downscaling/interface.py
34
+ pysteps/downscaling/rainfarm.py
35
+ pysteps/extrapolation/__init__.py
36
+ pysteps/extrapolation/eulerian_persistence.py
37
+ pysteps/extrapolation/interface.py
38
+ pysteps/extrapolation/semilagrangian.py
39
+ pysteps/feature/__init__.py
40
+ pysteps/feature/blob.py
41
+ pysteps/feature/interface.py
42
+ pysteps/feature/shitomasi.py
43
+ pysteps/feature/tstorm.py
44
+ pysteps/io/__init__.py
45
+ pysteps/io/archive.py
46
+ pysteps/io/exporters.py
47
+ pysteps/io/importers.py
48
+ pysteps/io/interface.py
49
+ pysteps/io/mch_lut_8bit_Metranet_AZC_V104.txt
50
+ pysteps/io/mch_lut_8bit_Metranet_v103.txt
51
+ pysteps/io/nowcast_importers.py
52
+ pysteps/io/readers.py
53
+ pysteps/motion/__init__.py
54
+ pysteps/motion/_proesmans.c
55
+ pysteps/motion/_proesmans.pyx
56
+ pysteps/motion/_vet.c
57
+ pysteps/motion/_vet.pyx
58
+ pysteps/motion/constant.py
59
+ pysteps/motion/darts.py
60
+ pysteps/motion/farneback.py
61
+ pysteps/motion/interface.py
62
+ pysteps/motion/lucaskanade.py
63
+ pysteps/motion/proesmans.py
64
+ pysteps/motion/vet.py
65
+ pysteps/noise/__init__.py
66
+ pysteps/noise/fftgenerators.py
67
+ pysteps/noise/interface.py
68
+ pysteps/noise/motion.py
69
+ pysteps/noise/utils.py
70
+ pysteps/nowcasts/__init__.py
71
+ pysteps/nowcasts/anvil.py
72
+ pysteps/nowcasts/extrapolation.py
73
+ pysteps/nowcasts/interface.py
74
+ pysteps/nowcasts/lagrangian_probability.py
75
+ pysteps/nowcasts/linda.py
76
+ pysteps/nowcasts/sprog.py
77
+ pysteps/nowcasts/sseps.py
78
+ pysteps/nowcasts/steps.py
79
+ pysteps/nowcasts/utils.py
80
+ pysteps/postprocessing/__init__.py
81
+ pysteps/postprocessing/diagnostics.py
82
+ pysteps/postprocessing/ensemblestats.py
83
+ pysteps/postprocessing/interface.py
84
+ pysteps/postprocessing/probmatching.py
85
+ pysteps/scripts/__init__.py
86
+ pysteps/scripts/fit_vel_pert_params.py
87
+ pysteps/scripts/run_vel_pert_analysis.py
88
+ pysteps/tests/__init__.py
89
+ pysteps/tests/helpers.py
90
+ pysteps/tests/test_archive.py
91
+ pysteps/tests/test_blending_clim.py
92
+ pysteps/tests/test_blending_linear_blending.py
93
+ pysteps/tests/test_blending_pca_ens_kalman_filter.py
94
+ pysteps/tests/test_blending_skill_scores.py
95
+ pysteps/tests/test_blending_steps.py
96
+ pysteps/tests/test_blending_utils.py
97
+ pysteps/tests/test_cascade.py
98
+ pysteps/tests/test_datasets.py
99
+ pysteps/tests/test_decorators.py
100
+ pysteps/tests/test_downscaling_rainfarm.py
101
+ pysteps/tests/test_ensscores.py
102
+ pysteps/tests/test_exporters.py
103
+ pysteps/tests/test_extrapolation_semilagrangian.py
104
+ pysteps/tests/test_feature.py
105
+ pysteps/tests/test_feature_tstorm.py
106
+ pysteps/tests/test_importer_decorator.py
107
+ pysteps/tests/test_interfaces.py
108
+ pysteps/tests/test_io_archive.py
109
+ pysteps/tests/test_io_bom_rf3.py
110
+ pysteps/tests/test_io_dwd_hdf5.py
111
+ pysteps/tests/test_io_fmi_geotiff.py
112
+ pysteps/tests/test_io_fmi_pgm.py
113
+ pysteps/tests/test_io_knmi_hdf5.py
114
+ pysteps/tests/test_io_mch_gif.py
115
+ pysteps/tests/test_io_mrms_grib.py
116
+ pysteps/tests/test_io_nowcast_importers.py
117
+ pysteps/tests/test_io_opera_hdf5.py
118
+ pysteps/tests/test_io_readers.py
119
+ pysteps/tests/test_io_saf_crri.py
120
+ pysteps/tests/test_motion.py
121
+ pysteps/tests/test_motion_farneback.py
122
+ pysteps/tests/test_motion_lk.py
123
+ pysteps/tests/test_noise_fftgenerators.py
124
+ pysteps/tests/test_noise_motion.py
125
+ pysteps/tests/test_nowcasts_anvil.py
126
+ pysteps/tests/test_nowcasts_lagrangian_probability.py
127
+ pysteps/tests/test_nowcasts_linda.py
128
+ pysteps/tests/test_nowcasts_sprog.py
129
+ pysteps/tests/test_nowcasts_sseps.py
130
+ pysteps/tests/test_nowcasts_steps.py
131
+ pysteps/tests/test_nowcasts_utils.py
132
+ pysteps/tests/test_paramsrc.py
133
+ pysteps/tests/test_plt_animate.py
134
+ pysteps/tests/test_plt_cartopy.py
135
+ pysteps/tests/test_plt_motionfields.py
136
+ pysteps/tests/test_plt_precipfields.py
137
+ pysteps/tests/test_plugins_support.py
138
+ pysteps/tests/test_postprocessing_ensemblestats.py
139
+ pysteps/tests/test_postprocessing_probmatching.py
140
+ pysteps/tests/test_timeseries_autoregression.py
141
+ pysteps/tests/test_tracking_tdating.py
142
+ pysteps/tests/test_utils_arrays.py
143
+ pysteps/tests/test_utils_cleansing.py
144
+ pysteps/tests/test_utils_conversion.py
145
+ pysteps/tests/test_utils_dimension.py
146
+ pysteps/tests/test_utils_interpolate.py
147
+ pysteps/tests/test_utils_pca.py
148
+ pysteps/tests/test_utils_reprojection.py
149
+ pysteps/tests/test_utils_spectral.py
150
+ pysteps/tests/test_utils_transformation.py
151
+ pysteps/tests/test_verification_detcatscores.py
152
+ pysteps/tests/test_verification_detcontscores.py
153
+ pysteps/tests/test_verification_probscores.py
154
+ pysteps/tests/test_verification_salscores.py
155
+ pysteps/tests/test_verification_spatialscores.py
156
+ pysteps/timeseries/__init__.py
157
+ pysteps/timeseries/autoregression.py
158
+ pysteps/timeseries/correlation.py
159
+ pysteps/tracking/__init__.py
160
+ pysteps/tracking/interface.py
161
+ pysteps/tracking/lucaskanade.py
162
+ pysteps/tracking/tdating.py
163
+ pysteps/utils/__init__.py
164
+ pysteps/utils/arrays.py
165
+ pysteps/utils/check_norain.py
166
+ pysteps/utils/cleansing.py
167
+ pysteps/utils/conversion.py
168
+ pysteps/utils/dimension.py
169
+ pysteps/utils/fft.py
170
+ pysteps/utils/images.py
171
+ pysteps/utils/interface.py
172
+ pysteps/utils/interpolate.py
173
+ pysteps/utils/pca.py
174
+ pysteps/utils/reprojection.py
175
+ pysteps/utils/spectral.py
176
+ pysteps/utils/tapering.py
177
+ pysteps/utils/transformation.py
178
+ pysteps/verification/__init__.py
179
+ pysteps/verification/detcatscores.py
180
+ pysteps/verification/detcontscores.py
181
+ pysteps/verification/ensscores.py
182
+ pysteps/verification/interface.py
183
+ pysteps/verification/lifetime.py
184
+ pysteps/verification/plots.py
185
+ pysteps/verification/probscores.py
186
+ pysteps/verification/salscores.py
187
+ pysteps/verification/spatialscores.py
188
+ pysteps/visualization/__init__.py
189
+ pysteps/visualization/animations.py
190
+ pysteps/visualization/basemaps.py
191
+ pysteps/visualization/motionfields.py
192
+ pysteps/visualization/precipfields.py
193
+ pysteps/visualization/spectral.py
194
+ pysteps/visualization/thunderstorms.py
195
+ pysteps/visualization/utils.py
@@ -10,6 +10,19 @@ pyproj
10
10
  scipy
11
11
  xarray
12
12
 
13
+ [doc]
14
+ sphinx
15
+ sphinxcontrib.bibtex
16
+ sphinx-book-theme
17
+ sphinx_gallery
18
+ scikit-image
19
+ scikit-learn
20
+ pandas
21
+ pysteps-nwp-importers
22
+ pygrib
23
+ h5py
24
+ cartopy>=0.18
25
+
13
26
  [gdal]
14
27
  pip
15
28
  setuptools>=67
@@ -25,8 +25,8 @@ classifiers = [
25
25
  "Operating System :: OS Independent",
26
26
  ]
27
27
  readme = "README.rst"
28
- version = "2.0.0-rc.1"
29
- requires-python = ">=3.11.0,<3.14.0"
28
+ version = "2.0.0rc2"
29
+ requires-python = ">=3.11.5,<3.14.0"
30
30
  dependencies = [
31
31
  "jsmin",
32
32
  "jsonschema",
@@ -65,6 +65,21 @@ gdal =[
65
65
  "wheel",
66
66
  ]
67
67
 
68
+ doc = [
69
+ # Additional requirements related to the documentation build only
70
+ "sphinx",
71
+ "sphinxcontrib.bibtex",
72
+ "sphinx-book-theme",
73
+ "sphinx_gallery",
74
+ "scikit-image",
75
+ "scikit-learn",
76
+ "pandas",
77
+ "pysteps-nwp-importers",
78
+ "pygrib",
79
+ "h5py",
80
+ "cartopy>=0.18", # for the maps in the gallery examples
81
+ ]
82
+
68
83
  [dependency-groups]
69
84
  dev = [
70
85
  "bandit",
@@ -121,5 +136,6 @@ select = [
121
136
  # Use `\n` line endings for all files
122
137
  line-ending = "lf"
123
138
 
124
- [tool.setuptools]
125
- py-modules = ["pysteps"]
139
+ #FIXME when merged in pysteps-nwp-importers main and released, this can go away
140
+ [tool.uv.sources]
141
+ pysteps-nwp-importers = { git = "https://github.com/pySTEPS/pysteps-nwp-importers", branch = "adapt-to-pysteps-v2" }
@@ -0,0 +1,223 @@
1
+ import json
2
+ import os
3
+ import stat
4
+ import sys
5
+ import warnings
6
+
7
+ from jsmin import jsmin
8
+ from jsonschema import Draft4Validator
9
+
10
+ # import subpackages
11
+ from . import (
12
+ blending,
13
+ cascade,
14
+ datasets,
15
+ decorators,
16
+ downscaling,
17
+ exceptions,
18
+ extrapolation,
19
+ io,
20
+ motion,
21
+ noise,
22
+ nowcasts,
23
+ postprocessing,
24
+ timeseries,
25
+ utils,
26
+ )
27
+ from . import verification as vf
28
+ from . import visualization as plt
29
+
30
+
31
+ def _get_config_file_schema():
32
+ """
33
+ Return the path to the parameters file json schema.
34
+ """
35
+ module_file = _decode_filesystem_path(__file__)
36
+ return os.path.join(os.path.dirname(module_file), "pystepsrc_schema.json")
37
+
38
+
39
+ def _fconfig_candidates_generator():
40
+ """
41
+ Configuration files candidates generator.
42
+
43
+ See :py:func:~config_fname for more details.
44
+ """
45
+
46
+ yield os.path.join(os.getcwd(), "pystepsrc")
47
+
48
+ try:
49
+ pystepsrc = os.environ["PYSTEPSRC"]
50
+ except KeyError:
51
+ pass
52
+ else:
53
+ yield pystepsrc
54
+ yield os.path.join(pystepsrc, "pystepsrc")
55
+
56
+ if os.name == "nt":
57
+ # Windows environment
58
+ env_variable = "USERPROFILE"
59
+ subdir = "pysteps"
60
+ else:
61
+ # UNIX like
62
+ env_variable = "HOME"
63
+ subdir = ".pysteps"
64
+
65
+ try:
66
+ pystepsrc = os.environ[env_variable]
67
+ except KeyError:
68
+ pass
69
+ else:
70
+ yield os.path.join(pystepsrc, subdir, "pystepsrc")
71
+
72
+ module_file = _decode_filesystem_path(__file__)
73
+ yield os.path.join(os.path.dirname(module_file), "pystepsrc")
74
+ yield None
75
+
76
+
77
+ # Function adapted from matplotlib's *matplotlib_fname* function.
78
+ def config_fname():
79
+ """
80
+ Get the location of the config file.
81
+
82
+ Looks for pystepsrc file in the following order:
83
+ - $PWD/pystepsrc: Looks for the file in the current directory
84
+ - $PYSTEPSRC: If the system variable $PYSTEPSRC is defined and it points
85
+ to a file, it is used..
86
+ - $PYSTEPSRC/pystepsrc: If $PYSTEPSRC points to a directory, it looks for
87
+ the pystepsrc file inside that directory.
88
+ - $HOME/.pysteps/pystepsrc (unix and Mac OS X) :
89
+ If the system variable $HOME is defined, it looks
90
+ for the configuration file in this path.
91
+ - $USERPROFILE/pysteps/pystepsrc (windows only): It looks for the
92
+ configuration file in the pysteps directory located user's home directory.
93
+ - Lastly, it looks inside the library in pysteps/pystepsrc for a
94
+ system-defined copy.
95
+ """
96
+
97
+ file_name = None
98
+ for file_name in _fconfig_candidates_generator():
99
+ if file_name is not None:
100
+ if os.path.exists(file_name):
101
+ st_mode = os.stat(file_name).st_mode
102
+ if stat.S_ISREG(st_mode) or stat.S_ISFIFO(st_mode):
103
+ return file_name
104
+
105
+ # Return first candidate that is a file,
106
+ # or last candidate if none is valid
107
+ # (in that case, a warning is raised at startup by `rc_params`).
108
+
109
+ return file_name
110
+
111
+
112
+ def _decode_filesystem_path(path):
113
+ if not isinstance(path, str):
114
+ return path.decode(sys.getfilesystemencoding())
115
+ else:
116
+ return path
117
+
118
+
119
+ class _DotDictify(dict):
120
+ """
121
+ Class used to recursively access dict via attributes as well
122
+ as index access.
123
+ This is introduced to maintain backward compatibility with older pysteps
124
+ configuration parameters implementations.
125
+
126
+ Code adapted from:
127
+ https://stackoverflow.com/questions/3031219/recursively-access-dict-via-attributes-as-well-as-index-access
128
+
129
+ Credits: `Curt Hagenlocher`_
130
+
131
+ .. _`Curt Hagenlocher`: https://stackoverflow.com/users/533/curt-hagenlocher
132
+ """
133
+
134
+ def __setitem__(self, key, value):
135
+ if isinstance(value, dict) and not isinstance(value, _DotDictify):
136
+ value = _DotDictify(value)
137
+ super().__setitem__(key, value)
138
+
139
+ def __getitem__(self, key):
140
+ value = super().__getitem__(key)
141
+ if isinstance(value, dict) and not isinstance(value, _DotDictify):
142
+ value = _DotDictify(value)
143
+ super().__setitem__(key, value)
144
+ return value
145
+
146
+ __setattr__, __getattr__ = __setitem__, __getitem__
147
+
148
+
149
+ rcparams = dict()
150
+
151
+
152
+ def load_config_file(params_file=None, verbose=False, dryrun=False):
153
+ """
154
+ Load the pysteps configuration file. The configuration parameters are available
155
+ as a DotDictify instance in the `pysteps.rcparams` variable.
156
+
157
+ Parameters
158
+ ----------
159
+ params_file: str
160
+ Path to the parameters file to load. If `params_file=None`, it looks
161
+ for a configuration file in the default locations.
162
+ verbose: bool
163
+ Print debugging information. False by default.
164
+ This flag is overwritten by the silent_import=False in the
165
+ pysteps configuration file.
166
+ dryrun: bool
167
+ If False, perform a dry run that does not update the `pysteps.rcparams`
168
+ attribute.
169
+
170
+ Returns
171
+ -------
172
+ rcparams: _DotDictify
173
+ Configuration parameters loaded from file.
174
+ """
175
+
176
+ global rcparams
177
+
178
+ if params_file is None:
179
+ # Load default configuration
180
+ params_file = config_fname()
181
+
182
+ if params_file is None:
183
+ warnings.warn(
184
+ "pystepsrc file not found." + "The defaults parameters are left empty",
185
+ category=ImportWarning,
186
+ )
187
+
188
+ _rcparams = dict()
189
+ return
190
+
191
+ with open(params_file, "r") as f:
192
+ _rcparams = json.loads(jsmin(f.read()))
193
+
194
+ if (not _rcparams.get("silent_import", False)) or verbose:
195
+ print("Pysteps configuration file found at: " + params_file + "\n")
196
+
197
+ with open(_get_config_file_schema(), "r") as f:
198
+ schema = json.loads(jsmin(f.read()))
199
+ validator = Draft4Validator(schema)
200
+
201
+ error_msg = "Error reading pystepsrc file."
202
+ error_count = 0
203
+ for error in validator.iter_errors(_rcparams):
204
+ error_msg += "\nError in " + "/".join(list(error.path))
205
+ error_msg += ": " + error.message
206
+ error_count += 1
207
+ if error_count > 0:
208
+ raise RuntimeError(error_msg)
209
+
210
+ _rcparams = _DotDictify(_rcparams)
211
+
212
+ if not dryrun:
213
+ rcparams = _rcparams
214
+
215
+ return _rcparams
216
+
217
+
218
+ # Load default configuration
219
+ load_config_file()
220
+
221
+ # After the sub-modules are loaded, register the discovered importers plugin.
222
+ io.interface.discover_importers()
223
+ postprocessing.interface.discover_postprocessors()
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ """Methods for blending NWP model(s) with nowcasts."""
3
+
4
+ from pysteps.blending.interface import get_method
5
+
6
+ from .clim import *
7
+ from .skill_scores import *
8
+ from .utils import *