db.read.format {RGeostats}R Documentation

Load a Grid from a specific file into a Db

Description

Load the contents of a specific file into a Db file

Usage

db.read.format(file, mode="bmp", db=NA, verbose = 0, xwell=0, ywell=0, cwell=1,
flag.header=TRUE, nskip=0, sep = ",", dec=".", na.string = "NA", 
ncol.max=-1, nrow.max=-1,
radix = NA, modify.target = db.locmod())

Arguments

file

Name of the ASCII file containing the information according to a specific format

mode

Specific format which can be read:

  • "bmp" Grid stored in a separate file according to the BMP Bit Map format

  • "png" Grid stored in a separate file according to the PNG Portable Network Graphic format

  • "zycor" Grid stored in a separate file according to the ZYCOR format

  • "prop" Grid stored in a separate file according to .PROP IFPEN format

  • "eclipse" Grid stored in a spearate file according to the Eclipse format

  • "las" Well stored according to the LAS format (1 well per file)

  • "shape" Point stored in a spearate file according to the ShapeFile format

  • "f2g" Grid files produced by Flumy.

db

If provided, the contents of the file is added to the already existing db-class. Otherwise a new db-class is created. In the case of 'grid' data, variables are added. In the case of file organized as 'points' (i.e. for the "LAS" format), samples are added instead.

xwell,ywell,cwell

Information used when reading data according to LAS format

verbose

Verbose option

flag.header

When TRUE, te first line of the file contains the names of the variables (used when mode=CSV)

nskip

Number of lines to be skipped (used when mode=CSV)

sep

Character used as the column separator (used when mode=CSV)

dec

Character used as the decimla symbol (used when mode=CSV)

na.string

Character string used for missing information (used when mode=CSV)

ncol.max

When reading a CSV file, you can limitate the number of columns to be read per line.

nrow.max

When reading a CSV file, you can limitate the number of rows to be read.

radix

Name given to the new variable stored in the target Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Value

A db-class organized as a grid (or as a set of points for the "LAS" format)


[Package RGeostats version 14.0.10 Index]