bs_build_realtime: Build real-time data from the 2019 deployment

Description Usage Arguments Details Value Examples

View source: R/build-realtime.R

Description

The build of real-time data is split into multiple steps that allow certain types of changes to be applied without unnecessary loading of files. In the code these are split into "read" and "write" functions.

Usage

1
bs_build_realtime(out_dir = ".")

Arguments

out_dir

The directory in which output files should be generated.

Details

Read functions are concerned with taking raw data files and filtering out data that is corrupted or otherwise unreadable. These functions also check for new files and download them if they aren't present locally. These functions add to the previously calculated version present in the build cache, which keeps the processing time to a minimum and keeps the build logs from being cluttered with parse errors from unreadable files that have already been parsed months ago. Note that the value of bs_cache_dir() and bs_build_cache_dir() are used to determine where FTP downloads and intermediary build files are stored.

Whereas the output of read functions is generally stable, methods to flag bad measurements and perform corrections that require data from multiple sensors can and should be updated frequently. In the code these are grouped as "write" functions. These calculations are rarely expensive and thus the result is not cached.

Value

out_dir, invisibly.

Examples

1
2
3
4
## Not run: 
bs_build_realtime()

## End(Not run)

paleolimbot/bsrto documentation built on Dec. 12, 2021, 5:44 a.m.