File Formats¶
File extensions¶
File extensions used in IGMAS+ together with related functionality are presented in the following summary table:
| Function ↓ / Format → | .csv |
.grd |
.igmas |
.meta |
.model |
.obj |
.stations |
.ts |
.vxo |
.xml |
.xyz |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Import project | + | + | |||||||||
| Import model | + | + | + | + | + | ||||||
| Export model | + | ||||||||||
| Import stations | + | + | + | + | |||||||
| Export stations/anomaly | + | + | + | + | |||||||
| Import horizon | + | + | + | ||||||||
| Import interface | + | + | + | + | + | + | |||||
| Export interface | + | + | + | ||||||||
| Import borehole | + | ||||||||||
| Export borehole | + | + | |||||||||
| Import VoxelCube | + | ||||||||||
| Export VoxelCube | + | ||||||||||
| Export Body Parameter Table | + | ||||||||||
| Export StressMap | + | ||||||||||
| Import lines | + | + | + | ||||||||
| Import PointSet | + | + | + |
Extension Descriptions¶
Brief descriptions of file extensions are given the following summary table:
| Extension | Format | Description |
|---|---|---|
.csv |
Comma Separated Value, ASCII file | Standard format for point data |
.grd |
Geosoft Grid file | Geosoft Grid is a binary format for storing raster data typically used for geophysical and elevation data |
.igmas |
IGMAS+ project file (deprecated) | Old format for storing projects |
.meta |
IGMAS+ model file (deprecated) | Old format for storing models and interfaces |
.model |
IGMAS+ model file, XML-based | Holds an internal DTD for XML file validation. No external .dtd file is required. |
.obj |
Wavefront Object file | Open file format for definition of geometry and other properties for 3D objects |
.stations |
stations, XML-based | Holds an internal DTD for XML file validation. No external .dtd file is required. |
.ts |
GOCAD TSURF (Triangulated Surface format) | Triangle based surface format containing vertex coordinates and triangle to vertex connectivities |
.xyz |
XYZ grid data file | Grid data for model geometry and point sets for e.g. borehole data or Euler Depth. Three columns (x, y, z). |
.xml |
XML file | General extension for all XML-based formats |
.vxo |
Voxel Cube file | Similar to .xyz, but with 4 columns (x, y, z, value). Used for voxel import and export. |
Format Descriptions¶
Horizon Files¶
Horizon Files .xyz¶
The .xyz file format is similar to the .csv format and is also used for ASCII point data.
Each line in horizon .xyz files contains one point using a fixed column order x, y, z.
A header line
will be interpreted, but is not needed. If this header is missing, an additional window will ask for the columns to be imported.
Voxel Cube Files .vxo¶
The only file format for importing and exporting voxel cubes is an ASCII file with the file extension .vxo.
Example
An example of a .vxo Voxel Cube file exported from IGMAS+.:
The file may contain header line(s) marked with a # symbol. These header lines in are not interpreted! It may also contain additional (commenting) lines: each line containing non-numeric information is ignored without notice!
A special order of the cell elements is not required. The size of the cells has to be regular (constant) throughout the file. The cell size is determined by the first non-zero difference between two consecutive lines in x, y and z separately. Negative differences are taken positively.
Note
The number of voxel cells is limited - the maximum number of voxel cells is 50000000 (50 million).
Station Files¶
A station file contains the station coordinates (, , ) or (, ), as well the measured (and/or calculated) data corresponding to these stations.
Import stations: Use File → Import → Stations to import the station data.
Note
After importing the stations, the model is automatically clipped to the station area using clipplanes. If there is no model in the project, a model domain of a corresponding size will be automatically created.
Export stations: Use File → Export → Stations to save the Fields that are actually selected in the Object Tree.
There are two main file formats for station files: .csv and .stations (can optionally be .xml).
Station Files .csv¶
Each line in station .csv files contains information about one point, and the number of columns in each line is fixed.
The following settings may be used:
- separator: comma (
[,]), semicolon ([;]), tab ([tabulator]) or space ([blank]). - header: a header line can be included or not
- quotes: one can use quotes for numbers and/or header entries, e.g.
"value"
While importing, the settings used in the file will be recognized and used automatically.
While exporting, a wizard will pop up and offer export CSV settings:
A station .csv file does not contain information about the units used. However, the wizard (figure above) give you the possibility to choose the units used from a list (available both for Import and Export).
IGMAS+ uses double precision (64bit) for measured values and single precision (32bit) for coordinates.
Example
An example of a station .csv file with ; delimeter:
A header with descriptions about the stations and data can be included in the first line.
In this case don't forget to check interpret Header checkbox in the wizard:
For changing the value types, please click on table header and select the column value that you want to change:
Possible header entries are:
"x""y""z""measured x component""measured y component""measured z component"(similar to"measured gravity")"measured gxx""measured gxy""measured gxz""measured gyx""measured gyy""measured gyz""measured gzx""measured gzy""measured gzz""measured geoid""measured i0""measured i1""measured i2""measured hdt""measured hg""measured magnetic x""measured magnetic y""measured magnetic z""measured magnetic tfi""measured magnetic tfir""measured magnetic vg""measured mxx""measured mxy""measured mxz""measured myx""measured myy""measured myz""measured mzx""measured mzy""measured mzz"
The keyword measured in the file header can be replaced by calculated.
Note
During the import of stations calculated anomalies are skipped.
Station Files .stations, .xml¶
The internally preferred .stations format is an XML-based format, which contains more information compared to the .csv station file, e.g. the coordinate system, units etc.
Example
An example of a .stations file with three stations:
Station files in the .stations format with an .xml extension can also be imported to IGMAS+.
Model Files .model, .xml¶
IGMAS+ model files with extension .model are XML-based files that are used to store information about the model elements like bodies and working sections, as well as information about projection and units.
Example
An example of the .model (for the original model from the Two Layers Example), that contains two bodies and five working sections:
Model files in the .model format with an .xml extension can also be imported to IGMAS+.
GOCAD Model Files .ts¶
The GOCAD® TSURF (Triangulated Surface format) is used to store triangulated surfaces containing vertex coordinates and triangle-to-vertex connectivities.
The elements which are interpreted are:
name: (inHEADER)- Each interface separates two bodies, the names of which are separate by
<>. Example:Saltbody<>Mesozoic - The first body name (here:
Saltbody) is assumed to be on the left hand side of the interface, the second (here: Mesozoic) on the right hand side, i.e. on the side of the positive triangle normal. - Using Saltbody\<>Mesozoic instead of Mesozoic\<>Saltbody will flip the orientation of every single triangle of the entire interface.
- If the body separator
<>is missing (eg.name: Saltbody),Saltbody<>Referenceis interpreted.
- Each interface separates two bodies, the names of which are separate by
*solid*color:RGB(inHEADER)- The Red, Green, Blue, Transparency values (transparency is not interpreted).
- The color is assigned to the body name to the left of the body separator
<>.
ZPOSITIVE(Elevation | Depth):- Z-Coordinate positive to the top / to the bottom.
- Default: Elevation.
AXIS_UNIT("m" "m" "m" | "km" "km" "km")- Default: "m" "m" "m"
TFACE- Starts a new triangulated interface.
VRTX- Keyword to identify lines with vertices, which contain of 5 columns:
VRTX id x_coordinate y_coordinate z_coordinate
- Keyword to identify lines with vertices, which contain of 5 columns:
ATOM- Linked
VRTXindices are interpreted
- Linked
TRGL- Keyword to identify lines with trianges, which contain of 4 columns:
TRGL id1 id2 id3
- Keyword to identify lines with trianges, which contain of 4 columns:
Note
The orientation of the triangles is assumed to be identical throughout the entire TFACE. It is defined by the order of the triangle vertices with the right hand thumb-rule: the thumb is indicating the positive triangle normal, if the fingers follow the order of the vertices (see more in the Triangle Orientation chapter).
Example
A TSURF .ts file, defining a simple cube:
Wavefront Object files .obj¶
IGMAS+ can import and export models and interfaces using the Wavefront Object .obj file format, which is a plain ASCII text format.
See more about this format here.
The interpreted lines are:
v- Keyword to identify lines with vertices, which contain 4 columns:
v x_coordinate y_coordinate z_coordinate
- Keyword to identify lines with vertices, which contain 4 columns:
f- Keyword to identify lines with trianges, which contain 4 columns:
f id1 id2 id3
Lines with more than 4 columns (i.e. faces with more than 3 vertices) are not interpreted.
- Keyword to identify lines with trianges, which contain 4 columns:
#- Comments, not interpreted.
Example
An example of a Wavefront Object .obj file defining a simple cube:


