cigvis.io.las module#
- cigvis.io.las.load_las(fpath: str) Dict#
Load las format file (Well Logs). Return a dict contains all informations of the las file.
Each section is a dict, which contains name, ‘unit’, ‘value’ and ‘descreption’
Use data = las[‘data’] to obtain data, las[‘CURVE’][‘name’] to obtain data name of each column
Parameters#
- fpathstr
las file path
Returns#
- lasDict
las data and its information
Examples#
>>> las = load_las('log01.las') >>> las.keys() # sections dict_keys(['VERSION', 'WELL', 'CURVE', 'PARAMETER', 'data']) >>> data = las['data'] >>> data.shape (921, 5) >>> curves = las['CURVE'] # curves >>> curves['name'] ['DEPT', 'ILD', 'DPHI', 'NPHI', 'GR'] >>> curves['unit'] ['M', 'OHMM', 'V/V', 'V/V', 'API'] >>> las['WELL']['name'] # meta information ['WELL', 'LOC', 'UWI', 'ENTR', 'SRVC', 'DATE', 'STRT', 'STOP', 'STEP', 'NULL'] >>> las['WELL]['value][1] # location '00/01-12-079-14W4/0'