Skip to content

Instantly share code, notes, and snippets.

@hbs
Created July 31, 2016 06:49
Show Gist options
  • Save hbs/57891a0e7deb628c86411ade3ba34f25 to your computer and use it in GitHub Desktop.
Save hbs/57891a0e7deb628c86411ade3ba34f25 to your computer and use it in GitHub Desktop.
WarpScript to convert PoissonPilote /api/path JSON to Geo Time Series
JSON->
<%
NEWGTS { 'boat' 5 ROLL } RELABEL 'poissonpilote.pos' RENAME
SWAP
<% DUP 'datetime' GET TOTIMESTAMP SWAP DUP 'point' GET DUP 'x' GET SWAP 'y' GET ROT 'depth' GET TOLONG 1000 * T ADDVALUE %> FOREACH
%> FOREACH
@hbs
Copy link
Author

hbs commented Jul 31, 2016

Only works with the latest (8add3e78dad9bd26d9c1412c2efc0348a5e9c01d) version of Warp 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment