GSLib/GeoEAS File I/O

GSLib Point Set Reader

class PVGeo.gslib.gslib.GSLibPointSetReader(**kwargs)[source]

Bases: PVGeo.gslib.gslib._GSLibReaderMethods, PVGeo.readers.delimited.DelimitedPointsReaderBase

Reads a GSLib point set file where the first three columns are the XYZ coordinates and the remainder of the data is consistent with the GSLibReader specifications.

description = 'PVGeo: GSLib Point Set'
extensions = 'sgems dat geoeas gslib GSLIB txt SGEMS SGeMSgslibpts ptset gpts'

GSLib Table Reader

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

Bases: PVGeo.gslib.gslib._GSLibReaderMethods, 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).

description = 'PVGeo: GSLib Table'

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, objectName)[source]

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

SetHeader(header)[source]

Set the file header string