n38_to_m38: output m38

View source: R/import_export.R

n38_to_m38R Documentation

output m38

Description

This function processes decoded n38 data into the m38 format used by Geonics. Its a bit useless from an R perspective, but users may wish to compare outputs with Geonics' own conversion software or process it further with the DAT38MK2 application.

Usage

n38_to_m38(n38_decoded = NULL)

Arguments

n38_decoded

Nested list output by n38_decode

Value

Large character; combination of location data and calibrated instrument readings. Note that record timestamps won't always agree with an 'official' m38 file at the microsecond level.

Note

Write output to file in working directory with e.g. write(m38_example, paste0('m38_from_R_', Sys.Date(), '.m38'))

Examples

data('n38_demo')
n38_chunks <- n38_chunk(n38_demo)
n38_decoded <- n38_decode(n38_chunks)
m38_example <- n38_to_m38(n38_decoded)

obrl-soil/em38 documentation built on Sept. 25, 2023, 10:01 p.m.