Learn R Programming

bioRad (version 0.4.0)

read_vpts: Read a time series of vertical profiles (vpts) from file

Description

Read a time series of vertical profiles (vpts) from file

Usage

read_vpts(file, radar, wavelength = "C")

Arguments

file

A text file containing the standard output (stdout) generated by vol2bird (or the package function calculate_vp).

radar

A string containing a radar identifier.

wavelength

Radar wavelength in cm, or one of 'C' or 'S' for C-band and S-band radar, respectively, in which case C-band wavelength is assumed to be 5.3 cm and S-band wavelength 10.6 cm

Value

An object inheriting from class vpts, see vpts for details.

Examples

Run this code
# NOT RUN {
# locate example file:
vptszipfile <- system.file("extdata", "vpts.txt.zip", package = "bioRad")
# }
# NOT RUN {
unzip(vptszipfile, "your/directory/and/file/name.txt")
# load time series:
ts <- read_vpts("your/directory/and/file/name.txt", radar = "KBGM", wavelength = "S")
ts
# }

Run the code above in your browser using DataLab