Skip to main content

A python package for working with MB Century downhole data.

Project description

MB Century Downhole Data Toolkit

https://www.mbcentury.com/services

This toolkit provides easy access to data that has been exported from one of MB Century's data logging applications. It is primarily used to access downhole data that has been collected using MB Century's data collection systems.

Example use

Use pip to import the package.

pip import pymbc

Example python code

Open a CSV file containing PTS data, plot it against depth and time, and convert it to Well Test Analysis format.

import pymbc as mbc
from pathlib import Path

csvfile = Path(r'tests\_20230626_PTS__A.csv')
mb = mbc.MbcLog()
mb.ReadMbCsv(csvfile)
mb.CreateRunLogGuess()
plotdef = [mbc.PlotDefinition('Timedelta', 'Depth', 'slategray', '-', False),
           mbc.PlotDefinition('Timedelta', 'Pressure', 'royalblue', '-', False),
           mbc.PlotDefinition('Timedelta', 'Frequency', 'darkorange', '-', False),
           mbc.PlotDefinition('Timedelta', 'Temperature', 'indianred', '--', True)]
st,figt = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=False)

plotdef = [mbc.PlotDefinition('Depth', 'Timedelta', 'black', '-', False),
           mbc.PlotDefinition('Depth', 'Speed', 'forestgreen', '--', True),
           mbc.PlotDefinition('Depth', 'Pressure', 'maroon', '-', False),
           mbc.PlotDefinition('Depth', 'Temperature', 'royalblue', '-', True)]
sd,figd = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=True)  

pts = mb.PtsWellTestAnalysis()
	

CHANGELOG

Version 1.1.1 19/06/2024

  • Improved CreateRunLogGuess method to split log in to multiple runs automatically.

Version 1.1.0 12/06/2024

  • Changed the column names to be consistant with industry norms.
  • Added CreateRunLogGuess method to split log in to multiple runs automatically.

Version 1.0.0 21/05/2024

  • Released to PyPI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymbc-1.1.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymbc-1.1.1-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file pymbc-1.1.1.tar.gz.

File metadata

  • Download URL: pymbc-1.1.1.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pymbc-1.1.1.tar.gz
Algorithm Hash digest
SHA256 46724b6f9de1354bd9277564af9979ca0a13705ef594e89539f3d879ffcf4e13
MD5 39b7283b77a5ef5847c1e5ac4f58f8b4
BLAKE2b-256 9ee9df87406f8680e187763776614338263c4adab9d8ca65b2d23a14383cab4d

See more details on using hashes here.

File details

Details for the file pymbc-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pymbc-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pymbc-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ffd833221c715405ffad764fa6df5f57f890de1856b1ad51178fbca102ffbaa
MD5 ecc7a194965a02f7a3561d692c15eff5
BLAKE2b-256 7239d733d09025ee01db954bb77342f6440ef1516c22f0363b41e668eabe6323

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page