SCRIP 0/360 seam duplicates nodes, giving euler_characteristic = 1 on a closed sphere
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 228
- Forks
- 55
- Merge medio
- 6 d 7 min
- PR fusionados (30 d)
- 16
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de UXARRAY/uxarray
-
developer experience
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
zonal_mean() and weighted_mean() should return the same type of objectPosiblemente ocupada @Sevans711 la tomó hace 4 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
UXARRAY/uxarray#1733 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
`_set_desired_longitude_range` forces materialization in `open_grid`Posiblemente ocupada @cmdupuis3 la tomó hoy. Abiertoscalability
UXARRAY/uxarray#1792 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
End-to-end chunking in `uxarray/core`Posiblemente ocupada @cmdupuis3 la tomó hoy. Abiertoscalability
UXARRAY/uxarray#1789 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de UXARRAY/uxarray
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
kristofdegrave/homeassistant-smart-charging#1413 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
nasa/earthdata-varinfo#113 ·
-
curriculum documentation quality
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
githubnext/gh-aw-workshop#3849 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día