Learn R Programming

SDAR (version 0.9-55)

read.LAS: read.LAS files

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

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.

Examples

Run this code
# NOT RUN {
 fpath <- system.file("extdata", "saltarinST_1A_well_log.LAS", package = "SDAR")
 well_log <- read.LAS(fpath, repl.null=TRUE)
 head(well_log)
 
# }

Run the code above in your browser using DataLab