Read Migrate Technology Ltd. `.lux` files and re-formats them to a skytrackr compatible format.

stk_read_lux(files, verbose = TRUE)

Arguments

files

A `.lux` file or list of `.lux` files with light level values

verbose

provide detailed feedback

Value

A skytrackr compatible data frame for use in further location estimation.

Examples

# read in the demo lux file
df <- stk_read_lux(
 system.file("extdata/cc876.lux", package="skytrackr")
)
#> ══ Reading data ══════════════════════════════════════════════ skytrackr v1.1 ══
#> 
#>  Processing file: cc876.lux !
#> 
#> ── Header information ──
#> 
#>     “Migrate Technology Ltd logger Type: 13.2061.8, current settings:
#>     Approx 1'C resolution. Altimeter fitted. Light range 5, clipped
#>     OFF, max light regime, floor 0.08lux. Logger number: CC876
#>     
#>     MODE: 15 (light, temperature, pressure recorded) LIGHT: Sampled
#>     every minute with max light recorded every 5mins. TEMPERATURE and
#>     PRESSURE: Sampled and recorded every 30mins. WET/DRY and
#>     CONDUCTIVITY: NOT RECORDED Max record length = 16 months. Total
#>     battery life approx 13 months. Logger is currently 13 months old.
#>     
#>     Programmed: 29/06/2021 19:44:10. Start of logging (DD/MM/YYYY
#>     HH:MM:SS): 30/06/2021 19:44:10 Age at start of logging (secs):
#>     3923996, approx 2 months End of logging (DD/MM/YYYY HH:MM:SS):
#>     22/06/2022 16:15:21 Age at end of logging (secs): 34756240,
#>     approx 13 months Timer (DDDDD:HH:MM:SS): 00356:20:30:44 Drift
#>     (secs): 27. Memory not full.  Pointers:
#>     60380,209592,12105912,12105912,0,0,49,60% light mem used,68%
#>     wet/dry/temp mem used Tcals (Ax^3+Bx^2+Cx+D): NaN,NaN,NaN,NaN
#>     Approx 1'C resolution. Altimeter fitted. Light range 5, clipped
#>     OFF, max light regime, floor 0.08lux.”
#>     
#>