Update read_camtrap_dp()
to support Camtrap DP v1.0 onwards with convert_
functions
#9
Labels
function:read
Functions read_camtrapdp(), convert(), build_taxonomy()
Milestone
Suggested in camtraptor July 2023 coding sprint
See inbo/camtraptor#251 for background. We plan to support all legacy versions of Camtrap DP from version 1.0 onwards.
This will be done by
read_camtrap_dp()
which can detect the used version and run the profile and data through a number ofconvert_
functions to get it to the latest versions, e.g.:Working sequentially avoids us from having to repeat the same conversions over and over again. It also makes it easier to notice what has changed between versions.
If a certain step is more cumbersome to do via an intermediate version, it is possible to create a conversion function that skips a number of versions, e.g.
convert_1.0_to_1.2()
. The existing number of convert functions would then be:# convert_1.0_to_1.1() deleted convert_1.0_to_1.2() convert_1.2_to_1.3()
This specific conversion functions could be all handled by a generic
This function would:
$data
convert_
functions on the data frames and profile (metadata)The text was updated successfully, but these errors were encountered: