Skip to contents

Run clean_logs() on the output from clean_metadata()

Usage

meta_clean_logs(meta)

Arguments

meta

Data frame. meta data processed in add_sites()

Value

Data frame containing

  • file_names and paths of the log files

  • events and their date_times

  • lat and lon for "gps" events

  • rec_file, rec_size and rec_end for "recording" events (recording start is the date_time of the event)

  • schedule information such as schedule_date, schedule_name, schedule_lat, schedule_lon, schedule_sr (sunrise), and schedule_ss (sunset)

  • metadata information such as meta_serial and meta_firmware

  • other columns from meta provided

Examples


  file_vec <- fs::dir_ls(fs::path_package("extdata", package = "ARUtools"), recurse = TRUE,)
  m <- clean_metadata(project_files = file_vec, file_type = 'json',pattern_site_id = "000\\d+" )
#> Extracting ARU info...
#> Extracting Dates and Times...
#> ! Omitted 1 extra, non-json/GPS files
#> ! Detected 2 log files

  logs <- meta_clean_logs(m)