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
Attributes
Functions
|
Gets survey well names from database |
|
Gets information for a well |
|
Gets well name |
|
Gets logs available for a well |
|
Get a well log from the OpendTect database |
|
Get re-sampled logs from OpendTect |
|
Gets well database key |
|
Gets information on wells from database for a survey |
|
Gets information on available markers for a well |
|
Gets well (track) depth information |
Module Contents
- odpy.wellman.wlltrlgrp = 'Well'
- odpy.wellman.dblist
- odpy.wellman.getNames(args={})
Gets survey well names from database
- Parameters:
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
list: list of available survey wells from database
- odpy.wellman.getInfo(wllnm, args={})
Gets information for a well
- Parameters:
wllnm (str): well name from survey
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
dict: information on well ID, name, x y cordinates, status etc
- odpy.wellman.getName(dbkey, args={})
Gets well name
- Parameters:
dbkey (str): well database key
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
str: Well name
- odpy.wellman.getLogNames(wllnm, args={})
Gets logs available for a well
- Paramters:
wllnm (str): name of well
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
list: list containing log names
- odpy.wellman.getLog(wllnm, lognm, args={})
Get a well log from the OpendTect database Read a single log from the OpendTect database, without any depth resampling or unit conversion.
- Parameters:
wllnm (string): Well database name
lognm (string): Log name as reported by getLogNames(wllnm)
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
tuple: Two arrays with depths (MD) and log values
- odpy.wellman.getLogs(wllnm, logidxlst, zstep=0.5, args={})
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 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’ )
- odpy.wellman.getDBKey(wllnm, args={})
Gets well database key
- Parameters:
wllnm (str): well name
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
str: Database key for well name provided
- odpy.wellman.getWellDBList(reload=False, args={})
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)
- odpy.wellman.getMarkers(wllnm, args={})
Gets information on available markers for a well
- Parameters:
wllnm (str): well name
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
tuple: contains lists of available markers (names, MDs, colors)
- odpy.wellman.getTrack(wllnm, args={})
Gets well (track) depth information
- Parameters:
wllnm (str): well name
- args (dictionary, optional): Dictionary of optional parameters (see common).
Default to None.
- Returns:
tuple: contains lists of track depths (MDs, TVDSS, x coord., y coord.)