readTR: Read a TRA/TRZ/TRB/TRC acceleration record (GSC and SGC...

View source: R/readTR.R

readTRR Documentation

Read a TRA/TRZ/TRB/TRC acceleration record (GSC and SGC families).

Description

TRA/TRZ have a multi-column body after END_HEADER; the last column is the corrected acceleration. TRB/TRC have a single-column body after the ⁠Unidades:⁠ (TRB) or USER5 (TRC) line. OCID lives in the header: ⁠Component:⁠ (TRA/TRZ), ⁠Componente:⁠ (TRB), ⁠STREAM:⁠ (TRC).

Usage

readTR(file, type)

Arguments

file

Path to the file.

type

One of "TRA", "TRZ", "TRB", "TRC".

Value

LONG data.table(t, OCID, s).

Examples

file <- tempfile()
writeLines(c(
  "Component: HNZ",
  "rate: 100",
  "END_HEADER",
  "skip1",
  "skip2",
  "1 2 3",
  "4 5 6"
), file)
readTR(file, type = "TRA")


gmsp documentation built on July 18, 2026, 5:07 p.m.