Closed cnrdh closed 5 years ago
$ cat data/master/sample/*2015*.ndjson | ndjson-filter '!/2015/.test(d.sample)' | ndjson-map '[d.expedition,d.sample]' ["N-ICE2015","CH4-349"] ["N-ICE2015","DIC417"] ["N-ICE2015","Ship_CTD_024"] ["N-ICE2015","O10-572"] ["N-ICE2015","O10-573"] ["N-ICE2015","O10-574"] ["N-ICE2015","O10-575"] ["N-ICE2015","O10-576"] ["N-ICE2015","O10-577"] ["N-ICE16","N-ICE16/NUT-562"] ["N-ICE17","N-ICE17/NUT-563"] ["N-ICE2015","On-ice_CTD-077_"] ["N-ICE2015","MAA-239cC"] $ cat data/master/sample/*2014*.ndjson | ndjson-filter '!/2014/.test(d.sample)' | ndjson-map '[d.expedition,d.sample]' ["MOSJ2014","NUT0-77"] ["N-ICE2014","Handnet-01"]
The weirdness here is that the samples were not prefixed because ther did not conform to the expected pattern. This was fixed by #16.