Skip to content

oilshit/las_converter

Repository files navigation

las_converter

Python projects for well log analysis

What is LAS file | Project feature(s) | Project dependencies | Project setup | Getting started


What is LAS file

back to top

LAS file contains physical properties data of vertical subsurface used in well log analysis. Well log data saved in LAS file contains some information, including its file version, well description, physical rock curve along with data table and other information related to the well data.

back to top


Project feature(s)

back to top

  • Load LAS data from various sources:
    • URL link (https://example.com/.../.../path/to/lasfile.LAS)
    • Local file (path/to/lasfile.LAS instead without https)
  • Getting well log description.
  • Save well log data into JSON file (as well.json in results folder).
  • It also can save data into CSV file with two different outputs in results folder
    • well.csv contains well data table
    • description.csv contains well data legends and description

back to top


Project dependencies

back to top

This project uses Python 3 with dependencies provided in requirements.txt.

back to top


Project setup

back to top

Firstly, you need to clone this repository using this command below on Terminal (Linux or Mac) or WSL (Windows).

git clone https://github.com/oilshit/las_converter
cd las_converter

Python environment setup is recommended for using this project repository. Type ./check-pyenv.sh (using Linux/Unix terminal console or WSL console) for validating Python environments. By default, Python virtualenv has not been set yet so that it will be return results as below.

'env' directory is not exist.
 you can install Python virtualenv (and also activate it) by
 virtualenv env; source env/bin/activate 

 install Python dependencies then by
 pip install -r requirements.txt

or you can create the environment variable manually by typing command below on Linux or MacOS (and also WSL console).

python -m venv venv
source venv/bin/activate

and also for Windows.

python -m venv venv
venv\Scripts\activate

In terminal, just type the yellow text given to proceed.

back to top


Getting started

back to top

For the first time use, firstly import the external function by

# import las_converter
import las_converter

# get help
help(las_converter)

or

# import las_converter
from las_converter import WellLog

# get help
help(WellLog)

There is a file named las_testing.py used for testing purposes. There is also Jupyter Notebook file called using_las_converter_in_well_log_analysis.ipynb that also can be used in Google Colab console.

For testing the saved files in results folder, there is also Google Colab Notebook file using_csv_made_from_las_converter_for_well_log_analysis.ipynb.

back to top

About

LAS well log file converter to various files (JSON and CSV supported) to be readable and manageable with data science approach

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published