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
with rio.drivers(): | |
with rio.open(src_path, 'r') as src: | |
## to get one filled band | |
filled = fillnodata((src, 1)) | |
## to get all filled bands | |
filled = [fillnodata((src, i)) for i in range(1, 4)] |
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
https://gist.github.com/13708aa76cbcd848f313 |
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
Traceback (most recent call last): | |
File "scripts/fillnodataseams.py", line 29, in <module> | |
fillnodata() | |
File "/Users/dnomadb/venv/lib/python2.7/site-packages/click/core.py", line 610, in __call__ | |
return self.main(*args, **kwargs) | |
File "/Users/dnomadb/venv/lib/python2.7/site-packages/click/core.py", line 590, in main | |
rv = self.invoke(ctx) | |
File "/Users/dnomadb/venv/lib/python2.7/site-packages/click/core.py", line 782, in invoke | |
return ctx.invoke(self.callback, **ctx.params) | |
File "/Users/dnomadb/venv/lib/python2.7/site-packages/click/core.py", line 416, in invoke |
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
::wind { | |
polygon-comp-op: multiply; | |
polygon-fill: #4e4e4f; | |
[gust <=0.3] {polygon-opacity:0.0} | |
[gust >0.3] {polygon-opacity:0.005} | |
[gust >0.6] {polygon-opacity:0.01} | |
[gust >0.9] {polygon-opacity:0.015} | |
[gust >1.2] {polygon-opacity:0.02} | |
[gust >1.5] {polygon-opacity:0.025} | |
[gust >1.8] {polygon-opacity:0.03} |
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
import fiona | |
import click | |
from rasterio import features, Affine | |
def makeAffine(bounds, width): | |
xD = bounds[2] - bounds[0] | |
yD = bounds[3] - bounds[1] | |
cS = xD / float(width - 2) | |
height = int(yD / cS) + 1 |
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
▶ python printascii.py '/Users/dnomadb/Downloads/map (6).geojson' --width 50 | |
.................................................. | |
.............88888.....................88......... | |
........8888888888....8.............888888.88888.. | |
...........888888888..........8...........8888.... | |
............................888888................ | |
..........................88888888888............. | |
........................8888888888888888.......... | |
.......................8888888888888888888........ | |
.....................88888888888888888888888...... |
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
{u'y': 0, u'x': 0, u'z': 0, u'buffer': u'H4sIAAAAAAAAA219BbQlR5KdeJ6kHkmrkceyttUCy2N5LI9f/ZLH8ng8HsOamZkZ3nr91t41NzMzMzMzq5mZmZkZ3Tf/r4obN3T6nD6nftwKzqjMqMx6H+299/pbr9Z+/bfe/7iy4Xvvv/bSSy+//OGrn7/35kstf/5Ry1eev/xS+u/d91tUNoL8SiL/ypstX2n5sxf0RHzp+cugrwH9VaW/IKb7P6ocBv21RP/+C/a/fL+J/bvvf1o5AtrrifYD3PuLz9O9LxV3f1zZA8QbL3+vSblfftTyteevPn/1pZdavgbmx0CuJHIT8xfkRGtROQram6bYL5ziH1d2gP6Ws9v0/riyG+S3S/Ivk1twN1T/uLIT5GZytzFfB/L3S/I3Ql4P8jvic2O+CeR3S6tf3P1aMuyl56+CvArk94S5ab4W5F+Ru19KboNfplVekN83v/xEdBsD+g9K7lWnW4vKVJA/0NtN+ljQf0cpveoi9nFlOsg/FPJL6T+Qp4D8O0W4JeNkkD/0wo3+cWUk6L+rvP0r0W0UyB8J2VJ5NMi/qtzN9L6gNzf6j4V9P9A/Lm370jn+48pgkFsIuYhqi8ogkD9R7haXgaB/6pRn0weA/JmQTfcDSIrPC+5vhGF8CPTf7UcLe/446F8U9NdkuLSonAD99xj/X4j8C6D/KBlf3O+s3wX671X5dv950L/0/Fn/baD/Pq8f378P9B8rvbDv08pp0H9/0u8Hif55Ct5LNm7OAPGVesA0OAv6HzC6rxi/WjkH+k8S/Z1Et0rYonIQxD/o3WPjokVlP+hVDZ+5fzvomd5fDLsWlW9Bb/BVmsO7GvRc6ea+iciur03+j8X4haD/IZP/lYR3Dug/Vbo5dwbof9ic95XYNx70bzyd9R8O+h9Ruuk/F/SfKX/TfzPs/6NG/0bkj8D9P/f6s38ngf7HlG7xmwf6L4y/VtX5oP9xpZt9C0D/pfn/J6L/Fuj/J1R |
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
var Dyno = require('dyno'); | |
var trizilla = require('trizilla')(); | |
var tilebelt = require('tilebelt'); | |
var args = require('minimist')(process.argv.slice(2)); | |
var jobTile = JSON.parse(args._[0]); | |
var decompressType = args._[1] || 'Decompressor'; | |
var jobKey = tilebelt.tileToQuadkey(jobTile); |
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
@class1: #245568; | |
@class2: #215668; | |
@class3: #1F5768; | |
@class4: #1D5969; | |
@class5: #1B5A69; | |
@class6: #195B69; | |
@class7: #165C69; | |
@class8: #145E69; | |
@class9: #115F69; | |
@class10: #0E6069; |
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
@class1: #245568; | |
@class2: #215668; | |
@class3: #1F5768; | |
@class4: #1D5969; | |
@class5: #1B5A69; | |
@class6: #195B69; | |
@class7: #165C69; | |
@class8: #145E69; | |
@class9: #115F69; | |
@class10: #0E6069; |