python.odpy.wellman

Copyright (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
  • AUTHOR : A. Huck

  • DATE : Nov 2018

Module Summary

Tools database access and connection to survey wells and logs

Tutorial link can be found here: https://github.com/OpendTect/OpendTect-ML-Dev/blob/main/documentation/workflows/notebooks/odpy_wellman_tutorial.ipynb

Module Contents

Functions

getNames(reload=False, args=None)

Gets survey well names from database

getInfo(wllnm, reload=False, args=None)

Gets information for a well

getName(dbkey, reload=False, args=None)

Gets well name

getLogNames(wllnm, reload=False, args=None)

Gets logs available for a well

getLog(wllnm, lognm, reload=False, args=None)

Get a well log from the OpendTect database

getLogs(wllnm, logidxlst, zstep=0.5, reload=False, args=None)

Get re-sampled logs from OpendTect

getDBKey(wllnm, reload=False, args=None)

Gets well database key

getWellDBList(reload, args=None)

Gets information on wells from database for a survey

getMarkers(wllnm, reload=False, args=None)

Gets information on available markers for a well

getTrack(wllnm, reload=False, args=None)

Gets well (track) depth information

Attributes

wellmanexe

wlldbdirid

wlltrlgrp

dgbtrl

dblist

python.odpy.wellman.wellmanexe = od_WellMan
python.odpy.wellman.wlldbdirid = 100050
python.odpy.wellman.wlltrlgrp = Well
python.odpy.wellman.dgbtrl = dGB
python.odpy.wellman.dblist
python.odpy.wellman.getNames(reload=False, args=None)

Gets survey well names from database

Parameters:
  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:
  • list: list of available survey wells from database

python.odpy.wellman.getInfo(wllnm, reload=False, args=None)

Gets information for a well

Parameters:
  • wllnm (str): well name from survey

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:
  • dict: information on well ID, name, x y cordinates, status etc

python.odpy.wellman.getName(dbkey, reload=False, args=None)

Gets well name

Parameters:
  • dbkey (str): well database key

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:
  • str: Well name

python.odpy.wellman.getLogNames(wllnm, reload=False, args=None)

Gets logs available for a well

Paramters:
  • wllnm (str): name of well

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:
  • list: list containing log names

python.odpy.wellman.getLog(wllnm, lognm, reload=False, args=None)

Get a well log from the OpendTect database Read a single log from the OpendTect database, with any depth resampling or unit conversion.

Parameters:
  • wllnm (string): Well database name

  • lognm (string): Log name as reported by getLogNames(wllnm)

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:

tuple: Two arrays with depths (MD) and log values

python.odpy.wellman.getLogs(wllnm, logidxlst, zstep=0.5, reload=False, args=None)

Get re-sampled logs from OpendTect

Parameters:

wllnm (string): Well database name logidxlst (string): List of log indices to be resampled zstep (double, optional): Resampling step in meters. Default to 0.5 reload (boolean, optional): Force re-reading of the database files

(no caching allowed). Default to False

args (dictionary, optional): Dictionary of optional parameters (see common).

Default to None.

Returns:
dict: Dictionary with log names as keys, logs as numpy arrays.

A depth array is also always output.

Example:

Get the logs from the well F03-4 with database indices 0, 1, 4, 6: >>> logs = odpy.wellman.getLogs( ‘F03-4’, ‘0`1`4`6’ )

Undefined log samples will get the value 1e30 (not NaN)

python.odpy.wellman.getDBKey(wllnm, reload=False, args=None)

Gets well database key

Parameters:
  • wllnm (str): well name

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:

str: Database key for well name provided

python.odpy.wellman.getWellDBList(reload, args=None)

Gets information on wells from database for a survey

Parameters:
  • reload (boolean, optional): Force re-reading of the database files (no caching allowed)

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:

dict: containing information on survey database wells (size, IDs, Names, Status, etc)

python.odpy.wellman.getMarkers(wllnm, reload=False, args=None)

Gets information on available markers for a well

Parameters:
  • wllnm (str): well name

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:

tuple: contains lists of available markers (names, MDs, colors)

python.odpy.wellman.getTrack(wllnm, reload=False, args=None)

Gets well (track) depth information

Parameters:
  • wllnm (str): well name

  • reload (boolean, optional): Force re-reading of the database files

    (no caching allowed). Default to False

  • args (dictionary, optional): Dictionary of optional parameters (see common).

    Default to None.

Returns:

tuple: contains lists of track depths (MDs, TVDs, x coord., y coord.)