Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
PyPI

whitebox 2.3.6

pip install whitebox

Latest version

Released:

An advanced geospatial data analysis platform

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for giswqs from gravatar.comgiswqs

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License (MIT license)
  • Author:Qiusheng Wu
  • Tags whitebox
Classifiers

Project description

whitebox-python

https://colab.research.google.com/assets/colab-badge.svghttps://mybinder.org/badge_logo.svghttps://img.shields.io/pypi/v/whitebox.svghttps://pepy.tech/badge/whiteboxhttps://anaconda.org/conda-forge/whitebox/badges/version.svgDocumentation Statushttps://img.shields.io/badge/License-MIT-yellow.svghttps://img.shields.io/badge/Donate-Buy%20me%20a%20coffee-yellowgreen.svg

Important Note

https://i.imgur.com/Ic8BA7C.png

This repository is related to the WhiteboxTools Python Frontend only. You can report issues to this repo if you have problems installing this Python package. If you encounter any tool functioning specific errors, pleaseopen an issue on Dr. John Lindsay’sWhiteboxTools repo.

Links

Contents

Description

Thewhitebox Python package is built onWhiteboxTools, an advanced geospatial data analysis platform developed by Prof. John Lindsay (webpage;jblindsay) at the University of Guelph’sGeomorphometry and Hydrogeomatics Research Group.WhiteboxTools can be used to perform common geographical information systems (GIS) analysis operations, such as cost-distance analysis, distance buffering, and raster reclassification. Remote sensing and image processing tasks include image enhancement (e.g. panchromatic sharpening, contrast adjustments), image mosaicing, numerous filtering operations, simple classification (k-means), and common image transformations.WhiteboxTools also contains advanced tooling for spatial hydrological analysis (e.g. flow-accumulation, watershed delineation, stream network analysis, sink removal), terrain analysis (e.g. common terrain indices such as slope, curvatures, wetness index, hillshading; hypsometric analysis; multi-scale topographic position analysis), and LiDAR data processing. LiDAR point clouds can be interrogated (LidarInfo, LidarHistogram), segmented, tiled and joined, analyized for outliers, interpolated to rasters (DEMs, intensity images), and ground-points can be classified or filtered.WhiteboxTools is not a cartographic or spatial data visualization package; instead it is meant to serve as an analytical backend for other data visualization software, mainly GIS.

Installation

whitebox supports a variety of platforms, including Microsoft Windows, macOS, and Linux operating systems. Note that you will need to have Python 3.x installed. Python 2.x is not supported. Thewhitebox Python package can be installed using the following command:

pipinstallwhitebox

If you have installedwhitebox Python package before and want to upgrade to the latest version, you can use the following command:

pipinstallwhitebox-U

It is recommended that you use a Python virtual environment (e.g., conda) to test the whitebox package. Please follow theconda user guide to install conda if necessary. Once you have conda installed, you can use Terminal or an Anaconda Prompt to create a Python virtual environment. Checkmanaging Python environment for more information.

condacreate-nwbtpythonsourceactivatewbtcondainstallwhitebox-cconda-forge

If you encounter an GLIBC errors when installing the whitebox package, you can try the following command:

importwhiteboxwhitebox.download_wbt(linux_musl=True,reset=True)

Alternatively, you can set the environment variableWBT_LINUX toMUSL before installing the whitebox package. It will automatically download the MUSL version of WhiteboxTools.

importosos.environ["WBT_LINUX"]="MUSL"

whitebox Tutorials

Launch the whitebox tutorial notebook directly withmybinder.org now:

https://mybinder.org/badge_logo.svg

Quick Example

Tool names in thewhitebox Python package can be called either using the snake_case or CamelCase convention (e.g.lidar_info orLidarInfo). See below for an example Python script (example.py). If you are interested in using theWhiteboxTools command-line program, checkWhiteboxTools Usage.

importosfromimportlib_resourcesimportfilesimportwhiteboxwbt=whitebox.WhiteboxTools()print(wbt.version())print(wbt.help())# identify the sample data directory of the packagedata_dir=str(files("whitebox").joinpath("testdata"))wbt.set_working_dir(data_dir)wbt.verbose=Falsewbt.feature_preserving_smoothing("DEM.tif","smoothed.tif",filter=9)wbt.breach_depressions("smoothed.tif","breached.tif")wbt.d_inf_flow_accumulation("breached.tif","flow_accum.tif")

