Learn R Programming

gemlog (version 0.41)

PlotMetadata: Read and plot Gem metadata

Description

ScanMetadata reads a Gem metadata file produced by Convert. PlotMetadata plots battery, temperature, GPS metadata.

Usage

ScanMetadata(fn, plot = TRUE)
PlotMetadata(M, xlim = range(M$t, na.rm = TRUE))

Arguments

fn

Filename to read

plot

If true, plots metadata after reading the file

M

Metadata, such as output of ScanMetadata

xlim

Time limits to plot, in fractional days of year

Value

ScanMetadata: list including metadata from file:

millis

millis count of metadata sample

batt

battery voltage

temp

temperature in (deg C)

maxWriteTime

maximum time required to write a sample

minFifoFree

minimum number of free sampes in FIFO buffer

maxFifoUsed

maximum number of used samples in FIFO buffer

maxOverruns

maximum number of sample overruns

gpsOnFlag

1 if gps is turned on, 0 otherwise

unusedStack1

free memory in stack 1

unusedStackIdle

free memory in idle stack

PlotMetadata: None.

Examples

Run this code
# NOT RUN {
M = ScanMetadata('metadata/001metadata_000.txt') # scan the first metadata file from Gem SN 001
# }
# NOT RUN {
data(gem_metadata)
PlotMetadata(gem_metadata)

# }

Run the code above in your browser using DataLab