GSLib/GeoEAS File I/O

GSLib Table Reader

class PVGeo.gslib.gslib.GSLibReader(outputType='vtkTable', **kwargs)[source]

Bases: PVGeo.readers.delimited.DelimitedTextReader

Reads a GSLIB file format to a vtkTable. The GSLIB file format has headers lines followed by the data as a space delimited ASCI file (this filter is set up to allow you to choose any single character delimiter). The first header line is the title and will be printed to the console. This line may have the dimensions for a grid to be made of the data. The second line is the number (n) of columns of data. The next n lines are the variable names for the data in each column. You are allowed up to ten characters for the variable name. The data follow with a space between each field (column).


Returns the file header. If file hasn’t been read, returns None


Override this. Removes header from single file’s content.

Write vtkTable To GSLib Format

class PVGeo.gslib.gslib.WriteTableToGSLib(inputType='vtkTable')[source]

Bases: PVGeo.base.WriterBase

Write the row data in a vtkTable to the GSLib Format

PerformWriteOut(inputDataObject, filename)[source]

This method must be implemented. This is automatically called by RequestData for single inputs or composite inputs.


Set the file header string