GithubHelp home page GithubHelp logo

pglas's Introduction

pglas

PostgreSQL extension to read LAS 2.0 (well logging file).

Note: LAS files are: https://en.wikipedia.org/wiki/Log_ASCII_standard . Please, don't confuse with LIDAR files with the same extension!!

Supports only version 2.0 of LAS Specification. For more information about this format, see the Canadian Well Logging Society.

Functions:

  • las_na(file) - shows N/A value;
  • las_curves(file) - return enumerated curve names;
  • las_curve(file, curve) - return coupled values from the DEPT curve (expected to be first) and specific curve.

Example:

~/pglas$ cargo pgrx run
...
pglas=# create extension pglas;
CREATE EXTENSION

pglas=# select las_na('/home/.../lasrs/sample/A10.las');
 las_na  
---------
 -999.25
(1 row)

pglas=# select * from las_curves('/home/.../lasrs/sample/A10.las');
 IDX |     CURVE     
-----+---------------
   0 | DEPT
   1 | Perm
   2 | Gamma
   3 | Porosity
   4 | Fluvialfacies
   5 | NetGross
(6 rows)

pglas=# select * from las_curve('/home/.../lasrs/sample/A10.las','Gamma');
   DEPT   |    VAL    
----------+-----------
 1499.879 |          
 1500.129 |          
 1500.629 |          
 1501.129 |          
 1501.629 | 78.869453
 1502.129 | 78.008301
 1502.629 | 75.581558
 1503.129 | 73.238037
 1503.629 | 71.504173
 1504.129 | 71.459229
 1504.629 |   73.4478
...

See also: https://en.wikipedia.org/wiki/Well_logging

pglas's People

Contributors

shestero avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.