Learn R Programming

gemlog (version 0.41)

gemlog-package: gemlog

Description

gemlog

Arguments

Details

The DESCRIPTION file: gemlog gemlog ~~ An overview of how to use the package, including the most important ~~ ~~ functions ~~

References

Anderson, JF, JB Johnson, DC Bowman, and TJ Ronan (2018). The Gem Infrasound Logger and Custom-Built Instrumentation. Seismological Research Letters 89 (1), 153-164. https://doi.org/10.1785/0220170067

Examples

Run this code
# NOT RUN {
# define bitweight for 0.5 inch sensor with Rg = 2.2k
sensitivity = 22.014e-6 # 22.014 uV/Pa
Rg = 2.2 # gain-setting resistor value in kilo-ohms
gain = 1 + 49.4/2.2 # amplifier gain
A2D = 0.256/2^15 # volts per count in analog-digital converter
bitweight = A2D / (gain * sensitivity) # conversion from counts to Pa (Pa/count)

# convert files from two Gems (SNs 000 and 001)
Convert('raw/000', bitweight = bitweight)
Convert('raw/001', bitweight = bitweight)
# }
# NOT RUN {
# }
# NOT RUN {
ReadGem(0:1, 'raw/000') # read files raw/000/FILE0000.TXT and raw/000/FILE0001.TXT
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab