-
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Welcome to the installation guide for the GeoRoughness Tool. This page will walk you through the steps required to install and set up the software on your system. The GeoRoughness Tool supports Windows, macOS, and Linux operating systems.
Before you begin, ensure that your system meets the following requirements:
- Python 3.12 or later: The software is built to run with Python 3.12 and above.
- pip: Python's package installer, used to install the DEM Roughness Calculator.
Windows
-
Install Python:
- Visit the official Python website.
- Download the installer for Python 3.12 or later.
- Run the installer. Ensure to check the box that says "Add Python 3.12 to PATH" at the beginning of the installation process.
- Complete the installation.
-
Verify Installation:
- Open Command Prompt and type:
This should display the Python version installed.
python3 --version
- Check pip is installed:
pip3 --version
- Open Command Prompt and type:
-
Install GeoRoughness Tool:
- In the Command Prompt, run:
This command downloads and installs the GeoRoughness Tool along with its dependencies. If you encounter any permission issues, try running the Command Prompt as Administrator on Windows.
pip3 install geo-roughness-tool
- In the Command Prompt, run:
macOS
-
Install Python:
- You can install Python using Homebrew (a package manager for macOS). If you do not have Homebrew installed, you can install it by pasting the following command in a Terminal window:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Once Homebrew is installed, install Python by running:
brew install python@3.12
- You can install Python using Homebrew (a package manager for macOS). If you do not have Homebrew installed, you can install it by pasting the following command in a Terminal window:
-
Verify Installation:
- In the Terminal, run:
python3 --version
- This should return the version of Python installed.
- Ensure pip is working:
pip3 --version
- In the Terminal, run:
-
Install GeoRoughness Tool:
- In the Terminal, run:
This command downloads and installs the GeoRoughness Tool along with its dependencies. If you encounter any permission issues, try adding
pip3 install geo-roughness-tool
sudo
before the command.
- In the Terminal, run:
Linux
-
Install Python:
- Most Linux distributions come with Python pre-installed. If not, you can install it using your distribution’s package manager. For Ubuntu, use:
sudo apt update sudo apt install python3.12 python3-pip
- Most Linux distributions come with Python pre-installed. If not, you can install it using your distribution’s package manager. For Ubuntu, use:
-
Verify Installation:
- Check Python installation:
python3 --version
- Check pip installation:
pip3 --version
- Check Python installation:
-
Install GeoRoughness Tool:
- Use pip to install:
This command downloads and installs the GeoRoughness Tool along with its dependencies. If you encounter any permission issues, try adding
pip3 install geo-roughness-tool
sudo
before the command.
- Use pip to install:
To start the programm, simply run:
georough
This command launches the GUI where you can interactively load DEM files, set parameters, and view the roughness calculations. The GUI version also allows to use more tools, like the use of training data to calculate optimized thresholds.
Note
Command Line Interface (CLI)
The CLI version is not maintained anymore. It should still support basic roughness calculations, but for newer features and optimizations, please use the GUI version.
This package also provides a basic command line interface (CLI) for batch processing of DEM files.
To use the CLI tool, run the following command in your terminal:
georough --input_path "path/to/input.tif" --output_dir "path/to/output"
The CLI tool supports the following additional parameters:
-
--window_size
: The size of the window in meters for calculating roughness.- Default is
1.0
meter. - Accepts float values.
- Example:
--window_size 2.5
for a 2.5-meter window.
- Default is
-
--categorical_thresholds
: Set of thresholds to categorize the roughness data.- Default is
None
. - Accepts a list of float values separated by commas.
- Example:
--categorical_thresholds 0.01,0.1,0.3
for thresholds at 0.01, 0.1, and 0.3. - Creates a category
0
for values below the first threshold,1
for values between the first and second threshold, and so on.
- Default is
-
--band_number
: The specific band of the DEM to process. Only applicable for multi-band DEMs.- Default is
1
. - Accepts integer values.
- Example:
--band_number 2
for the second band.
- Default is
-
--high_value_threshold
: Threshold to filter out high roughness values that can be calculated at the borders of the DEM.- Default is
10.0
. - Accepts a float value.
- Example:
--high_value_threshold 50.0
to filter out values above 50.
- Default is
For information about the parameters and their usage, visit Parameter Explanation
To update the GeoRoughness Tool to the latest version when released, use:
pip3 install --upgrade geo-roughness-tool
If you need to uninstall the GeoRoughness Tool, execute:
pip3 uninstall geo-roughness-tool
If you run into any issues during the installation or running of the DEM Roughness Calculator, please refer to the Troubleshooting section of the wiki. If your issue is not listed there, do not hesitate to contact support or submit an issue.