canvod-config 1.0.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.
Files changed (30) hide show
  1. canvod_config-1.0.0/LICENSE +203 -0
  2. canvod_config-1.0.0/NOTICE +11 -0
  3. canvod_config-1.0.0/PKG-INFO +90 -0
  4. canvod_config-1.0.0/README.md +58 -0
  5. canvod_config-1.0.0/pyproject.toml +61 -0
  6. canvod_config-1.0.0/pyproject.toml.orig +57 -0
  7. canvod_config-1.0.0/src/canvod/config/__init__.py +36 -0
  8. canvod_config-1.0.0/src/canvod/config/defaults/processing.yaml +66 -0
  9. canvod_config-1.0.0/src/canvod/config/defaults/sids.yaml +5 -0
  10. canvod_config-1.0.0/src/canvod/config/defaults/sites.yaml +7 -0
  11. canvod_config-1.0.0/src/canvod/config/loader.py +407 -0
  12. canvod_config-1.0.0/src/canvod/config/models/__init__.py +106 -0
  13. canvod_config-1.0.0/src/canvod/config/models/aux_data.py +90 -0
  14. canvod_config-1.0.0/src/canvod/config/models/base.py +49 -0
  15. canvod_config-1.0.0/src/canvod/config/models/compression.py +225 -0
  16. canvod_config-1.0.0/src/canvod/config/models/logging.py +118 -0
  17. canvod_config-1.0.0/src/canvod/config/models/metadata.py +177 -0
  18. canvod_config-1.0.0/src/canvod/config/models/preprocessing.py +306 -0
  19. canvod_config-1.0.0/src/canvod/config/models/processing.py +83 -0
  20. canvod_config-1.0.0/src/canvod/config/models/processing_params.py +268 -0
  21. canvod_config-1.0.0/src/canvod/config/models/references.py +49 -0
  22. canvod_config-1.0.0/src/canvod/config/models/root.py +81 -0
  23. canvod_config-1.0.0/src/canvod/config/models/sids.py +86 -0
  24. canvod_config-1.0.0/src/canvod/config/models/sites.py +498 -0
  25. canvod_config-1.0.0/src/canvod/config/models/storage.py +348 -0
  26. canvod_config-1.0.0/src/canvod/config/presets/default.yaml +411 -0
  27. canvod_config-1.0.0/src/canvod/config/remote.py +201 -0
  28. canvod_config-1.0.0/src/canvod/config/settings_help.py +337 -0
  29. canvod_config-1.0.0/src/canvod/config/store_names.py +145 -0
  30. canvod_config-1.0.0/src/canvod/config/templates/canvod-settings.yaml.example +437 -0
