The canonical PICGRID text grid format: its coordinate precision, header reader and coordinate reader, shared by the conductor and the generators. More...
Go to the source code of this file.
Namespaces | |
| namespace | picurv_cli |
| namespace | picurv_cli.picgrid |
Functions | |
| str | picurv_cli.picgrid.format_picgrid_coordinate (float value) |
| Format a coordinate with round-trip-safe binary64 precision. | |
| picurv_cli.picgrid.content_lines (stream) | |
Yield the content lines of a PICurv text payload, skipping blank and # lines. | |
| list | picurv_cli.picgrid.read_picgrid_header (lines, str path, int expected_nblk=None) |
| Consume a PICGRID header from a content-line iterator. | |
| list | picurv_cli.picgrid.read_picgrid_dimensions (str path, int expected_nblk=None) |
| Read only the header of a PICGRID file. | |
| tuple | picurv_cli.picgrid.parse_coordinate_row (int lineno, str line, str path) |
| Parse one coordinate row into three finite floats. | |
| list | picurv_cli.picgrid.read_picgrid_blocks (str path, int expected_nblk=None) |
| Read every block of a PICGRID file as node-coordinate arrays. | |
Variables | |
| str | picurv_cli.picgrid.PICGRID_FLOAT_FORMAT = ".17e" |
The canonical PICGRID text grid format: its coordinate precision, header reader and coordinate reader, shared by the conductor and the generators.
Not a command. core.py, grid.gen, ic.gen, profile.gen, reduce.gen and spectra.gen import it from picurv_cli/, as they import petsc_binary.py. A PICGRID file is the token PICGRID, a block count, one IM JM KM node-count row per block, then every block's node coordinates in block order, one x y z row per node with i fastest, then j, then k. Blank lines and lines beginning with # are not part of the content.
Definition in file picgrid.py.