Is there an R package that can read .las files, i.e. Schlumberger Log Ascii standard files?
It should be capable of reading las 2.0 files.
Please note:
- I am not talking about LIDAR .las files here.
- I am talking about geophysical well-hole logging files (not logging files for computer apps, demons and the like)
Searching for R and Las and Logfiles on the internet gives me personally too many red herrings.
Updates from Comments:
I am also considering scripts or APIs that could make use of language bindings for R.
So far, I've found the following scripts:
- las2witsml - a ruby script
- Text-LAS-Parser-0.01 - a perl script
However, all these scripts so far seem not very mature to me.
There is also a freeware software package "Log Data Toolbox" by Schlumberger, but it only runs under Windows and might have compatibility issues with non-english Versions of Windows (if I remember correctly).
There is a complex java applet from the Kansas Geological Survey, but it is a bit sluggish for large .las input-files.
There is a ruby project and a python project. Also, see this link for a nice set of example las files.
Sample of a *.las file:
The objective when reading the file is to ignore the file header and copy only the data which came after
(~ASCII)
line in addition each column header So we copy all the file, and search in it line-by-line until we reach the (~ASCII) line, then we copy the line before it (the header) and all what came after it (the data), and we remove the (~ASCII) line.Note that we remove the
(#)
symbol from the header line.The last step is convert the data to table and then write it as csv file.
The complete code: