General Tools

UBC Geology Mapper

class PVGeo.ubc.general.GeologyMapper(filename=None, delimiter=', ', **kwargs)[source]

Bases: PVGeo.base.FilterPreserveTypeBase

A filter to load a GIF geology definity file and map its values to a given data array in an input data object.

RequestData(request, inInfo, outInfo)[source]

Overwritten by subclass to execute the algorithm.

SetDelimiter(deli)[source]
SetFileName(filename)[source]
SetInputArrayToProcess(idx, port, connection, field, name)[source]

Used to set the input array(s)

Parameters:
  • idx (int) – the index of the array to process
  • port (int) – input port (use 0 if unsure)
  • connection (int) – the connection on the port (use 0 if unsure)
  • field (int) – the array field (0 for points, 1 for cells, 2 for field, and 6 for row)
  • name (int) – the name of the array
static _MapValues(geol, arr)[source]

Map the values defined by geol dataframe to the values in arr. The first column (name should be Index) will be used for the mapping.

static _ReadDefinitions(filename, delimiter)[source]

Reades the geology definition file as a pandas DataFrame

description = 'PVGeo: UBC Geology Mapper'

GIF Gravity Gradiometry Observations

class PVGeo.ubc.general.GravGradReader(**kwargs)[source]

Bases: PVGeo.readers.delimited.DelimitedPointsReaderBase

Read GIF Gravity Gradiometry Observations file.

_ExtractHeader(content)[source]

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

description = 'PVGeo: GIF Gravity Gradiometry Observations'
extensions = 'grv gg txt dat'

UBC Gravity Observations

class PVGeo.ubc.general.GravObsReader(**kwargs)[source]

Bases: PVGeo.readers.delimited.DelimitedPointsReaderBase

Read GIF Gravity Observations file.

_ExtractHeader(content)[source]

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

description = 'PVGeo: GIF Gravity Observations'
extensions = 'grv txt dat'

UBC Magnetic Observations

class PVGeo.ubc.general.MagObsReader(**kwargs)[source]

Bases: PVGeo.readers.delimited.DelimitedPointsReaderBase

Read GIF Magnetic Observations file.

static ConvertVector(incl, decl, mag=1)[source]
RequestData(request, inInfo, outInfo)[source]

Used by pipeline to get data for current timestep and populate the output data object.

_ExtractHeader(content)[source]

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

description = 'PVGeo: GIF Magnetic Observations'
extensions = 'mag loc txt dat pre'

GIF Topo Reader

class PVGeo.ubc.general.TopoReader(copy_z=True, **kwargs)[source]

Bases: PVGeo.readers.delimited.DelimitedPointsReaderBase

A reader to handle .topo files in UBC format to create a topography surface.

_ExtractHeader(content)[source]

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

description = 'PVGeo: UBC 3D Topo Files'
extensions = 'topo txt dat'