SCRIP 0/360 seam duplicates nodes, giving euler_characteristic = 1 on a closed sphere
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
調査の方向性
Start by running the provided MCVE with the SCRIP fixtures under test/meshfiles/scrip and compare it with Grid.from_healpix(3). Trace the SCRIP reader reached through ux.open_grid to its coordinate deduplication logic. Done means 0/360 seam nodes are merged and both listed closed meshes report Euler characteristic 2 without breaking the HEALPix control.
索引モデルが issue の本文から書いたものです。
説明
Version
2026.9.0 (and main)
How did you install UXarray?
Source
What happened?
A closed global SCRIP mesh reports euler_characteristic = 1 instead of 2.
SCRIP files store corner longitudes in 0..360 and include both endpoints of the seam: outCSne8 has 30 corners at lon=0 and 30 at lon=360. Those are the same meridian, but the reader's dedup compares (lon, lat) pairs literally, so the seam gets two sets of nodes and the mesh is topologically split along it.
| mesh | duplicate node coords | V | E | F | χ |
|---|---|---|---|---|---|
outCSne8 |
15 | 407 | 790 | 384 | 1 |
ne30pg2 |
119 | 21,727 | 43,326 | 21,600 | 1 |
| HEALPix z3 (control) | 0 | 770 | 1,536 | 768 | 2 |
The HEALPix control has no duplicates and gives the right answer, which locates the problem in the SCRIP path rather than in the Euler computation.
Both meshes are reported as closed: true, so a caller gets a closure verdict that disagrees with the characteristic printed beside it.
What did you expect to happen?
χ = 2 for a closed sphere, and nodes on the 0/360 seam merged.
Can you provide a MCVE to reproduce the bug?
import numpy as np, uxarray as ux
for name, path in [
("outCSne8", "test/meshfiles/scrip/outCSne8/outCSne8.nc"),
("ne30pg2", "test/meshfiles/scrip/ne30pg2/grid.nc"),
]:
g = ux.open_grid(path)
V, E, F = int(g.n_node), int(g.n_edge), int(g.n_face)
nodes = np.stack([np.round(g.node_lon.values, 9),
np.round(g.node_lat.values, 9)], 1)
dupes = V - len(np.unique(nodes, axis=0))
print(f"{name}: V={V} E={E} F={F} chi={V-E+F} duplicate_nodes={dupes}")
g = ux.Grid.from_healpix(3) # control: no duplicates
V, E, F = int(g.n_node), int(g.n_edge), int(g.n_face)
print(f"healpix3: V={V} E={E} F={F} chi={V-E+F}")
Note
Same class as #1692 (coincident nodes), but the trigger here is specifically the 0/360 seam in SCRIP rather than general coincidence, and it reproduces on the meshes already in test/meshfiles. Unchanged by #1775 — that PR swaps the dedup algorithm but compares the same (lon, lat) pairs, so it inherits the behaviour rather than causing it.
- 主要言語
- Python
- スター
- 230
- フォーク
- 56
- 平均マージ
- 6日 3時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UXARRAY/uxarray のほかの issue
-
Update installation docs to include new conda recipes対応中かも @Sevans711 が 14 日前に担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
UXARRAY/uxarray#1793 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
developer experience
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 2 日以内に返信
-
zonal_mean() and weighted_mean() should return the same type of object対応中かも @Sevans711 が 23 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
UXARRAY/uxarray#1733 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
Neighborhood filter radii in kilometers対応中かも @cmdupuis3 が 1 日前に担当しました。 オープンimprovement
UXARRAY/uxarray#1824 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
UXARRAY/uxarray の issue をすべて見る
似ている issue
-
fix formatting of the sample database page of the docs対応中かも @Aaqibhafeezkhan が今日担当しました。 オープンdocumentation good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chaoss/CollectOSS#544 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/plugin good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kestra-io/plugin-soda#137 ·
-
難易度 2/5 半日 初心者へのやさしさ 62/100
ibm-granite/granite.build#504 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信