sopran 0.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.
- sopran-0.0.0/.gitignore +22 -0
- sopran-0.0.0/AGENTS.md +92 -0
- sopran-0.0.0/LICENSE +201 -0
- sopran-0.0.0/NOTICE +9 -0
- sopran-0.0.0/PIPELINE.md +74 -0
- sopran-0.0.0/PKG-INFO +582 -0
- sopran-0.0.0/PLOTTING.md +50 -0
- sopran-0.0.0/README.md +251 -0
- sopran-0.0.0/SPEC.md +2405 -0
- sopran-0.0.0/STORE.md +60 -0
- sopran-0.0.0/SURFACE.md +44 -0
- sopran-0.0.0/THIRD_PARTY_NOTICES.md +41 -0
- sopran-0.0.0/docs/assets/stylesheets/sopran.css +74 -0
- sopran-0.0.0/docs/concepts/maps.md +46 -0
- sopran-0.0.0/docs/concepts/object-api.md +57 -0
- sopran-0.0.0/docs/concepts/pipeline.md +57 -0
- sopran-0.0.0/docs/concepts/plotting.md +48 -0
- sopran-0.0.0/docs/concepts/products-schemas.md +37 -0
- sopran-0.0.0/docs/concepts/project-case.md +53 -0
- sopran-0.0.0/docs/concepts/store.md +75 -0
- sopran-0.0.0/docs/concepts/time-units-frames.md +70 -0
- sopran-0.0.0/docs/en/concepts/maps.md +24 -0
- sopran-0.0.0/docs/en/concepts/object-api.md +44 -0
- sopran-0.0.0/docs/en/concepts/pipeline.md +50 -0
- sopran-0.0.0/docs/en/concepts/plotting.md +37 -0
- sopran-0.0.0/docs/en/concepts/products-schemas.md +29 -0
- sopran-0.0.0/docs/en/concepts/project-case.md +40 -0
- sopran-0.0.0/docs/en/concepts/store.md +62 -0
- sopran-0.0.0/docs/en/concepts/time-units-frames.md +52 -0
- sopran-0.0.0/docs/en/getting-started/data-store.md +63 -0
- sopran-0.0.0/docs/en/getting-started/first-analysis.md +52 -0
- sopran-0.0.0/docs/en/getting-started/installation.md +40 -0
- sopran-0.0.0/docs/en/how-to/load-kaguya-esa1.md +45 -0
- sopran-0.0.0/docs/en/how-to/moon-maps.md +44 -0
- sopran-0.0.0/docs/en/how-to/pipeline-plan.md +49 -0
- sopran-0.0.0/docs/en/how-to/plotstack.md +49 -0
- sopran-0.0.0/docs/en/how-to/write-normalized-parquet.md +48 -0
- sopran-0.0.0/docs/en/index.md +48 -0
- sopran-0.0.0/docs/en/maps/moon.md +41 -0
- sopran-0.0.0/docs/en/missions/artemis/index.md +40 -0
- sopran-0.0.0/docs/en/missions/index.md +26 -0
- sopran-0.0.0/docs/en/missions/kaguya/esa1.md +46 -0
- sopran-0.0.0/docs/en/missions/kaguya/index.md +41 -0
- sopran-0.0.0/docs/en/reference/api.md +23 -0
- sopran-0.0.0/docs/en/reference/configuration.md +48 -0
- sopran-0.0.0/docs/en/reference/design-notes.md +13 -0
- sopran-0.0.0/docs/en/reference/license.md +13 -0
- sopran-0.0.0/docs/en/reference/pipeline-rules.md +40 -0
- sopran-0.0.0/docs/en/reference/release.md +70 -0
- sopran-0.0.0/docs/en/reference/schemas.md +41 -0
- sopran-0.0.0/docs/en/reference/status.md +26 -0
- sopran-0.0.0/docs/en/reference/store-layout.md +51 -0
- sopran-0.0.0/docs/getting-started/data-store.md +67 -0
- sopran-0.0.0/docs/getting-started/first-analysis.md +52 -0
- sopran-0.0.0/docs/getting-started/installation.md +40 -0
- sopran-0.0.0/docs/how-to/load-kaguya-esa1.md +46 -0
- sopran-0.0.0/docs/how-to/moon-maps.md +52 -0
- sopran-0.0.0/docs/how-to/pipeline-plan.md +52 -0
- sopran-0.0.0/docs/how-to/plotstack.md +49 -0
- sopran-0.0.0/docs/how-to/write-normalized-parquet.md +48 -0
- sopran-0.0.0/docs/index.md +48 -0
- sopran-0.0.0/docs/maps/moon.md +58 -0
- sopran-0.0.0/docs/missions/artemis/index.md +40 -0
- sopran-0.0.0/docs/missions/index.md +26 -0
- sopran-0.0.0/docs/missions/kaguya/esa1.md +46 -0
- sopran-0.0.0/docs/missions/kaguya/index.md +43 -0
- sopran-0.0.0/docs/overrides/partials/alternate.html +27 -0
- sopran-0.0.0/docs/reference/api.md +58 -0
- sopran-0.0.0/docs/reference/configuration.md +49 -0
- sopran-0.0.0/docs/reference/design-notes.md +15 -0
- sopran-0.0.0/docs/reference/license.md +17 -0
- sopran-0.0.0/docs/reference/pipeline-rules.md +40 -0
- sopran-0.0.0/docs/reference/release.md +66 -0
- sopran-0.0.0/docs/reference/schemas.md +41 -0
- sopran-0.0.0/docs/reference/status.md +108 -0
- sopran-0.0.0/docs/reference/store-layout.md +50 -0
- sopran-0.0.0/mkdocs.yml +97 -0
- sopran-0.0.0/pyproject.toml +202 -0
- sopran-0.0.0/src/sopran/__init__.py +86 -0
- sopran-0.0.0/src/sopran/bodies/__init__.py +3 -0
- sopran-0.0.0/src/sopran/bodies/moon.py +618 -0
- sopran-0.0.0/src/sopran/core/__init__.py +88 -0
- sopran-0.0.0/src/sopran/core/alignment.py +922 -0
- sopran-0.0.0/src/sopran/core/data.py +339 -0
- sopran-0.0.0/src/sopran/core/database.py +189 -0
- sopran-0.0.0/src/sopran/core/errors.py +37 -0
- sopran-0.0.0/src/sopran/core/loaders.py +32 -0
- sopran-0.0.0/src/sopran/core/pages.py +165 -0
- sopran-0.0.0/src/sopran/core/pipeline.py +405 -0
- sopran-0.0.0/src/sopran/core/plotting.py +499 -0
- sopran-0.0.0/src/sopran/core/project.py +462 -0
- sopran-0.0.0/src/sopran/core/schema.py +300 -0
- sopran-0.0.0/src/sopran/core/store.py +880 -0
- sopran-0.0.0/src/sopran/core/time.py +95 -0
- sopran-0.0.0/src/sopran/frames/__init__.py +179 -0
- sopran-0.0.0/src/sopran/maps/__init__.py +110 -0
- sopran-0.0.0/src/sopran/missions/__init__.py +1 -0
- sopran-0.0.0/src/sopran/missions/artemis/README.ja.md +39 -0
- sopran-0.0.0/src/sopran/missions/artemis/README.md +41 -0
- sopran-0.0.0/src/sopran/missions/artemis/__init__.py +3 -0
- sopran-0.0.0/src/sopran/missions/artemis/mission.py +529 -0
- sopran-0.0.0/src/sopran/missions/kaguya/ESA1.ja.md +56 -0
- sopran-0.0.0/src/sopran/missions/kaguya/ESA1.md +68 -0
- sopran-0.0.0/src/sopran/missions/kaguya/README.ja.md +32 -0
- sopran-0.0.0/src/sopran/missions/kaguya/README.md +58 -0
- sopran-0.0.0/src/sopran/missions/kaguya/__init__.py +37 -0
- sopran-0.0.0/src/sopran/missions/kaguya/data.py +356 -0
- sopran-0.0.0/src/sopran/missions/kaguya/files.py +98 -0
- sopran-0.0.0/src/sopran/missions/kaguya/lmag.py +209 -0
- sopran-0.0.0/src/sopran/missions/kaguya/mission.py +1545 -0
- sopran-0.0.0/src/sopran/missions/kaguya/pace.py +529 -0
- sopran-0.0.0/src/sopran/missions/kaguya/schema.py +52 -0
- sopran-0.0.0/src/sopran/missions/kaguya/sensors.py +45 -0
- sopran-0.0.0/src/sopran/schema_docs.py +119 -0
sopran-0.0.0/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
.pytest_cache/
|
|
4
|
+
site/
|
|
5
|
+
.mypy_cache/
|
|
6
|
+
.ruff_cache/
|
|
7
|
+
.vscode/
|
|
8
|
+
|
|
9
|
+
.venv/
|
|
10
|
+
.venvs/
|
|
11
|
+
build/
|
|
12
|
+
dist/
|
|
13
|
+
*.egg-info/
|
|
14
|
+
|
|
15
|
+
data/
|
|
16
|
+
datasets/
|
|
17
|
+
sopran_data/
|
|
18
|
+
sopran_cache/
|
|
19
|
+
cache/
|
|
20
|
+
outputs/
|
|
21
|
+
working/
|
|
22
|
+
_handoff/
|
sopran-0.0.0/AGENTS.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# SOPRAN Agent Guide
|
|
2
|
+
|
|
3
|
+
このリポジトリは `SOPRAN` (Satellite Observation Package for Retrieval,
|
|
4
|
+
Analysis, and Navigation) を開発するための場所です。月・惑星圏の衛星データを
|
|
5
|
+
Python から一貫した使用感で扱い、必要な重い処理は Rust に逃がす方針で進めます。
|
|
6
|
+
|
|
7
|
+
## 目的
|
|
8
|
+
|
|
9
|
+
- KAGUYA/SELENE、ARTEMIS などの衛星データ解析をまず月周辺ミッションから整備する。
|
|
10
|
+
- ミッションごとのデータ形式・測定器差分は `projects/<mission>` に閉じ込める。
|
|
11
|
+
- 利用者向け API はできるだけ共通化し、時刻範囲、instrument、product、座標系、
|
|
12
|
+
metadata、dataset root を同じ考え方で扱えるようにする。
|
|
13
|
+
- IDL/SPEDAS スクリプトの挙動を読み解き、公開 API としては pure Python + Rust で
|
|
14
|
+
再実装する。
|
|
15
|
+
|
|
16
|
+
## 参照元
|
|
17
|
+
|
|
18
|
+
- 旧実装の参考場所: `F:\idl\lunarsat`
|
|
19
|
+
- 旧実装は解析しながら育った作業リポジトリなので、設計や文章を丸写ししない。
|
|
20
|
+
- 有用な reader、dataset layout、KAGUYA 処理、Rust backend の境界は参考にしてよい。
|
|
21
|
+
- 旧リポジトリや既存データセットを変更・削除・移動しない。必要な場合は明示確認する。
|
|
22
|
+
|
|
23
|
+
## 想定構成
|
|
24
|
+
|
|
25
|
+
まだ初期化中のため、最初の実装では次の方向を優先します。
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
src/sopran/
|
|
29
|
+
core/ # 共通データモデル、loader protocol、dataset registry
|
|
30
|
+
projects/
|
|
31
|
+
kaguya/ # KAGUYA/SELENE 固有 reader と product builder
|
|
32
|
+
artemis/ # ARTEMIS 固有 reader と product builder
|
|
33
|
+
frames/ # 座標系、SPICE、時刻変換
|
|
34
|
+
analysis/ # mission 非依存の解析補助
|
|
35
|
+
plotting/ # 可視化補助
|
|
36
|
+
crates/
|
|
37
|
+
sopran-backend/ # 重い decode、binning、fit、shard 処理
|
|
38
|
+
docs/
|
|
39
|
+
tests/
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 設計方針
|
|
43
|
+
|
|
44
|
+
- Python API を主入口にする。Rust は backend、CLI、batch 境界で使い、細かすぎる FFI を
|
|
45
|
+
乱立させない。
|
|
46
|
+
- mission 固有の loader と instrument 差分は隠蔽しすぎない。共通化は
|
|
47
|
+
`TimeRange`, `Dataset`, `Product`, `Instrument`, `Metadata`, `CoordinateFrame`
|
|
48
|
+
など自然な境界から始める。
|
|
49
|
+
- SPEDAS/tplot に近い使用感は目指すが、IDL common block やグローバル状態は公開 API に
|
|
50
|
+
持ち込まない。
|
|
51
|
+
- データファイルの探索は dataset registry / layout 経由にし、解析コードに絶対パスを
|
|
52
|
+
直接埋め込まない。
|
|
53
|
+
- 大量処理は日別 shard や chunk 単位で中間成果物とログが残る形にする。
|
|
54
|
+
- 解析ノート由来の一時処理を package API に入れる前に、再利用可能な reader、変換、
|
|
55
|
+
product builder、workflow のどれなのかを分ける。
|
|
56
|
+
|
|
57
|
+
## コーディング規約
|
|
58
|
+
|
|
59
|
+
- Python は typed dataclass / pathlib / 明示的な型境界を優先する。
|
|
60
|
+
- 配列処理は `numpy`、表形式は必要に応じて `pandas` または `polars`、CDF は `cdflib`、
|
|
61
|
+
SPICE は `spiceypy` など、標準的なライブラリを優先する。
|
|
62
|
+
- Rust は決定的で重い処理、バイナリ decode、binning、fit、shard 出力などに使う。
|
|
63
|
+
- public API は小さく保ち、mission 固有 API は `sopran.missions.<mission>` に置く。
|
|
64
|
+
- ドキュメントと利用者向け説明は日本語でよい。API 名、ファイル名、外部仕様名は英語のままにする。
|
|
65
|
+
- ファイル検索は `rg`、手作業の編集は `apply_patch` を優先する。
|
|
66
|
+
|
|
67
|
+
## データ安全
|
|
68
|
+
|
|
69
|
+
- 実データ、ダウンロードキャッシュ、大きな生成物、secret は git に入れない。
|
|
70
|
+
- `datasets/`, `data/`, `cache/`, `outputs/`, `working/` は原則として作業生成物扱いにする。
|
|
71
|
+
- ユーザーが明示しない限り、外部データセットの削除、再配置、再帰的な書き換えを行わない。
|
|
72
|
+
- 旧 `lunarsat` 側のファイルは読み取り参考に留める。
|
|
73
|
+
|
|
74
|
+
## 検証
|
|
75
|
+
|
|
76
|
+
スキャフォールド後は、変更内容に応じて次の確認を用意・実行します。
|
|
77
|
+
|
|
78
|
+
```powershell
|
|
79
|
+
python -m pytest -q
|
|
80
|
+
python -m compileall src
|
|
81
|
+
cargo test
|
|
82
|
+
cargo fmt --check
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
環境作成スクリプトや smoke script を追加したら、この節を実際のコマンドに更新してください。
|
|
86
|
+
|
|
87
|
+
## Git 運用
|
|
88
|
+
|
|
89
|
+
- 変更前後に `git status --short` を確認する。
|
|
90
|
+
- ユーザーが明示しない限り、既存変更を revert しない。
|
|
91
|
+
- タスクに関係しない refactor や大きな整形を混ぜない。
|
|
92
|
+
- 設計変更を伴う場合は README または `docs/` も同時に更新する。
|
sopran-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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 SOPRAN contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
sopran-0.0.0/NOTICE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
SOPRAN
|
|
2
|
+
Copyright 2026 SOPRAN contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0.
|
|
5
|
+
|
|
6
|
+
SOPRAN is designed to interoperate with and validate behavior against
|
|
7
|
+
third-party space science software and data products. Third-party source
|
|
8
|
+
code is not incorporated unless its license has been reviewed and its
|
|
9
|
+
required notices are retained.
|
sopran-0.0.0/PIPELINE.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# SOPRAN Pipeline Spec
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
|
|
5
|
+
Pipeline is the advanced batch/storage API. It is not the beginner-facing API.
|
|
6
|
+
The beginner path is object-first:
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
flux = kg.esa1.energy_flux.load(time)
|
|
10
|
+
flux.plot()
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Pipeline is used for raw download, decode, normalization, parquet generation,
|
|
14
|
+
feature generation, database products, quicklook batches, and Rust backend
|
|
15
|
+
stages.
|
|
16
|
+
|
|
17
|
+
## Naming Rules
|
|
18
|
+
|
|
19
|
+
Variable names are endpoints in the object API:
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
kg.esa1.energy_flux
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Pipeline should not use `.energy_flux()` as a primary stage name. Use
|
|
26
|
+
`select_variables(...)` for stored variables and `derive(...)` for derived
|
|
27
|
+
products.
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
pipe = (
|
|
31
|
+
kg.esa1
|
|
32
|
+
.pipeline(time)
|
|
33
|
+
.download()
|
|
34
|
+
.decode()
|
|
35
|
+
.normalize()
|
|
36
|
+
.select_variables("energy_flux", "counts", "quality")
|
|
37
|
+
.quicklook("esa1_counts")
|
|
38
|
+
.write("kaguya.esa1.normalized", layer="normalized")
|
|
39
|
+
)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Derived products:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
pipe = (
|
|
46
|
+
kg.esa1
|
|
47
|
+
.pipeline(time)
|
|
48
|
+
.from_normalized()
|
|
49
|
+
.derive("pitch_angle_distribution")
|
|
50
|
+
.write("kaguya.esa1.pitch_angle_distribution", layer="features")
|
|
51
|
+
)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Rust backends should be large stages taking manifests, catalogs, shard paths,
|
|
55
|
+
and JSON config. v0.1 uses Python reference implementations first.
|
|
56
|
+
|
|
57
|
+
## Quicklook Stage
|
|
58
|
+
|
|
59
|
+
`quicklook()` records a preview generation stage. The current KAGUYA ESA1
|
|
60
|
+
Python backend writes Matplotlib PNG quicklooks and JSON metadata under the
|
|
61
|
+
output dataset `preview/` directory after parquet output succeeds.
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
(
|
|
65
|
+
kg.esa1.pipeline(time)
|
|
66
|
+
.decode()
|
|
67
|
+
.select_variables("counts")
|
|
68
|
+
.quicklook("counts")
|
|
69
|
+
.write("kaguya.esa1.counts", layer="normalized")
|
|
70
|
+
.run()
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The first implementation supports one selected variable and `backend="matplotlib"`.
|