@@ -0,0 +1,203 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Nicolas François Bader
190
+ Climate and Environmental Remote Sensing Research Unit (CLIMERS)
191
+ Department of Geodesy and Geoinformation, TU Wien
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.
@@ -0,0 +1,11 @@
1
+ canVODpy
2
+ Copyright 2026 Nicolas François Bader, TU Wien
3
+
4
+ This product includes software developed at the
5
+ Climate and Environmental Remote Sensing Research Unit (CLIMERS),
6
+ Department of Geodesy and Geoinformation, TU Wien.
7
+
8
+ This product includes contributions from the canVODpy community.
9
+ Individual contributors are listed in the CONTRIBUTORS.md file and
10
+ recorded in the Git revision history of the repository:
11
+ https://github.com/TUW-GEO/canvodpy
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: canvod-config
3
+ Version: 1.0.0
4
+ Summary: The canVODpy settings file: models, loading, and checks
5
+ Keywords: GNSS,VOD,configuration,settings,YAML,pydantic,remote sensing
6
+ Author: Nicolas François Bader
7
+ Author-email: Nicolas François Bader <support@canvodpy.eu>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ License-File: NOTICE
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Scientific/Engineering
18
+ Requires-Dist: pydantic>=2.0
19
+ Requires-Dist: pydantic-settings>=2.0
20
+ Requires-Dist: pyyaml>=6.0
21
+ Requires-Dist: email-validator>=2.0
22
+ Requires-Dist: psutil>=7.2.2
23
+ Requires-Dist: canvod-utils>=1.0.0,<2
24
+ Maintainer: Climate and Environmental Remote Sensing (CLIMERS)
25
+ Maintainer-email: Climate and Environmental Remote Sensing (CLIMERS) <support@canvodpy.eu>
26
+ Requires-Python: >=3.14
27
+ Project-URL: Homepage, https://github.com/TUW-GEO/canvodpy
28
+ Project-URL: Documentation, https://canvodpy.eu/packages/config/overview/
29
+ Project-URL: Repository, https://github.com/TUW-GEO/canvodpy
30
+ Project-URL: Issues, https://github.com/TUW-GEO/canvodpy/issues
31
+ Description-Content-Type: text/markdown
32
+
33
+ <p align="center">
34
+ <picture>
35
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/TUW-GEO/canvodpy/main/docs/assets/logo/canvodpy_logo_dark_mode.svg">
36
+ <img alt="canVODpy" src="https://raw.githubusercontent.com/TUW-GEO/canvodpy/main/docs/assets/logo/canvodpy_logo_bright_mode.svg" width="260">
37
+ </picture>
38
+ </p>
39
+
40
+ # canvod-config
41
+
42
+ [![PyPI](https://img.shields.io/pypi/v/canvod-config.svg)](https://pypi.org/project/canvod-config/)
43
+ [![Python](https://img.shields.io/badge/python-3.14-blue.svg)](https://www.python.org/)
44
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/TUW-GEO/canvodpy/blob/main/LICENSE)
45
+ [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.18496233-blue)](https://doi.org/10.5281/zenodo.18496233)
46
+
47
+ **The canVODpy settings file: models, loading, and checks.** `canvod-config` is a package of
48
+ [canVODpy](https://canvodpy.eu/), an open Python ecosystem for
49
+ GNSS-Transmissometry canopy VOD retrievals.
50
+
51
+ ## What it does
52
+
53
+ - Reads `canvod-settings.yaml` and checks it with Pydantic models.
54
+ - Gives every other canVODpy package its settings.
55
+ - `canvodpy config init`, `validate` and `explain` on the command line use it.
56
+
57
+ ## Install
58
+
59
+ ```bash
60
+ uv add canvod-config
61
+ ```
62
+
63
+ Most users install [canvodpy](https://pypi.org/project/canvodpy/), which
64
+ includes this package, the command line, and the processing pipeline.
65
+ canVODpy requires Python 3.14.
66
+
67
+ ## Example
68
+
69
+ ```python
70
+ from canvod.config import load_config
71
+
72
+ config = load_config() # finds canvod-settings.yaml as the command line does
73
+ print(config.processing.storage.stores_root_dir)
74
+ ```
75
+
76
+ ## Documentation
77
+
78
+ - [canvod-config in the canVODpy documentation](https://canvodpy.eu/packages/config/overview/)
79
+ - [Start here](https://canvodpy.eu/users/): from installation to the first VOD
80
+
81
+ ## How to cite
82
+
83
+ If you use canVODpy, please cite it with its DOI,
84
+ [`10.5281/zenodo.18496233`](https://doi.org/10.5281/zenodo.18496233), which always leads to the newest
85
+ version. [CITATION.cff](https://github.com/TUW-GEO/canvodpy/blob/main/CITATION.cff) has the full
86
+ citation.
87
+
88
+ ## License
89
+
90
+ [Apache License 2.0](https://github.com/TUW-GEO/canvodpy/blob/main/LICENSE)
@@ -0,0 +1,58 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/TUW-GEO/canvodpy/main/docs/assets/logo/canvodpy_logo_dark_mode.svg">
4
+ <img alt="canVODpy" src="https://raw.githubusercontent.com/TUW-GEO/canvodpy/main/docs/assets/logo/canvodpy_logo_bright_mode.svg" width="260">
5
+ </picture>
6
+ </p>
7
+
8
+ # canvod-config
9
+
10
+ [![PyPI](https://img.shields.io/pypi/v/canvod-config.svg)](https://pypi.org/project/canvod-config/)
11
+ [![Python](https://img.shields.io/badge/python-3.14-blue.svg)](https://www.python.org/)
12
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/TUW-GEO/canvodpy/blob/main/LICENSE)
13
+ [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.18496233-blue)](https://doi.org/10.5281/zenodo.18496233)
14
+
15
+ **The canVODpy settings file: models, loading, and checks.** `canvod-config` is a package of
16
+ [canVODpy](https://canvodpy.eu/), an open Python ecosystem for
17
+ GNSS-Transmissometry canopy VOD retrievals.
18
+
19
+ ## What it does
20
+
21
+ - Reads `canvod-settings.yaml` and checks it with Pydantic models.
22
+ - Gives every other canVODpy package its settings.
23
+ - `canvodpy config init`, `validate` and `explain` on the command line use it.
24
+
25
+ ## Install
26
+
27
+ ```bash
28
+ uv add canvod-config
29
+ ```
30
+
31
+ Most users install [canvodpy](https://pypi.org/project/canvodpy/), which
32
+ includes this package, the command line, and the processing pipeline.
33
+ canVODpy requires Python 3.14.
34
+
35
+ ## Example
36
+
37
+ ```python
38
+ from canvod.config import load_config
39
+
40
+ config = load_config() # finds canvod-settings.yaml as the command line does
41
+ print(config.processing.storage.stores_root_dir)
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ - [canvod-config in the canVODpy documentation](https://canvodpy.eu/packages/config/overview/)
47
+ - [Start here](https://canvodpy.eu/users/): from installation to the first VOD
48
+
49
+ ## How to cite
50
+
51
+ If you use canVODpy, please cite it with its DOI,
52
+ [`10.5281/zenodo.18496233`](https://doi.org/10.5281/zenodo.18496233), which always leads to the newest
53
+ version. [CITATION.cff](https://github.com/TUW-GEO/canvodpy/blob/main/CITATION.cff) has the full
54
+ citation.
55
+
56
+ ## License
57
+
58
+ [Apache License 2.0](https://github.com/TUW-GEO/canvodpy/blob/main/LICENSE)
@@ -0,0 +1,61 @@
1
+ [project]
2
+ name = "canvod-config"
3
+ version = "1.0.0"
4
+ description = "The canVODpy settings file: models, loading, and checks"
5
+ readme = "README.md"
6
+ requires-python = ">=3.14"
7
+ license = "Apache-2.0"
8
+ license-files = [
9
+ "LICENSE",
10
+ "NOTICE",
11
+ ]
12
+ keywords = [
13
+ "GNSS",
14
+ "VOD",
15
+ "configuration",
16
+ "settings",
17
+ "YAML",
18
+ "pydantic",
19
+ "remote sensing",
20
+ ]
21
+ classifiers = [
22
+ "Development Status :: 5 - Production/Stable",
23
+ "Intended Audience :: Science/Research",
24
+ "Operating System :: OS Independent",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3 :: Only",
27
+ "Programming Language :: Python :: 3.14",
28
+ "Topic :: Scientific/Engineering",
29
+ ]
30
+ dependencies = [
31
+ "pydantic>=2.0",
32
+ "pydantic-settings>=2.0",
33
+ "pyyaml>=6.0",
34
+ "email-validator>=2.0",
35
+ "psutil>=7.2.2",
36
+ "canvod-utils>=1.0.0,<2",
37
+ ]
38
+
39
+ [[project.authors]]
40
+ name = "Nicolas François Bader"
41
+ email = "support@canvodpy.eu"
42
+
43
+ [[project.maintainers]]
44
+ name = "Climate and Environmental Remote Sensing (CLIMERS)"
45
+ email = "support@canvodpy.eu"
46
+
47
+ [project.urls]
48
+ Homepage = "https://github.com/TUW-GEO/canvodpy"
49
+ Documentation = "https://canvodpy.eu/packages/config/overview/"
50
+ Repository = "https://github.com/TUW-GEO/canvodpy"
51
+ Issues = "https://github.com/TUW-GEO/canvodpy/issues"
52
+
53
+ [build-system]
54
+ requires = ["uv_build>=0.13.4,<0.14.0"]
55
+ build-backend = "uv_build"
56
+
57
+ [tool.uv.sources.canvod-utils]
58
+ workspace = true
59
+
60
+ [tool.uv.build-backend]
61
+ module-name = "canvod.config"
@@ -0,0 +1,57 @@
1
+ [project]
2
+ name = "canvod-config"
3
+ version = "1.0.0"
4
+ description = "The canVODpy settings file: models, loading, and checks"
5
+ readme = "README.md"
6
+ requires-python = ">=3.14"
7
+ authors = [
8
+ {name = "Nicolas François Bader", email = "support@canvodpy.eu"},
9
+ ]
10
+ maintainers = [
11
+ {name = "Climate and Environmental Remote Sensing (CLIMERS)", email = "support@canvodpy.eu"},
12
+ ]
13
+ license = "Apache-2.0"
14
+ license-files = ["LICENSE", "NOTICE"]
15
+ keywords = [
16
+ "GNSS",
17
+ "VOD",
18
+ "configuration",
19
+ "settings",
20
+ "YAML",
21
+ "pydantic",
22
+ "remote sensing",
23
+ ]
24
+ classifiers = [
25
+ "Development Status :: 5 - Production/Stable",
26
+ "Intended Audience :: Science/Research",
27
+ "Operating System :: OS Independent",
28
+ "Programming Language :: Python :: 3",
29
+ "Programming Language :: Python :: 3 :: Only",
30
+ "Programming Language :: Python :: 3.14",
31
+ "Topic :: Scientific/Engineering",
32
+ ]
33
+
34
+ dependencies = [
35
+ "pydantic>=2.0",
36
+ "pydantic-settings>=2.0",
37
+ "pyyaml>=6.0",
38
+ "email-validator>=2.0",
39
+ "psutil>=7.2.2",
40
+ "canvod-utils>=1.0.0,<2",
41
+ ]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/TUW-GEO/canvodpy"
45
+ Documentation = "https://canvodpy.eu/packages/config/overview/"
46
+ Repository = "https://github.com/TUW-GEO/canvodpy"
47
+ Issues = "https://github.com/TUW-GEO/canvodpy/issues"
48
+
49
+ [build-system]
50
+ requires = ["uv_build>=0.13.4,<0.14.0"]
51
+ build-backend = "uv_build"
52
+
53
+ [tool.uv.sources]
54
+ canvod-utils = { workspace = true }
55
+
56
+ [tool.uv.build-backend]
57
+ module-name = "canvod.config"
@@ -0,0 +1,36 @@
1
+ """
2
+ Configuration management for canvodpy.
3
+
4
+ This package provides:
5
+ - Pydantic models for type-safe configuration
6
+ - YAML-based configuration loading
7
+ - CLI for configuration management
8
+ - Validation and error reporting
9
+
10
+ Examples
11
+ --------
12
+ >>> from canvod.config import load_config
13
+ >>> config = load_config()
14
+ >>> print(config.nasa_earthdata_acc_mail)
15
+ >>> print(config.processing.aux_data.agency)
16
+ """
17
+
18
+ from .loader import load_config
19
+ from .models import (
20
+ CanvodConfig,
21
+ MetadataConfig,
22
+ ProcessingConfig,
23
+ SidsConfig,
24
+ SiteConfig,
25
+ SitesConfig,
26
+ )
27
+
28
+ __all__ = [
29
+ "CanvodConfig",
30
+ "MetadataConfig",
31
+ "ProcessingConfig",
32
+ "SidsConfig",
33
+ "SiteConfig",
34
+ "SitesConfig",
35
+ "load_config",
36
+ ]
@@ -0,0 +1,66 @@
1
+ # ============================================================================
2
+ # Default Processing Configuration
3
+ # ============================================================================
4
+ # These are package defaults. The processing: section of the user's
5
+ # config/canvod-settings.yaml (created by: just config-init) overrides them.
6
+
7
+ metadata:
8
+ author: Unknown
9
+ email: user@example.com
10
+ institution: Unknown Institution
11
+
12
+ credentials:
13
+ nasa_earthdata_acc_mail: null # Prefer: set CANVOD__PROCESSING__CREDENTIALS__NASA_EARTHDATA_ACC_MAIL in config/.env
14
+
15
+ aux_data:
16
+ agency: COD
17
+ product_type: final
18
+
19
+ params:
20
+ keep_gnss_observables:
21
+ - SNR
22
+ rinex_v3_parser: validated # 'unvalidated_fast' is DANGEROUS: no checks, results are the user's responsibility
23
+ aggregate_glonass_fdma: true
24
+ store_radial_distance: false
25
+ store_delta_snr: false
26
+ store_radial_diff: false
27
+ receiver_position_mode: shared
28
+ ephemeris_source: final # 'final' (SP3/CLK) or 'broadcast' (SBF SatVisibility)
29
+ resource_mode: auto
30
+ # n_max_threads, cpu_affinity, nice_priority
31
+ # are only used when resource_mode: manual
32
+
33
+ netcdf_compression:
34
+ zlib: true
35
+ complevel: 5
36
+
37
+ icechunk:
38
+ compression_level: 3
39
+ compression_algorithm: zstd
40
+ inline_chunk_threshold_bytes: 512
41
+ get_partial_values_concurrency: 1
42
+ # max_concurrent_requests: null # icechunk default
43
+ # cache_num_chunk_refs: null # icechunk default
44
+ # cache_num_bytes_chunks: null # icechunk default
45
+ chunk_strategies:
46
+ gnss_store:
47
+ epoch: 180 # one 15-min file at 5 s sampling; set to the epochs per file
48
+ sid: -1
49
+ vod_store:
50
+ epoch: 180 # as gnss_store, so every cadence of a GNSS day fits
51
+ sid: -1
52
+ manifest_preload_enabled: false
53
+ manifest_preload_max_refs: 10000
54
+ manifest_preload_max_arrays_to_scan: 500
55
+ manifest_preload_pattern: "^(epoch|sid)$"
56
+ manifest_splitting_enabled: true
57
+ manifest_splitting_epoch_range: 17280 # epoch chunks per manifest, not epochs
58
+
59
+ storage:
60
+ stores_root_dir: /path/to/stores # MUST be set by user!
61
+ gnss_store_strategy: skip
62
+
63
+ logging:
64
+ log_dir: null # required for a processing run; set in canvod-settings.yaml
65
+ worker_log_retention_days: 30
66
+ log_path_depth: 6
@@ -0,0 +1,5 @@
1
+ # Default SID configuration: curated multi-GNSS preset (271 SIDs)
2
+ # Override in the sids: section of config/canvod-settings.yaml. Use mode: all to keep every observed SID.
3
+
4
+ mode: preset
5
+ preset: default
@@ -0,0 +1,7 @@
1
+ # ============================================================================
2
+ # Default Sites Configuration
3
+ # ============================================================================
4
+ # This is a package default - users MUST define their sites in the sites:
5
+ # section of config/canvod-settings.yaml. Run: just config-init
6
+
7
+ sites: {}