read.LAS: read.LAS files

Description Usage Arguments Note Author(s) Examples

View source: R/read.LAS.R

Description

Log ASCII Standard (LAS) is a standard file-format common in the oil-and-gas and water-well industries to store well log information. This function is designed to read Log ASCII Standard (LAS) files; the objective of this function is to omit the information in the header of the LAS file, and extract only the data (curve information ~A "ASCII Log Data") to keep it into R data structure data.frame. Also, it includes the option of write the data table (curve information) as CSV file. WARNING: This method is very much in an alpha stage. Expect it to change.

Usage

1
read.LAS(filePath, repl.null = FALSE, writecsv=FALSE)

Arguments

filePath

the name of the .LAS file which the data are to be read. If filePath does not contain an absolute path, the file name is relative to the current working directory. filePath can also be a complete URL.

repl.null

logical, default FALSE. It refers to null values; commonly used null values in .LAS files are -9999, -999.25 and -9999.25. If this argument is set to TRUE, the null values will be replaced by missing values (NA).

writecsv

logical, default FALSE. If TRUE the data ~A (ASCII Log Data) will be saved in a CSV format. Note that the file is written to your working directory; row and column names are included. See default options of write.table function.

Note

read.LAS function included in SDAR packages is not very mature yet; it is an experimental version. We are working on making it compatible with versions 1.2, 2.0 and 3.0 of the LAS file specification published by the Canadian Well Logging Society(CWLS).
This is NOT a function to read LAS file formats used for Remote Sensing Data (also called LAS files); there is a package on CRAN called rlas to read and write this format.
The source of the file "saltarinST_1A_well_log.LAS" was provided by Alejandro Mora of HOCOL S.A.

Author(s)

John Ortiz

Examples

1
2
3
4
 fpath <- system.file("extdata", "saltarinST_1A_well_log.LAS", package = "SDAR")
 well_log <- read.LAS(fpath, repl.null=TRUE)
 head(well_log)
 

SDAR documentation built on Oct. 23, 2020, 7:09 p.m.