[FEATURE] - Add a 3d GEN writer
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Start by reading the existing imod.formats.gen reader and gen.write implementation to see how ASCII and binary formats are handled. The issue gives no test file or exact writer API, so first locate the GEN format tests and check how they represent 3D vertices. Done means gen.write can produce 3D ASCII GEN output with Z values on each vertex.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
See https://github.com/Deltares/iMOD-Suite-transition-regional-models/pull/36
Summary
imod.formats.gen can read 3D ASCII GEN files (x, y, z per vertex) but cannot write them. gen.write only writes the binary format, from 2D coordinates. Downstream code that needs 3D GEN output has to write the text itself. I'd like iMOD Python to own this, so reading and writing of GEN files live in one place.
Use Case
The iMOD-Suite regional-model conversion CLI (Deltares/iMOD-Suite-transition-regional-models) has a GENSNAPTOGRID function. It snaps GEN lines to the cell edges of a grid and, with I3D=1, writes every snapped edge as a closed vertical wall polygon with a Z value on each vertex. iMOD5's GENSNAPTOGRID with I3D=1 does the same. The CLI currently has a private _write_gen_ascii_3d helper for this, marked as a TODO to move to iMOD Python.
Currently, write only writes the binary Fortran-record format. It writes the bounds and xy as float records, so Z is never written.
Follow-up in iMOD-Suite-transition-regional-models
Once this is merged, delete _write_gen_ascii_3d from src/snapping.py. snap_gen_file_to_grid then calls the new iMOD Python writer for I3D=1. The CLI tests that compare the 3D output with iMOD5 stay as they are.
- Lenguaje dominante
- Python
- Estrellas
- 41
- Forks
- 12
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
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 Deltares/imod-python
-
backwards_compatibility enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Deltares/imod-python#1963 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
bug Deltares
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Deltares/imod-python#1950 ·
Los mantenedores suelen responder en 2 días
-
Deltares enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Deltares/imod-python#1843 ·
Los mantenedores suelen responder en 2 días
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Deltares/imod-python#1684 ·
Los mantenedores suelen responder en 2 días
-
Bugs found in a code review of master (6f0ec0bc)Posiblemente ocupada @JoerivanEngelen la tomó hace 9 días. Abierto
Deltares/imod-python#1980 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de Deltares/imod-python
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día