pluvium 0.1.0__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.
- pluvium-0.1.0/.gitignore +188 -0
- pluvium-0.1.0/LICENSE +203 -0
- pluvium-0.1.0/PKG-INFO +171 -0
- pluvium-0.1.0/README.md +140 -0
- pluvium-0.1.0/docs/ARCHITECTURE.md +190 -0
- pluvium-0.1.0/docs/BENCHMARK.md +49 -0
- pluvium-0.1.0/docs/FAILURE_MODES.md +57 -0
- pluvium-0.1.0/docs/MODULES.md +96 -0
- pluvium-0.1.0/docs/OPERATIONAL_BENCHMARK.md +328 -0
- pluvium-0.1.0/notebooks/rtx6000_pluvium.py +49 -0
- pluvium-0.1.0/pluvium/__init__.py +15 -0
- pluvium-0.1.0/pluvium/advection.py +70 -0
- pluvium-0.1.0/pluvium/atmos/__init__.py +33 -0
- pluvium-0.1.0/pluvium/atmos/assemble.py +63 -0
- pluvium-0.1.0/pluvium/atmos/cyclones.py +96 -0
- pluvium-0.1.0/pluvium/atmos/diurnal.py +40 -0
- pluvium-0.1.0/pluvium/atmos/moisture.py +66 -0
- pluvium-0.1.0/pluvium/atmos/saharan.py +36 -0
- pluvium-0.1.0/pluvium/atmos/sea_breeze.py +50 -0
- pluvium-0.1.0/pluvium/atmos/thermo.py +128 -0
- pluvium-0.1.0/pluvium/atmos/upslope.py +56 -0
- pluvium-0.1.0/pluvium/atmos/waves.py +39 -0
- pluvium-0.1.0/pluvium/bench.py +254 -0
- pluvium-0.1.0/pluvium/benchmarks/__init__.py +3 -0
- pluvium-0.1.0/pluvium/benchmarks/operational.py +879 -0
- pluvium-0.1.0/pluvium/calibrate.py +147 -0
- pluvium-0.1.0/pluvium/card.py +146 -0
- pluvium-0.1.0/pluvium/chain.py +256 -0
- pluvium-0.1.0/pluvium/cli.py +157 -0
- pluvium-0.1.0/pluvium/convection.py +90 -0
- pluvium-0.1.0/pluvium/dataset.py +424 -0
- pluvium-0.1.0/pluvium/domain.py +510 -0
- pluvium-0.1.0/pluvium/engine/__init__.py +28 -0
- pluvium-0.1.0/pluvium/engine/experts.py +38 -0
- pluvium-0.1.0/pluvium/engine/lead_film.py +53 -0
- pluvium-0.1.0/pluvium/engine/mc_heads.py +31 -0
- pluvium-0.1.0/pluvium/engine/refiner.py +71 -0
- pluvium-0.1.0/pluvium/engine/temporal_mixer.py +34 -0
- pluvium-0.1.0/pluvium/engine/terrain_patch.py +55 -0
- pluvium-0.1.0/pluvium/features.py +304 -0
- pluvium-0.1.0/pluvium/flood.py +180 -0
- pluvium-0.1.0/pluvium/forecast.py +540 -0
- pluvium-0.1.0/pluvium/guard/__init__.py +24 -0
- pluvium-0.1.0/pluvium/guard/consistency.py +71 -0
- pluvium-0.1.0/pluvium/guard/drift.py +58 -0
- pluvium-0.1.0/pluvium/guard/fallback.py +67 -0
- pluvium-0.1.0/pluvium/guard/freshness.py +47 -0
- pluvium-0.1.0/pluvium/guard/inputs.py +112 -0
- pluvium-0.1.0/pluvium/hydro/__init__.py +18 -0
- pluvium-0.1.0/pluvium/hydro/antecedent.py +39 -0
- pluvium-0.1.0/pluvium/hydro/hydrograph.py +56 -0
- pluvium-0.1.0/pluvium/hydro/runoff.py +47 -0
- pluvium-0.1.0/pluvium/insight/__init__.py +16 -0
- pluvium-0.1.0/pluvium/insight/attribution.py +68 -0
- pluvium-0.1.0/pluvium/insight/cases.py +42 -0
- pluvium-0.1.0/pluvium/insight/errors.py +50 -0
- pluvium-0.1.0/pluvium/losses.py +202 -0
- pluvium-0.1.0/pluvium/model.py +591 -0
- pluvium-0.1.0/pluvium/narrative.py +98 -0
- pluvium-0.1.0/pluvium/online.py +242 -0
- pluvium-0.1.0/pluvium/ops/__init__.py +14 -0
- pluvium-0.1.0/pluvium/ops/api.py +93 -0
- pluvium-0.1.0/pluvium/ops/loop.py +115 -0
- pluvium-0.1.0/pluvium/physics.py +177 -0
- pluvium-0.1.0/pluvium/prob/__init__.py +23 -0
- pluvium-0.1.0/pluvium/prob/conformal.py +52 -0
- pluvium-0.1.0/pluvium/prob/copula.py +74 -0
- pluvium-0.1.0/pluvium/prob/diagnostics.py +57 -0
- pluvium-0.1.0/pluvium/prob/extremes.py +91 -0
- pluvium-0.1.0/pluvium/prob/scores.py +88 -0
- pluvium-0.1.0/pluvium/products.py +192 -0
- pluvium-0.1.0/pluvium/program.py +588 -0
- pluvium-0.1.0/pluvium/render/__init__.py +16 -0
- pluvium-0.1.0/pluvium/render/alerts.py +77 -0
- pluvium-0.1.0/pluvium/render/bulletin.py +44 -0
- pluvium-0.1.0/pluvium/render/maps.py +59 -0
- pluvium-0.1.0/pluvium/schedule.py +67 -0
- pluvium-0.1.0/pluvium/sources/__init__.py +3 -0
- pluvium-0.1.0/pluvium/sources/baselines.py +216 -0
- pluvium-0.1.0/pluvium/sources/cmorph.py +226 -0
- pluvium-0.1.0/pluvium/sources/era5.py +215 -0
- pluvium-0.1.0/pluvium/sources/glm.py +79 -0
- pluvium-0.1.0/pluvium/sources/goes.py +157 -0
- pluvium-0.1.0/pluvium/sources/metar.py +80 -0
- pluvium-0.1.0/pluvium/sources/mrms.py +84 -0
- pluvium-0.1.0/pluvium/sources/nwp.py +382 -0
- pluvium-0.1.0/pluvium/sources/stations.py +204 -0
- pluvium-0.1.0/pluvium/synthetic.py +206 -0
- pluvium-0.1.0/pluvium/train.py +571 -0
- pluvium-0.1.0/pluvium/training/__init__.py +20 -0
- pluvium-0.1.0/pluvium/training/augment.py +53 -0
- pluvium-0.1.0/pluvium/training/curriculum.py +58 -0
- pluvium-0.1.0/pluvium/training/distill.py +38 -0
- pluvium-0.1.0/pluvium/training/ema.py +50 -0
- pluvium-0.1.0/pluvium/util.py +144 -0
- pluvium-0.1.0/pluvium/verify.py +218 -0
- pluvium-0.1.0/pluvium/weather.py +283 -0
- pluvium-0.1.0/pluvium/zarrlite.py +166 -0
- pluvium-0.1.0/pyproject.toml +59 -0
- pluvium-0.1.0/pytest.ini +2 -0
- pluvium-0.1.0/tests/test_atmos.py +76 -0
- pluvium-0.1.0/tests/test_chain.py +74 -0
- pluvium-0.1.0/tests/test_engine_prob.py +68 -0
- pluvium-0.1.0/tests/test_guard_hydro.py +49 -0
- pluvium-0.1.0/tests/test_model.py +38 -0
- pluvium-0.1.0/tests/test_operational.py +140 -0
- pluvium-0.1.0/tests/test_products.py +66 -0
- pluvium-0.1.0/tests/test_render_ops.py +41 -0
- pluvium-0.1.0/tests/test_weather.py +43 -0
pluvium-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Initially taken from Github's Python gitignore file
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# tests and logs
|
|
12
|
+
tests/fixtures/cached_*_text.txt
|
|
13
|
+
logs/
|
|
14
|
+
lightning_logs/
|
|
15
|
+
lang_code_data/
|
|
16
|
+
reports/
|
|
17
|
+
|
|
18
|
+
# Distribution / packaging
|
|
19
|
+
.Python
|
|
20
|
+
build/
|
|
21
|
+
develop-eggs/
|
|
22
|
+
dist/
|
|
23
|
+
downloads/
|
|
24
|
+
eggs/
|
|
25
|
+
.eggs/
|
|
26
|
+
lib/
|
|
27
|
+
lib64/
|
|
28
|
+
parts/
|
|
29
|
+
sdist/
|
|
30
|
+
var/
|
|
31
|
+
wheels/
|
|
32
|
+
*.egg-info/
|
|
33
|
+
.installed.cfg
|
|
34
|
+
*.egg
|
|
35
|
+
MANIFEST
|
|
36
|
+
|
|
37
|
+
# PyInstaller
|
|
38
|
+
# Usually these files are written by a python script from a template
|
|
39
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
40
|
+
*.manifest
|
|
41
|
+
*.spec
|
|
42
|
+
|
|
43
|
+
# Installer logs
|
|
44
|
+
pip-log.txt
|
|
45
|
+
pip-delete-this-directory.txt
|
|
46
|
+
|
|
47
|
+
# Unit test / coverage reports
|
|
48
|
+
htmlcov/
|
|
49
|
+
.tox/
|
|
50
|
+
.nox/
|
|
51
|
+
.coverage
|
|
52
|
+
.coverage.*
|
|
53
|
+
.cache
|
|
54
|
+
nosetests.xml
|
|
55
|
+
coverage.xml
|
|
56
|
+
*.cover
|
|
57
|
+
.hypothesis/
|
|
58
|
+
.pytest_cache/
|
|
59
|
+
|
|
60
|
+
# Translations
|
|
61
|
+
*.mo
|
|
62
|
+
*.pot
|
|
63
|
+
|
|
64
|
+
# Django stuff:
|
|
65
|
+
*.log
|
|
66
|
+
local_settings.py
|
|
67
|
+
db.sqlite3
|
|
68
|
+
|
|
69
|
+
# Flask stuff:
|
|
70
|
+
instance/
|
|
71
|
+
.webassets-cache
|
|
72
|
+
|
|
73
|
+
# Scrapy stuff:
|
|
74
|
+
.scrapy
|
|
75
|
+
|
|
76
|
+
# Sphinx documentation
|
|
77
|
+
docs/_build/
|
|
78
|
+
|
|
79
|
+
# PyBuilder
|
|
80
|
+
target/
|
|
81
|
+
|
|
82
|
+
# Jupyter Notebook
|
|
83
|
+
.ipynb_checkpoints
|
|
84
|
+
|
|
85
|
+
# IPython
|
|
86
|
+
profile_default/
|
|
87
|
+
ipython_config.py
|
|
88
|
+
|
|
89
|
+
# pyenv
|
|
90
|
+
.python-version
|
|
91
|
+
|
|
92
|
+
# celery beat schedule file
|
|
93
|
+
celerybeat-schedule
|
|
94
|
+
|
|
95
|
+
# SageMath parsed files
|
|
96
|
+
*.sage.py
|
|
97
|
+
|
|
98
|
+
# Environments
|
|
99
|
+
.env
|
|
100
|
+
.venv
|
|
101
|
+
.venv*
|
|
102
|
+
env/
|
|
103
|
+
venv/
|
|
104
|
+
ENV/
|
|
105
|
+
env.bak/
|
|
106
|
+
venv.bak/
|
|
107
|
+
|
|
108
|
+
# Spyder project settings
|
|
109
|
+
.spyderproject
|
|
110
|
+
.spyproject
|
|
111
|
+
|
|
112
|
+
# Rope project settings
|
|
113
|
+
.ropeproject
|
|
114
|
+
|
|
115
|
+
# mkdocs documentation
|
|
116
|
+
/site
|
|
117
|
+
|
|
118
|
+
# mypy
|
|
119
|
+
.mypy_cache/
|
|
120
|
+
.dmypy.json
|
|
121
|
+
dmypy.json
|
|
122
|
+
|
|
123
|
+
# Pyre type checker
|
|
124
|
+
.pyre/
|
|
125
|
+
|
|
126
|
+
# vscode
|
|
127
|
+
.vs
|
|
128
|
+
.vscode
|
|
129
|
+
|
|
130
|
+
# Pycharm
|
|
131
|
+
.idea
|
|
132
|
+
|
|
133
|
+
# TF code
|
|
134
|
+
tensorflow_code
|
|
135
|
+
|
|
136
|
+
# Models
|
|
137
|
+
proc_data
|
|
138
|
+
|
|
139
|
+
# examples
|
|
140
|
+
runs
|
|
141
|
+
/runs_old
|
|
142
|
+
/wandb
|
|
143
|
+
/examples/runs
|
|
144
|
+
/examples/**/*.args
|
|
145
|
+
/examples/rag/sweep
|
|
146
|
+
|
|
147
|
+
# data
|
|
148
|
+
/data
|
|
149
|
+
serialization_dir
|
|
150
|
+
|
|
151
|
+
# emacs
|
|
152
|
+
*.*~
|
|
153
|
+
debug.env
|
|
154
|
+
|
|
155
|
+
# vim
|
|
156
|
+
.*.swp
|
|
157
|
+
|
|
158
|
+
#ctags
|
|
159
|
+
tags
|
|
160
|
+
|
|
161
|
+
# pre-commit
|
|
162
|
+
.pre-commit*
|
|
163
|
+
|
|
164
|
+
# .lock
|
|
165
|
+
*.lock
|
|
166
|
+
|
|
167
|
+
# DS_Store (MacOS)
|
|
168
|
+
.DS_Store
|
|
169
|
+
|
|
170
|
+
# ruff
|
|
171
|
+
.ruff_cache
|
|
172
|
+
|
|
173
|
+
# checkers cache
|
|
174
|
+
utils/.checkers_cache.json
|
|
175
|
+
utils/.checkers_requirements.json
|
|
176
|
+
utils/.noisy_comments_cache.json
|
|
177
|
+
mlinter-findings.json
|
|
178
|
+
|
|
179
|
+
# modular conversion
|
|
180
|
+
*.modular_backup
|
|
181
|
+
|
|
182
|
+
# Cursor IDE files
|
|
183
|
+
.cursor/
|
|
184
|
+
test-results/
|
|
185
|
+
|
|
186
|
+
# AI agent local setup artifacts
|
|
187
|
+
/.agents/skills
|
|
188
|
+
/.claude/skills
|
pluvium-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Copyright 2018- The Hugging Face team. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright [yyyy] [name of copyright owner]
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
pluvium-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pluvium
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Hour-by-hour rain forecasts for every Caribbean town: when rain starts, how long it lasts, how much falls and why, on the NatureV1 / iHELIX engine
|
|
5
|
+
Project-URL: Source, https://github.com/Wisk-inc/transformers/tree/main/pluvium
|
|
6
|
+
Author: Nathan
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: caribbean,forecasting,geometric-deep-learning,hidden-markov-model,nowcasting,orographic-precipitation,precipitation,probabilistic-forecasting,pytorch,rain,weather
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: eccodes>=2.37
|
|
18
|
+
Requires-Dist: h5py>=3.8
|
|
19
|
+
Requires-Dist: huggingface-hub>=0.20
|
|
20
|
+
Requires-Dist: ihelix>=0.6.0
|
|
21
|
+
Requires-Dist: naturev1>=0.19.0
|
|
22
|
+
Requires-Dist: numcodecs>=0.12
|
|
23
|
+
Requires-Dist: numpy>=1.24
|
|
24
|
+
Requires-Dist: scipy>=1.10
|
|
25
|
+
Requires-Dist: torch>=2.5
|
|
26
|
+
Requires-Dist: tzdata>=2024.1
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest>=7; extra == 'dev'
|
|
29
|
+
Requires-Dist: ruff>=0.4; extra == 'dev'
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# Pluvium
|
|
33
|
+
|
|
34
|
+
Hour-by-hour rain forecasts for every town and village in the Caribbean, three days ahead. For each place Pluvium
|
|
35
|
+
answers the questions people actually ask:
|
|
36
|
+
|
|
37
|
+
* will it rain, hour by hour, and is that drizzle, showers, steady rain, heavy rain or a thunderstorm?
|
|
38
|
+
* when will it most likely start, in local time and with a window, and when will it be heaviest?
|
|
39
|
+
* how long will it last, and how much will fall (median and a bad case)?
|
|
40
|
+
* is lightning active nearby right now, and could it flood?
|
|
41
|
+
|
|
42
|
+
Pluvium runs on the NatureV1 / iHELIX engine (geometric attention on the sphere). **Pluvium-500** is the full-size
|
|
43
|
+
model: 57.9M parameters ("500" is its name, not its parameter count). It is trained on one GPU by a single resumable
|
|
44
|
+
program.
|
|
45
|
+
|
|
46
|
+
> Research model, not an official forecast. Follow your national meteorological service.
|
|
47
|
+
|
|
48
|
+
## Install
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install pluvium
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Use a trained model
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pluvium forecast --country JM # every place; tables in ./pluvium-forecast, a report on screen
|
|
58
|
+
pluvium place "Port Antonio" --country JM # hour by hour for one place
|
|
59
|
+
pluvium learn # check past forecasts against airport reports; update the corrections
|
|
60
|
+
pluvium info # what the published model is and how it scored
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`pluvium forecast` writes:
|
|
64
|
+
|
|
65
|
+
| File | Contents |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `towns.csv` | One row per place: chance of rain now and in 6/12/24/48/72 h, heavy rain, thunder, main weather, likely start and window (local time), heaviest hour, 24 h totals (median, 90th percentile, chance of 10/25/50/100 mm), wettest 3 h, rain over the river catchment, flood risk and reason, lightning now, cause, and a one-sentence summary |
|
|
68
|
+
| `parishes.csv` | One row per parish or province, with a headline |
|
|
69
|
+
| `towns.geojson` | The same as points, for maps |
|
|
70
|
+
| `hourly.npz` | Hourly chance of rain, of each intensity and of thunder, and expected rain, per place |
|
|
71
|
+
| `forecast.json`, `report.txt` | Metadata and a readable digest |
|
|
72
|
+
|
|
73
|
+
From Python:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from pluvium.cli import fetch_model
|
|
77
|
+
from pluvium.forecast import Forecaster, place_timeline
|
|
78
|
+
|
|
79
|
+
fc = Forecaster(fetch_model("CorxLabs/Pluvium-500"))
|
|
80
|
+
result = fc.run(out_dir="forecast")
|
|
81
|
+
print(place_timeline(fc.towns, result["summary"], "Mandeville", country="JM", hours=24))
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Train Pluvium-500 on one GPU
|
|
85
|
+
|
|
86
|
+
`notebooks/rtx6000_pluvium.py` is one copy-paste cell for an NVIDIA RTX PRO 6000 Blackwell (96 GB). Set
|
|
87
|
+
`GPU_HOURS` and a Hub token and run it. The program then:
|
|
88
|
+
|
|
89
|
+
1. builds the Caribbean geography and the town list;
|
|
90
|
+
2. stages ERA5, CMORPH and airport reports;
|
|
91
|
+
3. computes the climatology;
|
|
92
|
+
4. trains stage A on reanalysis;
|
|
93
|
+
5. trains stage B on real GFS runs, fetched in the background;
|
|
94
|
+
6. calibrates and scores on a held-out year;
|
|
95
|
+
7. publishes to the Hub;
|
|
96
|
+
8. makes the live forecast.
|
|
97
|
+
|
|
98
|
+
Everything expensive is mirrored to the Hub, so re-running the cell continues where the last session stopped.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
GPU_HOURS=24 HF_TOKEN=... HF_REPO=you/Pluvium-500 pluvium program
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## How it works
|
|
105
|
+
|
|
106
|
+
The full explanation is in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), every module's purpose is in
|
|
107
|
+
[docs/MODULES.md](docs/MODULES.md), and what can go wrong in operation (and what Pluvium does about it) is in
|
|
108
|
+
[docs/FAILURE_MODES.md](docs/FAILURE_MODES.md). In short:
|
|
109
|
+
|
|
110
|
+
* **Inputs**:
|
|
111
|
+
* the global models' fields: GFS, ECMWF IFS and AIFS live, ERA5 in training;
|
|
112
|
+
* convective indices (K-index, lifted index, mid-level humidity, shear, upper divergence);
|
|
113
|
+
* rain falling now, from the satellite;
|
|
114
|
+
* the last three hours of airport reports;
|
|
115
|
+
* terrain, coasts, sun and season.
|
|
116
|
+
* **Engine**: iHELIX blocks on a Caribbean mesh of 6,075 points (about 11 km over land). Each block combines
|
|
117
|
+
geodesic attention with per-head radii from 15 to 500 km, content-addressed index attention, and a recurrence
|
|
118
|
+
along the forecast's 43 frames.
|
|
119
|
+
* **Physics in the loop**:
|
|
120
|
+
* mountain rain (Smith–Barstad linear theory, re-solved every hour with learned parameters);
|
|
121
|
+
* sea-breeze convergence over each island;
|
|
122
|
+
* fronts and shear lines with arrival times;
|
|
123
|
+
* the rain falling now, advected along the steering wind for the first 12 hours.
|
|
124
|
+
* **Outputs**: per town and hour, an *intensity chain* (dry, light, moderate, heavy) gives every timing and amount
|
|
125
|
+
answer consistently. Heads for thunder, drizzle/rain/showers and the cause complete it.
|
|
126
|
+
* **Training** scores the satellite's and the airports' reports through each instrument's learned confusion
|
|
127
|
+
matrix (a differentiable hidden Markov model), so neither instrument's errors are taught as truth.
|
|
128
|
+
* **Live**: one run per driving model, mixed. Calibrated on held-out data. Corrected online from what the
|
|
129
|
+
airports report afterwards.
|
|
130
|
+
* **Version 3 depth**, in its own subpackages:
|
|
131
|
+
* `atmos/`: CAPE/CIN, column humidity, Saharan air, tropical waves, cyclone rain, sea breezes, diurnal clocks,
|
|
132
|
+
terrain lift;
|
|
133
|
+
* `engine/`: terrain patches, lead modulation, temporal and neighbour attention, experts, uncertainty heads;
|
|
134
|
+
* `training/`: rare-event curriculum, averaged weights, augmentation, distillation;
|
|
135
|
+
* `prob/`: copulas, conformal intervals, extreme-value tails, scores;
|
|
136
|
+
* `guard/`: input repair, freshness, drift, output repair, fallback;
|
|
137
|
+
* `hydro/`: soil wetness, runoff, flood peak timing;
|
|
138
|
+
* `insight/`: attribution, error analysis, case replays;
|
|
139
|
+
* `render/`: maps, bulletins, CAP alerts;
|
|
140
|
+
* `ops/`: hourly service and JSON API.
|
|
141
|
+
|
|
142
|
+
## Benchmarks
|
|
143
|
+
|
|
144
|
+
**Against the operational systems**: see [docs/OPERATIONAL_BENCHMARK.md](docs/OPERATIONAL_BENCHMARK.md).
|
|
145
|
+
`pluvium operational` scores Pluvium against ECMWF ENS, ECMWF HRES, ECMWF AIFS, NOAA GEFS, NOAA GraphCast and
|
|
146
|
+
NOAA GFS. It uses real archived runs only, with no reanalysis anywhere, and calibrates every system the same causal
|
|
147
|
+
way.
|
|
148
|
+
|
|
149
|
+
Not golden tier yet. Results on Jamaica's 450 land cells, with Pluvium at its small size (0.9M parameters,
|
|
150
|
+
about two hours of CPU training) and driven only by GFS:
|
|
151
|
+
|
|
152
|
+
* **July and August 2025** (protocol frozen before the data were downloaded): Pluvium had the highest skill for rain
|
|
153
|
+
of at least 1 mm on days 1 and 2. That is +0.127 and +0.118 against +0.087 and +0.091 for the best operational
|
|
154
|
+
system. With 95% confidence it beat ECMWF ENS, ECMWF HRES, AIFS and GraphCast; against GEFS and GFS the lead is not
|
|
155
|
+
yet significant. It tied at 10 mm. Its CRPS on daily totals was 40-50% smaller than ECMWF ENS's and GEFS's.
|
|
156
|
+
* **May and June 2025** (the first test): Pluvium lost after calibration. Its calibration windows held an unusually
|
|
157
|
+
wet April it had never trained on.
|
|
158
|
+
* At 25 and 50 mm no system, ECMWF's included, did meaningfully better than a forecast that never says rain.
|
|
159
|
+
|
|
160
|
+
**Between versions**: see [docs/BENCHMARK.md](docs/BENCHMARK.md). `pluvium bench` trains each version from
|
|
161
|
+
scratch on the same data with the same time budget. Version 3 nearly doubles the skill of 24-hour totals over
|
|
162
|
+
version 2 (CRPS skill +44.6% against +23.8%, with emulated forecast errors). It also has the best hourly skill and
|
|
163
|
+
critical success index. Heavy-rain hours and thunder are its weak spots.
|
|
164
|
+
|
|
165
|
+
## Data and attribution
|
|
166
|
+
|
|
167
|
+
ERA5 (Copernicus Climate Change Service), CMORPH CDR and ISD (NOAA NCEI), GFS and GEFS (NOAA NCEP), NOAA's
|
|
168
|
+
real-time GraphCast, ECMWF open data: IFS, ENS and AIFS (CC-BY-4.0), GOES-East imagery and lightning (NOAA), METAR (NOAA Aviation Weather Center), GeoNames (CC-BY-4.0),
|
|
169
|
+
geoBoundaries (CC-BY-4.0), Terrarium elevation tiles (Mapzen and its sources).
|
|
170
|
+
|
|
171
|
+
Code: Apache-2.0, CorX Labs.
|