read_focal_opc: Read OPC raw data file

View source: R/opc.R

read_focal_opcR Documentation

Read OPC raw data file

Description

OPC data are stored in a unique binary file format with *.D00 file extension. This function was adapted from Mark Baumgartner's IDL routine of the same name to read data from a *.D00 file and extract the id flags and data fields.

Usage

read_focal_opc(
  ifile,
  nheader = 27,
  tformat = "WHOI %m/%d/%y %H:%M:%S \n\n\r",
  tz = "UTC"
)

Arguments

ifile

path to .D00 file

nheader

number of bits in header (default = 27)

tformat

strptime format used to extract timestamp from header

tz

timezone

Value

list containing start_time of the data file and vectors of the id flags and corresponding data values


hansenjohnson/opcr documentation built on Jan. 24, 2023, 5:04 a.m.