oldImportRawFlux: Flux data import function. Also has options to pre-process...

Description Usage Arguments Details See Also Examples

Description

Deprecated June 5th. Won't work for analysis using versions > 0.2.3.

Imports flux data from multiple files, processes according to optional input parameters, and ouputs an R object according to additional optional parameters.

See 'details' for detailed notes on parameter use, supported file and datatypes, and function operation.

Usage

1
2
3
4
oldImportRawFlux(metadata.file = NULL, file = "all", filetype = "csv",
  time.format = "%Y-%m-%d %H:%M:%S", datatype = "voltages",
  minimum.interval = 120, diam = "circle", diam.fill = FALSE,
  rewrite = FALSE)

Arguments

metadata.file

A .csv of metadata. See MetaDataImport for details.

file

List of single-length characters OR matrix. See 'details'.

filetype

Single-length Character. Type of file to be imported. Defaults to 'campbell'

time.format

Time format for conversion to POSIXlt.

datatype

Single-length Character. Type of data being imported. Defaults to "voltages"

minimum.interval

Smallest time interval allowed in an import file, used to drop junk downloads. Defaults to 2 hours.

Details

file:

A list of filenames, in the current working directory. Alternatively, a dataframe present in the current global environment. Timestamp vector must be present in each file, and must be the only non-numeric column. If not the first column, input is requested to reformat.

The default, "all", will search the current working directory for all files that have supported file extensions (.txt, .csv, and .dat) and import all appropriate files. While useful for bulk file input, it's recommended to list the files out individually if there are not too many to help sanitize data inputs.

filetype: Defaults to "csv".

Campbell's .dat and .csv files often have a header or leading rows that make import difficult using R's normal import functions, and this function should deal with those idiosyncrasies appropriately.

time.format:

" e.g., "2006-05-12 16:27:00" for May 12th, 2016, 4:27 PM.

May be either a length-one character or character vector specifying the time format for each file in order of importation.

datatype: Defaults to "voltages"

Additional notes:

Campbell CR1000 files have additional metadata associated with them along with the data of interest. Usually, this metadata isn't especially relevant. FluxImport will discard additional metadata and return only a matrix of data values and associated timestamps.

See Also

Other preprocess: AutoDropOutliers, BindRawFlux, ConsoleDropOutliers, DropRainyDays, GenerateMetaTemplate, ImportMeta, ImportRawFlux, MetaDataImport, oldBindRawFlux

Examples

1
2
3
4
# If your datalogger has already applied a multiplier for you, use
# datatype = 'temperatures':
FluxImport(metadata.file = what.csv, file = list(myfil1.csv, myfile2.csv),
           filetype = "campbell", datatype = "temperatures")

bmcnellis/sapflux documentation built on May 12, 2019, 10:27 p.m.