Skip to content

Instantly share code, notes, and snippets.

@dnomadb
Created March 31, 2015 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnomadb/a9108d21b040c09cd4e9 to your computer and use it in GitHub Desktop.
Save dnomadb/a9108d21b040c09cd4e9 to your computer and use it in GitHub Desktop.
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)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment