Created
January 29, 2016 22:57
-
-
Save abramsm/cc33bb81dc45ad4cd8b4 to your computer and use it in GitHub Desktop.
Hydra Field Day Filter Out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.filterOut:[ | |
{time-to-date-ymd {}} | |
// only the most wellformed of UIDs are counted. | |
{from:"UID", require.match:["[0-9a-f]{16}"]} | |
// filter segment data | |
{safely:[ | |
{is-not-empty:"RED"} | |
// filter segments based on the provided list | |
{from:"SEGMENTIDS", list-apply.elementFilter.require:[%[segment-ids]%]} | |
{is-not-empty:"SEGMENTIDS"} | |
{from:"SRC", set:"SEG"} | |
]} | |
// flag usync data | |
{safely:[ | |
{is-not-empty:"USYNC"} | |
{from:"SRC", set:"USYNC"} | |
]} | |
// throw away unflagged bundles | |
{is-not-empty:"SRC"} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment