# 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.
```ccs
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.
```css
import pymbc as mbc
from pathlib import Path
csvfile = Path(r'tests\_20230626_PTS__A.csv')
mb = mbc.MbcLog()
mb.ReadMbCsv(csvfile)
fnotes = csvfile.parent / (csvfile.stem + '_notes' + csvfile.suffix)
mb.ReadNotes(fnotes)
mb.CreateRunLogGuess()
plotdef = [mbc.PlotDefinition('TIMEDELTA', 'DEPTH', 'slategray', '-', False),
mbc.PlotDefinition('TIMEDELTA', 'PTS_PRES', 'royalblue', '-', False),
mbc.PlotDefinition('TIMEDELTA', 'PTS_FREQ', 'limegreen', '-', False),
mbc.PlotDefinition('TIMEDELTA', 'PTS_TEMP', 'tomato', '--', True)]
st,figt = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=False)
plotdef = [mbc.PlotDefinition('DEPTH', 'TIMEDELTA', 'black', '-', False),
mbc.PlotDefinition('DEPTH', 'PTS_FREQ', 'limegreen', '--', True),
mbc.PlotDefinition('DEPTH', 'PTS_PRES', 'royalblue', '-', False),
mbc.PlotDefinition('DEPTH', 'PTS_TEMP', 'tomato', '-', True)]
sd,figd = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=True)
pts = mb.PtsWellTestAnalysis()
```
# CHANGELOG
## Version 1.1.3 13/09/2024
- Now works with TIMESTAMPISO when plotting vs. time.
- Updated sample data
## Version 1.1.2 29/07/2024
- Updated sample code in README.md
## 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
Raw data
{
"_id": null,
"home_page": "https://github.com/tricky67/pymbc",
"name": "pymbc",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "dab, csv, pts, htcc, Century Logger",
"author": "Richard Williams",
"author_email": "rwilliams@mbcentury.com",
"download_url": "https://files.pythonhosted.org/packages/36/79/79cae51da364605842e7eb027856a455249ab8c290141b8a17d621b3c0c4/pymbc-1.1.3.tar.gz",
"platform": null,
"description": "# MB Century Downhole Data Toolkit\r\n\r\nhttps://www.mbcentury.com/services \r\n\r\nThis 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.\r\n\r\n\r\n## Example use\r\n\r\nUse pip to import the package.\r\n\r\n```ccs\r\npip import pymbc\r\n```\r\n\r\n## Example python code\r\n\r\nOpen a CSV file containing PTS data, plot it against depth and time, and convert it to Well Test Analysis format.\r\n```css\r\nimport pymbc as mbc\r\nfrom pathlib import Path\r\n\r\ncsvfile = Path(r'tests\\_20230626_PTS__A.csv')\r\nmb = mbc.MbcLog()\r\nmb.ReadMbCsv(csvfile)\r\nfnotes = csvfile.parent / (csvfile.stem + '_notes' + csvfile.suffix)\r\nmb.ReadNotes(fnotes)\r\nmb.CreateRunLogGuess()\r\nplotdef = [mbc.PlotDefinition('TIMEDELTA', 'DEPTH', 'slategray', '-', False),\r\n\t\t mbc.PlotDefinition('TIMEDELTA', 'PTS_PRES', 'royalblue', '-', False),\r\n\t\t mbc.PlotDefinition('TIMEDELTA', 'PTS_FREQ', 'limegreen', '-', False),\r\n\t\t mbc.PlotDefinition('TIMEDELTA', 'PTS_TEMP', 'tomato', '--', True)]\r\nst,figt = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=False)\r\n\r\nplotdef = [mbc.PlotDefinition('DEPTH', 'TIMEDELTA', 'black', '-', False),\r\n\t\t mbc.PlotDefinition('DEPTH', 'PTS_FREQ', 'limegreen', '--', True),\r\n\t\t mbc.PlotDefinition('DEPTH', 'PTS_PRES', 'royalblue', '-', False),\r\n\t\t mbc.PlotDefinition('DEPTH', 'PTS_TEMP', 'tomato', '-', True)]\r\nsd,figd = mbc.PlotLog(mb, plotdef, title=mb.name, depthaxis=True) \r\npts = mb.PtsWellTestAnalysis()\r\n\t\r\n``` \r\n\r\n\r\n\r\n# CHANGELOG\r\n\r\n## Version 1.1.3 13/09/2024\r\n- Now works with TIMESTAMPISO when plotting vs. time.\r\n- Updated sample data\r\n\r\n## Version 1.1.2 29/07/2024\r\n- Updated sample code in README.md\r\n\r\n## Version 1.1.1 19/06/2024\r\n- Improved CreateRunLogGuess method to split log in to multiple runs automatically.\r\n\r\n## Version 1.1.0 12/06/2024\r\n- Changed the column names to be consistant with industry norms.\r\n- Added CreateRunLogGuess method to split log in to multiple runs automatically.\r\n\r\n## Version 1.0.0 21/05/2024\r\n- Released to PyPI\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A python package for working with MB Century downhole data.",
"version": "1.1.3",
"project_urls": {
"Homepage": "https://github.com/tricky67/pymbc"
},
"split_keywords": [
"dab",
" csv",
" pts",
" htcc",
" century logger"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "99a5b85eb9fe65cd5ef01b2a20d569837d5387e4509b178789a62c283a20c793",
"md5": "4729d446775b35f195bf525f4d205cac",
"sha256": "9e07fd1cc91acd34a5f3afb9f5f473badd999efacf97365be43669b8c9d131fd"
},
"downloads": -1,
"filename": "pymbc-1.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4729d446775b35f195bf525f4d205cac",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 22906,
"upload_time": "2024-09-13T02:19:04",
"upload_time_iso_8601": "2024-09-13T02:19:04.137779Z",
"url": "https://files.pythonhosted.org/packages/99/a5/b85eb9fe65cd5ef01b2a20d569837d5387e4509b178789a62c283a20c793/pymbc-1.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "367979cae51da364605842e7eb027856a455249ab8c290141b8a17d621b3c0c4",
"md5": "f48b21ec912cb4fc8d70e2c4a8412870",
"sha256": "3e5b225ff9d2f8ea6af6fe4b5537d838fd32bcb719fcfa5b2c637df67e9050c1"
},
"downloads": -1,
"filename": "pymbc-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "f48b21ec912cb4fc8d70e2c4a8412870",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 23426,
"upload_time": "2024-09-13T02:19:05",
"upload_time_iso_8601": "2024-09-13T02:19:05.297788Z",
"url": "https://files.pythonhosted.org/packages/36/79/79cae51da364605842e7eb027856a455249ab8c290141b8a17d621b3c0c4/pymbc-1.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-13 02:19:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tricky67",
"github_project": "pymbc",
"github_not_found": true,
"lcname": "pymbc"
}