Subject | Hash | Author | Date (UTC) |
---|---|---|---|
remove genus, add species and type to type_of namespace change | 2a7757a6c3e6dbb784b41d7a4b29381bc9105803 | dleucas | 2021-12-18 17:16:04 |
converted all transforms to functions | 9d37303b24abc225f11f9c3d3b622c5167ed43e3 | dleucas | 2021-12-18 16:00:04 |
more conversion to functions. match old output for now | fc4a8157a6902f4571b54c6ab84174f005adbe0d | dleucas | 2021-12-18 10:26:23 |
WIP convert filters to functions | 32badc3512dd9094d51ba2cc2ef8112eba2698bf | dleucas | 2021-12-16 18:33:21 |
convert html only once. extract species names as json. formating and lint. | e755dc7f4fe2d7c9b97826a0f3f2cf5385e90ef9 | dleucas | 2021-12-16 13:35:31 |
download once. use wget only. get species names. test for commands. formating | 572dbf1eaffe17c43a4a01dc9675737628c5a234 | dleucas | 2021-12-16 12:14:26 |
add filter by behavior type, sort by modified date | c3f9f9f9d9501e714117af7fff573e7f3fa4052b | dleucas | 2019-06-14 03:51:19 |
rename type to type_of | 4269dc257530a9a7fa21ff8708f4594a2f1a453d | dleucas | 2019-06-14 03:39:49 |
ElasticSearch setting for larger HTTP request | e83e501f949473538096f984220934c0a51de0b4 | dleucas | 2019-06-14 03:25:22 |
rename type to type_of | e1fcd27b05eabc8bce06751a9925200e4707168b | dleucas | 2019-06-14 02:34:15 |
add animal behavior transformation and documentation | 7550db3bbd1c69c9369cf8dfe3a5d1195e761ae2 | dleucas | 2019-06-14 00:57:16 |
add lost modified date | c4922a44cebebd63da6c23a2a71f97cdb47b4a68 | dleucas | 2019-06-12 22:46:35 |
describe remaining db fields | e3c7f44ad24a3d7c8e4eb74c777a4eecc3675d75 | dleucas | 2019-06-11 21:37:06 |
WIP document acoustat | 3a47cfcfa204503f682879d7485a6ef941e248e4 | dleucas | 2019-06-07 00:17:30 |
WIP document acoustat | 4591875fd32c1c91d20133ff90dcf5676b3c216c | dleucas | 2019-06-07 00:08:18 |
WIP document acoustat | ccc4a6de663a7272ee3d5777fe1479af549e9938 | dleucas | 2019-06-06 01:39:08 |
WIP document acoustat | 1c6b03267e3016d9b637775df2b4b153866ac040 | dleucas | 2019-06-05 22:39:39 |
add dependency on nav.html and pandoc.css | b4f054eb6675117d576fa9462220bc5bc8d15be4 | dleucas | 2019-06-01 01:12:44 |
nav title | 7c5fadd2e143028d614fab4c31ed7389ed17e6f6 | dleucas | 2019-06-01 01:12:04 |
document world map | 07b70f4b85731456b559edeecea12b339e724aaf | dleucas | 2019-06-01 01:11:43 |
File | Lines added | Lines deleted |
---|---|---|
transform.jq | 6 | 4 |
File transform.jq changed (mode: 100755) (index 3da8644..3079e97) | |||
... | ... | def as_animal_interaction: | |
110 | 110 | # FCFB153 FCFB150 | # FCFB153 FCFB150 |
111 | 111 | # FCFB5 FCFB55 | # FCFB5 FCFB55 |
112 | 112 | # FCFB73 FCFB34 | # FCFB73 FCFB34 |
113 | capture("(?<type>[FMC]{2})(?<animal_id>FB\\d+)"; "g")//null; | ||
113 | capture("(?<type_of>[FMC]{2})(?<animal_id>FB\\d+)"; "g")//null; | ||
114 | 114 | ||
115 | 115 | def as_animal_profile: | def as_animal_profile: |
116 | 116 | # age, sex and id, a animal profile | # age, sex and id, a animal profile |
... | ... | def as_animal_vocal: | |
198 | 198 | # also trim space from resulting string | # also trim space from resulting string |
199 | 199 | { | { |
200 | 200 | animal_id: $s[0:.offset] | trim, | animal_id: $s[0:.offset] | trim, |
201 | species_code: .string | trim | ||
201 | species_code: .string | trim, | ||
202 | scientific_name: $s | as_species_sci_name, | ||
203 | common_name: $s | as_species_common_name, | ||
202 | 204 | }) | | }) | |
203 | 205 | # if no object was created, use input as fallback | # if no object was created, use input as fallback |
204 | 206 | # this is for entries without a species code like "Keiko" | # this is for entries without a species code like "Keiko" |
... | ... | def as_sound_sample_rate: | |
430 | 432 | # species code not always present, use input as fallback | # species code not always present, use input as fallback |
431 | 433 | behavior: .BH | split("|") | map(as_animal_behavior), | behavior: .BH | split("|") | map(as_animal_behavior), |
432 | 434 | # Genus name and species code | # Genus name and species code |
433 | genus: .GS | split("|") | as_animal_genus, | ||
435 | # genus: .GS | split("|") | as_animal_genus, | ||
434 | 436 | # Species | # Species |
435 | # species: .GS | split("|") | as_animal_species, | ||
437 | species: .GS | split("|") | as_animal_species, | ||
436 | 438 | } | } |
437 | 439 | } | } |