Raster --> vector surface creation tools in python
pip install -e [email protected]:mapbox/make-surface.git#egg=makesurface
▶ time parallel --header : "node ./bin/list-tiles --tile {x}/{y}/3 | node ./bin/get-triangles | makesurface fillfacets '/Users/dnomadb/Dropbox (MapBox)/datashare/gfstemp.tif' -np" ::: x {0..3} ::: y {0..3} | tippecanoe -o temps.mbtiles -f -z 6 -Z 6 | |
bbox: 0 0 80000000 80000000 | |
using layer name temps | |
Sorting 2733348 indices for 2097152 features | |
Merging: 100% | |
100.0% 6/32/32 | |
parallel --header : ::: x {0..3} ::: y {0..3} 470.55s user 45.69s system 199% cpu 4:19.26 total | |
tippecanoe -o temps.mbtiles -f -z 6 -Z 6 136.09s user 3.80s system 40% cpu 5:49.18 total |
▶ time makesurface triangulate 10 --tile 0 0 0 | tippecanoe -o tippetest.mbtiles -f -z 5 -Z 5 | |
bbox: 0 0 ffffffff ffbfffff | |
using layer name tippetest | |
Sorting 2639920 indices for 2097152 features | |
Merging: 100% | |
100.0% 5/31/31 | |
makesurface triangulate 10 --tile 0 0 0 267.43s user 49.23s system 87% cpu 6:02.71 total | |
tippecanoe -o tippetest.mbtiles -f -z 5 -Z 5 106.24s user 1.94s system 24% cpu 7:15.16 total |
lattice=# select quadtree like 'n1n0s%' as qt, avg(value) from latticegrid group by qt; | |
qt | avg | |
----+--------------------------- | |
f | 0.36889253738457339608819 | |
t | -7.09836274025862024720 | |
(2 rows) | |
Time: 4827.139 ms |
Raster --> vector surface creation tools in python
pip install -e [email protected]:mapbox/make-surface.git#egg=makesurface
31719 function calls (30684 primitive calls) in 0.116 seconds | |
Ordered by: standard name | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.000 0.000 0.000 0.000 <string>:1(<module>) | |
1 0.000 0.000 0.000 0.000 <string>:1(ArgInfo) | |
1 0.000 0.000 0.000 0.000 <string>:1(ArgSpec) | |
1 0.000 0.000 0.000 0.000 <string>:1(Arguments) | |
1 0.000 0.000 0.000 0.000 <string>:1(Attribute) |
@class1: #1E222E; | |
@class2: #1F2330; | |
@class3: #202532; | |
@class4: #212734; | |
@class5: #222836; | |
@class6: #232A38; | |
@class7: #242C3A; | |
@class8: #252E3D; | |
@class9: #25303F; | |
@class10: #263141; |
Driver: GRIB/GRIdded Binary (.grb) | |
Files: /Users/dnomadb/Downloads/global.grib | |
Size is 1440, 721 | |
Coordinate System is: | |
GEOGCS["Coordinate System imported from GRIB file", | |
DATUM["unknown", | |
SPHEROID["Sphere",6371229,0]], | |
PRIMEM["Greenwich",0], | |
UNIT["degree",0.0174532925199433]] | |
Origin = (-0.125000000000000,90.125000000000000) |
node ./bin/list-tiles --tile 6/3/3 0.06s user 0.02s system 29% cpu 0.254 total | |
node ./bin/get-triangles 5.16s user 0.44s system 21% cpu 25.906 total | |
makesurface fillfacets '/Users/dnomadb/Dropbox (MapBox)/datashare/gfs1.tif' 17.20s user 2.88s system 23% cpu 1:26.72 total | |
node ./bin/list-tiles --tile 6/2/3 0.06s user 0.02s system 34% cpu 0.218 total | |
node ./bin/get-triangles 5.13s user 0.44s system 21% cpu 25.777 total | |
makesurface fillfacets '/Users/dnomadb/Dropbox (MapBox)/datashare/gfs1.tif' 16.95s user 2.87s system 22% cpu 1:26.53 total | |
node ./bin/list-tiles --tile 5/3/3 0.05s user 0.02s system 33% cpu 0.213 total | |
node ./bin/get-triangles 5.21s user 0.45s system 21% cpu 26.024 total | |
makesurface fillfacets '/Users/dnomadb/Dropbox (MapBox)/datashare/gfs1.tif' 17.23s user 2.86s system 23% cpu 1:26.83 total | |
node ./bin/list-tiles --tile 5/2/3 0.05s user 0.02s system 47% cpu 0.152 total |
{"n0n3n1s1s3s3s0s3s2s1s3s": {"value": 4.4343014351045102}} | |
{"n0n3n1s3s2s3s0s2n0s0s2n": {"value": 3.3000015960971378}} | |
{"n0n3n1s3s2s3s0s2n1n1n2n": {"value": 2.8897995205520455}} | |
{"n0n3n1s3s2s3n0n3n1n0n3n": {"value": 2.3127812237548815}} | |
{"n0n3n1s3s2s3n1n2n1n0s2n": {"value": 1.4818937064876505}} | |
{"n0n3n1s3s2s3n1s3s0s0s2s": {"value": 0.93634397524144752}} | |
{"n0n3n1s3s2s3n1s3n1s1s2s": {"value": 0.018489038040646544}} | |
{"n0n3n1s3s3s2n0s2n1n0s3s": {"value": -0.41423567275395851}} | |
{"n0n3n1s3s3s2n0n3n1n0s2s": {"value": -1.2517954396623443}} | |
{"n0n3n1s3s3s2n1n2n0n0n3n": {"value": -1.4272809750466662}} |
{"n0n3n1n0n0n1n0n1s3s3s2n": {"value": 7.2756366063241673}, "n0n3n1s2s1s3n1s3s0s2n1n": {"value": 9.2969230343436156}, "n0n3n1s2s3s0s2s2s3s2n0n": {"value": -2.6714668306321694}, "n0n3n1n1n0s2s2s1s1s2s1s": {"value": 17.95495754171673}, "n0n3n1s3n3n1n1n2n1n0s2s": {"value": -3.1555739095417725}, "n0n3n1s1s1s3s0s2n0s0s0s": {"value": 9.7810028784606278}, "n0n3n1s3n1n1n0n3n3n1s3s": {"value": 5.0542852985379065}, "n0n3n1n2n2n0n3n3n1s1s3n": {"value": 3.0502927569024658}, "n0n3n1s3n1n1n0n3n3n1s3n": {"value": 4.8938356460824304}, "n0n3n1n2n1n2n0n1s3s2s2s": {"value": 12.727092721737296}, "n0n3n1s3n3n1n1n2n1n0s2n": {"value": -3.118251526636683}, "n0n3n1n0s0s3s2n0s2n1n0n": {"value": 14.863448609940708}, "n0n3n1n0s2n2n0s0s3s2s1s": {"value": 21.739714990029164}, "n0n3n1n0n1s3n0n1n2n1n2n": {"value": 18.93417427869182}, "n0n3n1s2s1s3s2n0n1s3n0n": {"value": 8.1005620344482345}, "n0n3n1s1s3n1s1s1s3n1s3s": {"value": 6.7452781290510107}, "n0n3n1n2n0s0s3s2n0n3n3n": {"value": 18.82353146544396}, "n0n3n1n0n1n0n3n0n1s3n1s": {"value": 1 |