Saturday, June 25, 2016

Log Viewer Update - Graphical Curve Editing

Half or more than half of the time you take care of cleaning up data.  It is important that your tools work quickly and are easy to use.  Two days ago I added the ability to create, modify and delete formation tops.  Today this update to the Log Viewer allows graphical editing of any of the curves.  Below is a quick demonstration of how easy it is in my Log Viewer to correct measurements.

Let's revisit my Area 51 Roswell, New Mexico log.  In this example I'm going to draw a little bit on the Gamma Ray to make it look more real instead of just the interpolated numbers I generated.


 I've creatively named my curve editing mode.  This menu options toggles Curve Editing on and off.


Now, I just click where I would like to correct the log.  Once I have a couple dots I can right click and the viewer will interpolate in between my chosen points.  If I click somewhere I don't like, I just CTRL+Z to undo the last or keep hitting undo to remove as many as I want.  This is a feature you don't often get with software packages.  


Once happy with my edits I right click and I get my newly edited curve.  This is starting to look more geologic or like an evil character's nose from a Disney film.


Finally I can save my work by just outputting a new LAS. 


Cheers,
Jon

#LogViewer #Python #CodingWhile2YearOldNaps

Thursday, June 23, 2016

Log Viewer Update - Tops Picking

Graphically creating, moving and deleting tops in a log viewer is a must.  Typing in depths is not acceptable.  Making it easy to use is even better.  For those Recall users out there, you know that there are more buttons than just the left mouse button.  Most time in software you left click on EVERYTHING.  This can create a LOT of extra clicks.  "Click this reticle icon to edit tops.  Click here to create a top.  Hover your mouse over the top, raise your right foot and change to a different program to delete tops."

I've made mine pretty simple.  Select the menu to edit tops.  Left click and drag to move existing tops.  Right click to create a new one.  Middle click to delete.  All popup windows appear underneath the mouse click.  A temporary gray line appears while you are moving an existing tops.

I've got my made-up Roswell, New Mexico log here for an example.  (Yeah, I looked up API number for the Chaves County)



So to do anything you just have to turn on Tops Editing.



I creatively just added <Tops Editing Mode> to the title to know whether or not the mode was enabled.  



Right click and type in the new top name.  That's it.  



To move the top requires a simple left click and drag.  While dragging there is a temporary gray line to help that the move is in the right spot.  


I can create.  I can edit.  Now to delete I could just middle click to remove a top.


All of this is done in memory.  So saving edits is done simply from the menu bar.  


This motivates me to build a cross section view so I can correlate across multiple wells.

Wednesday, June 8, 2016

Permian Basin - Defining Study Areas


Above is a map of well locations from UT Lands and some geologic features from the Bureau of Economic Geology.  Quickly looking at this three different area pop out immediately.

Area 1


In Reagan county there is a lot of activity with the exploitation of the Wolfcamp.  As the Ozona arch and Big Lake fault can provide some interesting geologic features, the better part of the Wolfcamp reservoir quality lies in the northeast section of data points.  Thankfully there are a lot of well control points to choose from for vertical and horizontal wells.

Area 2


Up north in Midland Basin is the heart of the Spraberry trend.  Wells along the Martin and Andrews county line will provide a wonderful analog in this area.

Area 3


Delaware Basin is the sleepy giant that has gotten a ton of press in the last two years with large IP rates from short laterals.  The basin has slightly higher pressures than Midland but the acreage blocks are more of a shotgun blast / military camouflage type pattern.  In picking well control points you need to stay away from that eastern basin outline.  Also, the faulting to the south presents some challenges as well.

All maps were put together using free software and freely available public data.  QGIS was used as a mapping software.  And UT Lands and BEG were used as data sources.  

#QGIS  #DataMining  #PermianBasin

Tuesday, June 7, 2016

Data Mining Public Data - Curve Aliasing

One of the things that most scientists take for granted is when data is all nice and organized and you can just work.  What if you need to build up that list of curve aliases?  Here is a workflow I just went through to build up my alias list for triple combo curves.
  1. Download 30 gigs of LAS from UTLands
  2. Write Python code to read each LAS and save curve name, units and description to SQL table
  3. Query SQL for curves that have keywords in their description
My little table of logging curves for this one data source is just over 270k rows.  Neat.  

When going through the curves there were enough instances with descriptions I didn't need to query the SPWLA mnemonic search.  If a curve was in the list that I didn't recognize I could quickly query all instances of that curve and look at the available descriptions.  


I wonder what I could learn by mapping out various header information?  Stay tuned.

Monday, June 6, 2016

Log Viewer Update - shading and tops look nice

There are several code projects going on all at once; Petrophysics Wireline Log Viewer, Reservoir Engineering Production Decline Analysis, Geosteering Correlation, etc.  This week I added some formation tops to the Petrophysics Log Viewer.  In this snapshot I am showcasing the colors fills generated by an ECS and CMR log.  The CMR bins are cumulatively built on one another.   In the middle I have the lithology showing clay, calcite, and quartz.  To the right is the porosity track with shading total porosity as green and effective porosity in lime green.   



The formation top colors can have their own colors and are saved by HTML code.  

The log viewer takes less than 4 seconds to startup and display the log with all the shading.  I've already worked out the code to graphically pick/move/delete tops and am working on the code to edit curves graphically.  

For all the code savvy people out there; Python 3.x and I'm only using Tkinter as the only dependency.  All code for tracks and curves has been generated in-house.  This will allow the log viewer to run on Windows, Linux or Mac without any code changes necessary.