Created
July 31, 2016 06:49
-
-
Save hbs/57891a0e7deb628c86411ade3ba34f25 to your computer and use it in GitHub Desktop.
WarpScript to convert PoissonPilote /api/path JSON to Geo Time Series
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only works with the latest (8add3e78dad9bd26d9c1412c2efc0348a5e9c01d) version of Warp 10.