load_CS_HF: Load Campbell Sci hi frequency (HF) data, if header is TOB3...

View source: R/eddy_cov.R

load_CS_HFR Documentation

Load Campbell Sci hi frequency (HF) data, if header is TOB3 need to convert to TOA5 using card convert. Uses data.table package for loading for increased performance. Should load 5 gigs in a few seconds.

Description

** Watch timezone, data.table defaults to UTC for performance need to manually change after when working with smaller subsection **

Usage

load_CS_HF(
  path,
  datetime = "TIMESTAMP",
  col_names = NA,
  skip_4_names = 1,
  skip_4_dat = 4,
  num_rows = NA,
  threads = 8
)

Arguments

path

A path to the data readout to be loaded.

datetime

String to be used for the datetime column.

col_names

Vector of column names same length as number of columns in the readout.

skip_4_names

Number of lines to skip in the readout to get to column names. Default = 1.

skip_4_dat

Number of lines to skip in the readout to get data. Default = 3.

num_rows

Number of rows to retrieve.

Value

dataframe

Examples

ex_path <- system.file('extdata', 'HF_EC_example.dat', package = 'wxlogR')
df <- load_CS_HF(ex_path)

acebulsk/wxlogR documentation built on Dec. 22, 2024, 7:42 a.m.