You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pages/faq.md
+77-20
Original file line number
Diff line number
Diff line change
@@ -5,25 +5,6 @@ permalink: /faq/
5
5
toc: true
6
6
---
7
7
8
-
{:id="x"}
9
-
## How do I do x
10
-
11
-
Text
12
-
13
-
field 1 | field 2
14
-
--- | ---
15
-
x | 1
16
-
y | 2
17
-
18
-
```SQL
19
-
SELECT*FROM table
20
-
```
21
-
22
-
{:id="y"}
23
-
## How do I do y
24
-
25
-
...
26
-
27
8
{:id="bboxes"}
28
9
## How to describe bounding boxes?
29
10
@@ -51,7 +32,83 @@ If you have a use case for describing non-animal observations using camtrap-dp,
51
32
{:id="measurements"}
52
33
## How to include measurements in a data package?
53
34
54
-
todo
35
+
There are two ways to include additional information (values not covered by the standard fields) in a camtrap-dp data package:
36
+
- Using tags
37
+
38
+
Deployment and observation tables include `deploymentTags` and `observationTags` fields. These fields can be used to store additional information as pipe-delimited key:value pairs. For example, this is how temperature and snow cover information could be represented in the deployment table:
39
+
40
+
deploymentID | deploymentTags
41
+
--- | ---
42
+
dep1 | temperature:20 | snow_cover:false
43
+
dep2 | temperature:-5 | snow_cover:true
44
+
45
+
There are some drawbacks to using this method. Storing additional information in the media table is not possible, since it does not contain a tags field. Additionally, data represented this way is difficult to parse.
46
+
47
+
- Using a custom table
48
+
49
+
A custom table can be added to the data package to store additional information. This requires providing a schema for the additional table. This schema has to contain the foreign key to the referenced table (`deploymentID`, `observationID` or `mediaID`) and the additional fields. This in an example schema for the deployment measurement table:
50
+
```JSON
51
+
{
52
+
"name": "deployment-measurements",
53
+
"title": "Deployment measurements",
54
+
"description": "Table with weather measurements for deployments. Associated with deployments (`deploymentID`).",
55
+
"fields": [
56
+
{
57
+
"name": "deploymentID",
58
+
"description": "Identifier of the deployment. Foreign key to `deployments.deploymentID`.",
0 commit comments