swecast 0.1.0__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.
- swecast/__init__.py +73 -0
- swecast/models.py +1541 -0
- swecast/nsidc.py +490 -0
- swecast/predict.py +297 -0
- swecast/preflight.py +139 -0
- swecast/prism.py +375 -0
- swecast/stations.py +177 -0
- swecast-0.1.0.dist-info/METADATA +210 -0
- swecast-0.1.0.dist-info/RECORD +11 -0
- swecast-0.1.0.dist-info/WHEEL +4 -0
- swecast-0.1.0.dist-info/licenses/COPYING +674 -0
swecast/__init__.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from .prism import Manifest, build_stacks, build_npy_stacks, read_bil_file
|
|
2
|
+
from .nsidc import (
|
|
3
|
+
build_swe_stacks,
|
|
4
|
+
build_npy_swe_stacks,
|
|
5
|
+
fill_stacks,
|
|
6
|
+
fill_npy,
|
|
7
|
+
filled_data,
|
|
8
|
+
)
|
|
9
|
+
from .preflight import (
|
|
10
|
+
preflight,
|
|
11
|
+
preflight_prism,
|
|
12
|
+
preflight_nsidc,
|
|
13
|
+
preflight_models,
|
|
14
|
+
)
|
|
15
|
+
from .stations import (
|
|
16
|
+
fetch_stations,
|
|
17
|
+
stations_to_csv,
|
|
18
|
+
get_stations,
|
|
19
|
+
identify_station_cells,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def __getattr__(name):
|
|
24
|
+
"""
|
|
25
|
+
Lazy-import TF-dependent functions so importing swecast does not pull in TensorFlow.
|
|
26
|
+
"""
|
|
27
|
+
_models_exports = {
|
|
28
|
+
"prepare_training_inputs",
|
|
29
|
+
"train_swe",
|
|
30
|
+
"train_swe_pcp",
|
|
31
|
+
"train_swe_tmp",
|
|
32
|
+
"train_swe_tmp_pcp",
|
|
33
|
+
"train_tmp_pcp",
|
|
34
|
+
"optimize_hyperparameters",
|
|
35
|
+
}
|
|
36
|
+
if name in _models_exports:
|
|
37
|
+
from . import models
|
|
38
|
+
|
|
39
|
+
return getattr(models, name)
|
|
40
|
+
if name == "predict":
|
|
41
|
+
from . import predict as _predict_mod
|
|
42
|
+
|
|
43
|
+
return _predict_mod.predict
|
|
44
|
+
raise AttributeError(f"module 'swecast' has no attribute {name!r}")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
__all__ = [
|
|
48
|
+
"Manifest",
|
|
49
|
+
"build_stacks",
|
|
50
|
+
"build_npy_stacks",
|
|
51
|
+
"read_bil_file",
|
|
52
|
+
"build_swe_stacks",
|
|
53
|
+
"build_npy_swe_stacks",
|
|
54
|
+
"fill_stacks",
|
|
55
|
+
"fill_npy",
|
|
56
|
+
"filled_data",
|
|
57
|
+
"preflight",
|
|
58
|
+
"preflight_prism",
|
|
59
|
+
"preflight_nsidc",
|
|
60
|
+
"preflight_models",
|
|
61
|
+
"fetch_stations",
|
|
62
|
+
"stations_to_csv",
|
|
63
|
+
"get_stations",
|
|
64
|
+
"identify_station_cells",
|
|
65
|
+
"prepare_training_inputs",
|
|
66
|
+
"train_swe",
|
|
67
|
+
"train_swe_pcp",
|
|
68
|
+
"train_swe_tmp",
|
|
69
|
+
"train_swe_tmp_pcp",
|
|
70
|
+
"train_tmp_pcp",
|
|
71
|
+
"optimize_hyperparameters",
|
|
72
|
+
"predict",
|
|
73
|
+
]
|