Utilities to read/write extended and legacy GSLIB files in Julia.
The GSLIB file format was introduced a long time ago for storing spatial data over regular grids or point sets in text files that are easy to read.
The format specification is incomplete in both cases:
(nx, ny, nz))
(ox, oy, oz),
(sx, sy, sz))
This package introduces an extended GSLIB format that addresses the issues listed above.
Get the latest stable release with Julia's package manager:
] add GslibIO
This package follows Julia's
FileIO interface, it provides two
load for the extended GSLIB file format and two
load_legacy for the legacy GSLIB file format. Please consult the docstring of each function for more information.
A usual workflow consists of loading a legacy file with
by setting the options manually, and then saving the data back to disk
in extended format with
save. The new extended format can then be
loaded without any human intervention.
Below is the extended format for spatial data over regular grids:
# optional comment lines at the start of the file # more comments ... <nx> <ny> <nz> <ox> <oy> <oz> <sx> <sy> <sz> <property_name1> <property_name2> ... <property_nameN> <property_value11> <property_value12> ... <property_value1N> <property_value21> <property_value22> ... <property_value2N> ... <property_value(Nx*Ny*Nz)1> <property_value(Nx*Ny*Nz)2> ... <property_value(Nx*Ny*Nz)N>
Inactive cells are marked with the special symbol
NaN. This means that all properties are saved as floating point
numbers regardless of interpretation (categorical or continuous).
25 days ago