audiomoth: Reading and interpreting Audiomoth file name

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/seewave.r View source: R/seewave.r

Description

This function reads and decomposes the files names generated by an Audiomoth device, audio digal recorders produced by the society Open Acoustic Devices.

Usage

1
audiomoth(x, tz = "")

Arguments

x

a character vector with .wav file names.

tz

a character vector defining a time zone specification. See as.POSIXct

Details

The digital recorder Audiomoth produced by Open Acoustic Devices (https://www.openacousticdevices.info/) generates .wav files which names contains information about the time of recording. The information is encoded in hexadecimal (e.g. "5E9089F0"). The function audiomoth decodes this information so that time of recording can be retrieved in numeric or time format.

Value

The function returns a data.frame with the following columns:

year

year of recording, numeric

month

month of recording, numeric

day

day of recording, numeric

hour

hour of recording, numeric

min

minute of recording, numeric

sec

second of recording, numeric

time

time in POSIX format

Note

For the time zone see the 607 time zone names stored in OlsonNames.
The file names of Audiomoth may change with time. There is no guarantee that the function will be updated on time.

Author(s)

Jerome Sueur

References

See Open Acoustic Devices website for details regarding the Audiomoth: https://www.openacousticdevices.info/.

See Also

audiomoth.rename, as.POSIXct, OlsonNames, songmeter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## recording done on Friday 10 April 2020 16:54:44 UTC
## computer time zone (local time, Europe, Paris for the test)
audiomoth("5E90A4D4.WAV")
## UTC
audiomoth("5E90A4D4.WAV", tz="UTC")
## GMT (= UTC as UTC and GMT are synonyms)    
audiomoth("5E90A4D4.WAV", tz="GMT")
## UTC -2
audiomoth("5E90A4D4.WAV", tz="Etc/GMT-2")
## in Asia, Japan
audiomoth("5E90A4D4.WAV", tz="Japan")
## in South-America, Cayenne
audiomoth("5E90A4D4.WAV", tz="America/Cayenne")  
## several files
filenames <- c("5E914ED0.WAV", "5E915128.WAV",
"5E915380.WAV", "5E9155D8.WAV", "5E915830.WAV",
"5E915A88.WAV", "5E915CE0.WAV", "5E915F38.WAV",
"5E916190.WAV", "5E9163E8.WAV")
audiomoth(filenames)

Example output

  year month day hour min sec                time
1 2020     4  10   16  54  44 2020-04-10 16:54:44
  year month day hour min sec                time
1 2020     4  10   16  54  44 2020-04-10 16:54:44
  year month day hour min sec                time
1 2020     4  10   16  54  44 2020-04-10 16:54:44
  year month day hour min sec                time
1 2020     4  10   18  54  44 2020-04-10 18:54:44
  year month day hour min sec                time
1 2020     4  11    1  54  44 2020-04-11 01:54:44
  year month day hour min sec                time
1 2020     4  10   13  54  44 2020-04-10 13:54:44
   year month day hour min sec                time
1  2020     4  11    5   0   0 2020-04-11 05:00:00
2  2020     4  11    5  10   0 2020-04-11 05:10:00
3  2020     4  11    5  20   0 2020-04-11 05:20:00
4  2020     4  11    5  30   0 2020-04-11 05:30:00
5  2020     4  11    5  40   0 2020-04-11 05:40:00
6  2020     4  11    5  50   0 2020-04-11 05:50:00
7  2020     4  11    6   0   0 2020-04-11 06:00:00
8  2020     4  11    6  10   0 2020-04-11 06:10:00
9  2020     4  11    6  20   0 2020-04-11 06:20:00
10 2020     4  11    6  30   0 2020-04-11 06:30:00

seewave documentation built on July 14, 2021, 5:10 p.m.

Related to audiomoth in seewave...