bcgov / flight-path-monitoring

A spatial module to monitor flight line data over wildlife habitat layers
0 stars 1 forks source link

Pull collar data from BC Telemetry database #9

Open meztez opened 1 year ago

meztez commented 1 year ago
meztez commented 1 year ago

Telemetry


# bcdc_search("Wildlife Species Inventory Telemetry Observations")
# Public, nothing after 2015 for Caribou
# Will use as an example
wildlife_telemetry <- bcdc_get_record("6d48657f-ab33-43c5-ad40-09bd56140845") |>
  bcdc_query_geodata() |>
  filter(SPECIES_CODE %in% c("M-RATA"), OBSERVATION_YEAR >= 2015) |>
  collect()

wildlife_telemetry[["timestamp"]] <- wildlife_telemetry$OBSERVATION_DATE +
  hours(wildlife_telemetry$OBSERVATION_HOUR) +
  minutes(wildlife_telemetry$OBSERVATION_MINUTE)

The public telemetry data does not indicate which timezone it uses. We are assuming UTC, but this should be validated.

meztez commented 1 year ago

@kmaricle Do the limited access wildlife telemetry database have more recent observation than the public one? Latest one in the public one are from 2015.

Public : https://catalogue.data.gov.bc.ca/dataset/wildlife-species-inventory-telemetry-observations-non-sensitive Sensitive : https://catalogue.data.gov.bc.ca/dataset/wildlife-species-inventory-telemetry-observations-all

Auth with bcdata requires an API key. https://github.com/bcgov/bcdata/blob/1a78930895669ab3840033a28af2f544061b69c0/README.Rmd#L99