Created
May 5, 2022 03:16
-
-
Save kinverarity1/b2e84785375f32fd6d0d1179594040cf to your computer and use it in GitHub Desktop.
untitled.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"id": "51decfff", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import lasio" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"id": "2e7faded", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"data = \"\"\"\n", | |
"~VERSION INFORMATION\n", | |
" VERS. 2.0 : CWLS LOG ASCII STANDARD -VERSION 2.0\n", | |
" WRAP. NO : ONE LINE PER DEPTH STEP\n", | |
"~WELL INFORMATION \n", | |
"#MNEM.UNIT DATA DESCRIPTION\n", | |
"#----- ----- ---------- -------------------------\n", | |
"STRT .M 1670.0000 :START DEPTH\n", | |
"STOP .M 1669.7500 :STOP DEPTH\n", | |
"STEP .M -0.1250 :STEP \n", | |
"NULL . -999.25 :NULL VALUE\n", | |
"COMP . ANY OIL COMPANY INC. :COMPANY\n", | |
"WELL . AAAAA_2 :WELL\n", | |
"FLD . WILDCAT :FIELD\n", | |
"LOC . 12-34-12-34W5M :LOCATION\n", | |
"PROV . ALBERTA :PROVINCE \n", | |
"SRVC . ANY LOGGING COMPANY INC. :SERVICE COMPANY\n", | |
"DATE . 13-DEC-86 :LOG DATE\n", | |
"UWI . 100123401234W500 :UNIQUE WELL ID\n", | |
"~CURVE INFORMATION\n", | |
"#MNEM.UNIT API CODES CURVE DESCRIPTION\n", | |
"#------------------ ------------ -------------------------\n", | |
" DEPT .M : 1 DEPTH\n", | |
" DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME\n", | |
" RHOB .K/M3 45 350 01 00 : 3 BULK DENSITY\n", | |
" NPHI .V/V 42 890 00 00 : 4 NEUTRON POROSITY\n", | |
" SFLU .OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY\n", | |
" SFLA .OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY\n", | |
" ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY\n", | |
" ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY\n", | |
"~PARAMETER INFORMATION\n", | |
"#MNEM.UNIT VALUE DESCRIPTION\n", | |
"#-------------- ---------------- -----------------------------------------------\n", | |
" MUD . GEL CHEM : MUD TYPE\n", | |
" BHT .DEGC 35.5000 : BOTTOM HOLE TEMPERATURE\n", | |
" BS .MM 200.0000 : BIT SIZE\n", | |
" FD .K/M3 1000.0000 : FLUID DENSITY\n", | |
" MATR . SAND : NEUTRON MATRIX\n", | |
" MDEN . 2710.0000 : LOGGING MATRIX DENSITY\n", | |
" RMF .OHMM 0.2160 : MUD FILTRATE RESISTIVITY\n", | |
" DFD .K/M3 1525.0000 : DRILL FLUID DENSITY\n", | |
"~OTHER\n", | |
" Note: The logging tools became stuck at 625 metres causing the data \n", | |
" between 625 metres and 615 metres to be invalid.\n", | |
"~A DEPTH DT RHOB NPHI SFLU SFLA ILM ILD\n", | |
"1670.000 123.450 2550.000 0.450 123.450 123.450 110.200 105.600\n", | |
"1669.875 123.450 2550.000 0.450 123.450 123.450 110.200 105.600\n", | |
"1669.750 123.450 2550.000 0.450 123.450 123.450 110.200 105.600\n", | |
"\"\"\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"id": "17a6ae3d", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"las = lasio.read(data)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"id": "a746ed5d", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<lasio.las.LASFile at 0x1d06a740fd0>" | |
] | |
}, | |
"execution_count": 9, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"las" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"id": "b5cb6bb9", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>DT</th>\n", | |
" <th>RHOB</th>\n", | |
" <th>NPHI</th>\n", | |
" <th>SFLU</th>\n", | |
" <th>SFLA</th>\n", | |
" <th>ILM</th>\n", | |
" <th>ILD</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>DEPT</th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>1670.000</th>\n", | |
" <td>123.45</td>\n", | |
" <td>2550.0</td>\n", | |
" <td>0.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>110.2</td>\n", | |
" <td>105.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>1669.875</th>\n", | |
" <td>123.45</td>\n", | |
" <td>2550.0</td>\n", | |
" <td>0.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>110.2</td>\n", | |
" <td>105.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>1669.750</th>\n", | |
" <td>123.45</td>\n", | |
" <td>2550.0</td>\n", | |
" <td>0.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>123.45</td>\n", | |
" <td>110.2</td>\n", | |
" <td>105.6</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" DT RHOB NPHI SFLU SFLA ILM ILD\n", | |
"DEPT \n", | |
"1670.000 123.45 2550.0 0.45 123.45 123.45 110.2 105.6\n", | |
"1669.875 123.45 2550.0 0.45 123.45 123.45 110.2 105.6\n", | |
"1669.750 123.45 2550.0 0.45 123.45 123.45 110.2 105.6" | |
] | |
}, | |
"execution_count": 10, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"las.df()" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"id": "14ac8d91", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"from welly import Well" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"id": "c3e9f806", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"c:\\devapps\\kinverarity\\projects\\welly\\welly\\well.py:194: FutureWarning: From v0.5 the default will be 'original', keeping whatever is used in the LAS file. If you want to force conversion to metres, change your code to use `index='m'`.\n", | |
" warnings.warn(m, FutureWarning)\n" | |
] | |
}, | |
{ | |
"data": { | |
"text/html": [ | |
"<table><tr><th style=\"text-align:center;\" colspan=\"2\">AAAAA_2<br><small>100123401234W500</small></th></tr><tr><td><strong>crs</strong></td><td>CRS({})</td></tr><tr><td><strong>location</strong></td><td>12-34-12-34W5M</td></tr><tr><td><strong>province</strong></td><td>ALBERTA</td></tr><tr><td><strong>td</strong></td><td>None</td></tr><tr><td><strong>data</strong></td><td>DT, ILD, ILM, NPHI, RHOB, SFLA, SFLU</td></tr></table>" | |
], | |
"text/plain": [ | |
"Well(uwi: '100123401234W500', 7 curves: ['DT', 'RHOB', 'NPHI', 'SFLU', 'SFLA', 'ILM', 'ILD'])" | |
] | |
}, | |
"execution_count": 12, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"Well.from_las(data)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"id": "4c44d85c", | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python [conda env:wrap] *", | |
"language": "python", | |
"name": "conda-env-wrap-py" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.8.6" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment