annosaurus 0.11.0
MBARI is revamping our Deep-sea Guide. In order to support it, we're adding some basic analysis endpoints to annosaurus. This release allows add hoc queries to generate data histograms. Here's an example to get a frequency histogram for annotations with the matching concepts and observer. (Note that ?size=50
sets the vertical depth bin size to 50 meters)
Request
POST http://dsg.mbari.org/anno/v1/analysis/histogram/depth?size=50
Content-Type: application/json
{
concepts: ["Nanomia", "Nanomia bijuga"],
observers: ["schlin"]
}
Response
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Wed, 14 Apr 2021 23:21:31 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: close
Access-Control-Allow-Origin: *
Content-Encoding: gzip
{
"query_constraints": {
"video_reference_uuids": [],
"concepts": [
"Nanomia",
"Nanomia bijuga"
],
"observers": [
"schlin"
],
"groups": [],
"activities": [],
"limit": 5000,
"offset": 0,
"data": false
},
"content": {
"bins_min": [
0,
50,
100,
150,
200,
250,
300,
350,
400,
450,
500,
550,
600,
650,
700,
750,
800,
850,
900,
950,
1000,
1050,
1100,
1150,
1200,
1250,
1300,
1350,
1400,
1450,
1500,
1550,
1600,
1650,
1700,
1750,
1800,
1850,
1900,
1950,
2000,
2050,
2100,
2150,
2200,
2250,
2300,
2350,
2400,
2450,
2500,
2550,
2600,
2650,
2700,
2750,
2800,
2850,
2900,
2950,
3000,
3050,
3100,
3150,
3200,
3250,
3300,
3350,
3400,
3450,
3500,
3550,
3600,
3650,
3700,
3750,
3800,
3850,
3900,
3950
],
"bins_max": [
50,
100,
150,
200,
250,
300,
350,
400,
450,
500,
550,
600,
650,
700,
750,
800,
850,
900,
950,
1000,
1050,
1100,
1150,
1200,
1250,
1300,
1350,
1400,
1450,
1500,
1550,
1600,
1650,
1700,
1750,
1800,
1850,
1900,
1950,
2000,
2050,
2100,
2150,
2200,
2250,
2300,
2350,
2400,
2450,
2500,
2550,
2600,
2650,
2700,
2750,
2800,
2850,
2900,
2950,
3000,
3050,
3100,
3150,
3200,
3250,
3300,
3350,
3400,
3450,
3500,
3550,
3600,
3650,
3700,
3750,
3800,
3850,
3900,
3950,
4000
],
"values": [
3313,
3755,
3953,
5136,
7181,
7772,
8253,
6784,
6304,
5741,
2626,
1341,
816,
278,
66,
9,
6,
28,
4,
16,
25,
2,
4,
1,
68,
0,
0,
2,
0,
0,
0,
4,
1,
2,
1,
0,
0,
0,
1,
5,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
}