dbpf_GP5W_file_formatter: Reformat GP5W file

View source: R/dbpf_GP5W_file_formatter.R

dbpf_GP5W_file_formatterR Documentation

Reformat GP5W file

Description

Removes some things from GP5W files

Usage

dbpf_GP5W_file_formatter(con, in_path)

Arguments

con

connection to SensorDB

in_path

character, path to csv directory

Details

This function is very use-specific. It should only ever be applied to the following file structure: ———— Logger: #E50B38 'PT1000TEMP' - USP_EXP2 - (CGI) (...) Delta Time: 666 secs No,Time,#1:oC,#HK-Bat:V,#HK-Temp:oC (Parameter changed ('E50A4C_20150609132643')) 1,20.06.2016 16:57:55,26.2559,3.616,32.69 ... — OR — Logger: #E50B38 'PT1000TEMP' - USP_EXP2 - (CGI) (...) Delta Time: 666 secs No,Time,#1:oC,#2:oC,#3:oC,#HK-Bat:V,#HK-Temp:oC (Parameter changed ('E50A4C_20150609132643')) 1,20.06.2016 16:57:55,26.2559,26.6283,26.8267,3.616,32.69 ...

Function takes a file path, scans for csv files to be converted. Fun variables: in_path Desktop/Yk2021_test/testdir/ new_dir Desktop/Yk2021_test/testdir_clean/ in_file Desktop/Yk2021_test/testdir/testfile.csv out_file Desktop/Yk2021_test/testdir_clean/testfile.csv

Value

Creates directory with new cleaned files.

Author(s)

Hannah Macdonell <hannah.macdonell@carleton.ca>


geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.