How to use the whitebox.WhiteboxTools function in whitebox

To help you get started, we’ve selected a few whitebox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github giswqs / WhiteboxTools-ArcGIS / WBT / PRE / testing.py View on Github external
import whitebox
import ast
import json
import os
import sys

wbt = whitebox.WhiteboxTools()
# wbt.set_verbose_mode(True)
github giswqs / WhiteboxTools-ArcGIS / WBT / PRE / automation.py View on Github external
# Step 5 - Commit and push changes
# Step 6 - Merge pull request on GitHub
# Step 7 - Switch to master branch and pull updates: git checkout master | git pull
##################################################################

import os 
import re
import shutil
import sys
import ast
import whitebox
import tarfile
import urllib.request
from zipfile import ZipFile

wbt = whitebox.WhiteboxTools()

def to_camelcase(name):
    '''
    Convert snake_case name to CamelCase name 
    '''
    return ''.join(x.title() for x in name.split('_'))

def to_label(name):
    '''
    Convert snake_case name to Title case label 
    '''
    return ' '.join(x.title() for x in name.split('_'))

def to_snakecase(name):
    '''
    Convert CamelCase name to snake_case name