A Jupyter Notebook Tutorial for whitebox

This tutorial can be accessed in three ways:

Launch this tutorial as an interactive Jupyter Notebook on the cloud -https://gishub.org/whitebox-cloud.

https://i.imgur.com/LF4UE1j.gif

whitebox GUI

WhiteboxTools also provides a Graphical User Interface (GUI) -WhiteboxTools Runner, which can be invoked using the following Python script:

importwhiteboxwhitebox.Runner()
https://wetlands.io/file/images/whitebox.png

Troubleshooting

Linux

When usingimport whitebox, if you get an error that saysNo module named '_tkinter', please install thepython3-tk package, you can try the following solution:

  • For Ubuntu, Linux Mint, etc:sudoapt-get installpython3-tk

  • For Manjaro, Arch Linux:sudo pacman-S tk

Available Tools

The library currently contains518 tools, which are each grouped based on their main function into one of the following categories: Data Tools, GIS Analysis, Hydrological Analysis, Image Analysis, LiDAR Analysis, Mathematical and Statistical Analysis, Stream Network Analysis, and Terrain Analysis. For a listing of available tools, complete with documentation and usage details, please see theWhiteboxTools User Manual.

Supported Data Formats

The WhiteboxTools library currently supports read/writing raster data in Whitebox GAT, GeoTIFF, ESRI (ArcGIS) ASCII and binary (.flt & .hdr), GRASS GIS, Idrisi, SAGA GIS (binary and ASCII), and Surfer 7 data formats. At present, there is limited ability in WhiteboxTools to read vector geospatial data. Support for Shapefile (and other common vector formats) will be enhanced within the library soon.

Contributing

If you would like to contribute to the project as a developer, follow these instructions to get started:

  1. Fork the whitebox project (https://github.com/opengeos/whitebox-python)

  2. Create your feature branch (git checkout -b my-new-feature)

  3. Commit your changes (git commit -am ‘Add some feature’)

  4. Push to the branch (git push origin my-new-feature)

  5. Create a new Pull Request

License

Thewhitebox package is distributed under theMIT license, a permissive open-source (free software) license.

Reporting Bugs

Report bugs athttps://github.com/opengeos/whitebox-python/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.

  • Any details about your local setup that might be helpful in troubleshooting.

  • Detailed steps to reproduce the bug.

Credits

This package was created withCookiecutter and theaudreyr/cookiecutter-pypackage project template.

History

0.2.0 (2018-06-08)

0.1.0 (2018-06-06)

  • First release on PyPI.

Project details

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for giswqs from gravatar.comgiswqs

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License (MIT license)
  • Author:Qiusheng Wu
  • Tags whitebox
Classifiers

Release historyRelease notifications |RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more aboutinstalling packages.

Source Distribution

whitebox-2.3.6.tar.gz (78.2 kBview details)

UploadedSource

Built Distribution

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more aboutwheel file names.

Copy a direct link to the current filters

whitebox-2.3.6-py2.py3-none-any.whl (74.0 kBview details)

UploadedPython 2Python 3

File details

Details for the filewhitebox-2.3.6.tar.gz.

File metadata

  • Download URL:whitebox-2.3.6.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for whitebox-2.3.6.tar.gz
AlgorithmHash digest
SHA25669571640a778253e27a05c63b08aed670457803798a0b8f233761eabcd39188b
MD5b4714bf6d5127a90608ce3804071f1b5
BLAKE2b-256ac87c628340efbf9f819a1e8b241967857b5cf69c197b998eae89a98c3c00dbd

See more details on using hashes here.

File details

Details for the filewhitebox-2.3.6-py2.py3-none-any.whl.

File metadata

  • Download URL:whitebox-2.3.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 74.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for whitebox-2.3.6-py2.py3-none-any.whl
AlgorithmHash digest
SHA25616b780134cabb9b9d067078f42265da692963d466747cbe655f573fab0f3f60e
MD5368a023d62008789889b3df69e4e8258
BLAKE2b-2561c449bd2ca55e07ee3d63a0d3b46c77ca75e3089e38cc7260e46fc597a632a5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security SponsorDatadog MonitoringDepot Continuous IntegrationFastly CDNGoogle Download AnalyticsPingdom MonitoringSentry Error loggingStatusPage Status page

[8]ページ先頭

©2009-2025 Movatter.jp