pamBinRead: Read Pamguard Binary Data

Description Usage Arguments Value Note Author(s)

View source: R/pamBinRead.R

Description

A wrapper for reading various types of binary data.

Usage

1
2
3
4
5
6
pamBinRead(
  fid,
  what = c("int8", "int16", "int32", "int64", "float", "double", "character"),
  n,
  seek = FALSE
)

Arguments

fid

The binary file being read

what

The type of data to read. Int64 is not handled natively by R, see note.

n

The number of objects to read.

seek

Whether or not to just seek instead of reading

Value

Data of the type and number specified.

Note

R does not natively support 64-bit integers. Current implementation is to read an int64 as 8 separate 1-byte raw pieces. These are converted from hexidecimal, shifted by the appropriate power of 2, then summed. Currently cannot read more than one int64 at a time, shouldn't be necessary.

Author(s)

Taiki Sakai taiki.sakai@noaa.gov


PamBinaries documentation built on Sept. 2, 2020, 5:07 p.m.