Skip to content

A-Rocha-Kenya/CamTrapDakatcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CamTrap Dakatcha

This project converts a Wildlife Insights export into a generic Camtrap DP package. Dakatcha-specific filtering and independent-event creation then happen in memory inside the analysis scripts.

Required R packages

Project dependencies are declared in DESCRIPTION.

This workflow was tested with:

  • camtraptor 1.0.0
  • camtrapdp 0.5.0.9000
  • frictionless 1.2.1

Install the project dependencies with pak from the project root:

install.packages("pak")
pak::local_install_dev_deps()

This repository is organized as a research workflow and can also be built as a lightweight R package to install its dependencies and expose the functions under R/.

Core packages are listed under Imports, and optional packages used by some scripts or reports are listed under Suggests.

Data layout

Inputs are kept directly under data/ in one semantic level:

  • data/wildlife-insights/
  • data/kobo/
  • data/spatial/
  • data/species/
  • data/comparison/
  • outputs/: all generated packages, tables, figures, reports, and media caches

Large raw inputs and reference documents are intentionally excluded from git by default. Recreate them locally under the same paths when running the full workflow.

Key locations:

  • Wildlife Insights export: data/wildlife-insights/2001317/
  • species notes: data/species/species_report_notes.csv
  • comparison data: data/comparison/as_bd_trapping_rate.csv
  • spatial reference layers: data/spatial/

Pipeline

Run the active pipeline in order:

source("scripts/01_convert_wi_to_camtrapdp.R")
source("scripts/03_qc_and_effort_summary.R")
source("scripts/04_species_summary.R")
source("scripts/05_species_accumulation.R")
source("scripts/06_compare_dakatcha_vs_as_bd.R")

This produces:

  • generic package: outputs/camtrap-dp/wi/

The analysis scripts read that generic package and call prepare_dakatcha_analysis_pkg() in memory.

This in-memory preparation currently:

  • filters to functioning cameras with more than 5 deployment days
  • appends independent event observations using the 60-minute lastRecord rule

It does not apply taxonomy corrections.

Notes

  • The pinned camtraptor commit is required because the downstream scripts use the version-1.0 API.
  • The project uses the standard camtrapdp::read_camtrapdp() and camtrapdp::write_camtrapdp() functions.
  • Archived or non-core scripts are kept in scripts/archive/.
  • Generated outputs, local IDE state, and bulky rendered artifacts are excluded from git via .gitignore.

About

Baseline surveys of Biodiversity in the A Rocha Dakatcha Nature Reserve and immediate environs

Resources

Stars

Watchers

Forks

Contributors

Languages