geosoft.gxpy.vv submodule

class geosoft.gxpy.vv.GXvv(dtype=<class 'float'>, fid=(0.0, 1.0))

Bases: object

VV class wrapper.

Parameters:
  • dtype – numpy data type, or ‘str#’, where # is a string length, default np.float
  • fid – fid tuple (start,increment), default (0.0,1.0)
Constructor vvNP:
 

create from a numpy array

New in version 9.1.

dtype()
Returns:numpy data type

New in version 9.1.

fid()
Returns:fid tuple (start,increment)

New in version 9.1.

gxtype()
Returns:GX data type

New in version 9.1.

length()
Returns:number of elements in the VV

New in version 9.1.

np(dtype=None, start=0, n=None)

Return a numpy array of data from a vv.

Parameters:
  • start – index of first value, must be >=0
  • n – number of values wanted
  • dtype – numpy data type wanted

New in version 9.1.

reFid(fid, length)

Resample VV to a new fiducial and length

Parameters:
  • fid – (start,incr)
  • length – length

New in version 9.1.

setFid(fid)

Set the fiducial of the vv.

Parameters:fid – (fidStart,fidIncrement)

New in version 9.1.

vv(npdata, fid=(0.0, 1.0))

Copy numpy data to the vv.

Parameters:
  • npdata – numpy data array
  • fid – fid tuple (start,increment), default (0.0,1.0)

New in version 9.1.

classmethod vv_np(npdata, fid=(0.0, 1.0))

Create a VV from numpy data.

Parameters:
  • npdata – numpy data array
  • fid – fid tuple (start,increment), default (0.0,1.0)
Returns:

GXvv

New in version 9.1.

exception geosoft.gxpy.vv.VVException

Bases: Exception

Exceptions from this module.

New in version 9.1.