https://github.com/senbox-org/s2tbx
Sentinel 2 Toolbox (s2tbx)
https://github.com/senbox-org/s2tbx
Last synced: 10 months ago
JSON representation
Sentinel 2 Toolbox (s2tbx)
- Host: GitHub
- URL: https://github.com/senbox-org/s2tbx
- Owner: senbox-org
- License: gpl-3.0
- Created: 2014-07-20T22:51:51.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-23T20:41:51.000Z (over 1 year ago)
- Last Synced: 2025-01-23T21:28:54.279Z (over 1 year ago)
- Language: Java
- Size: 1.09 GB
- Stars: 97
- Watchers: 44
- Forks: 45
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.html
Awesome Lists containing this project
- awesome-earthobservation-code - s2tbx - Sentinel 2 Toolbox (s2tbx) - `Java` (Languages other than `Python` and `R` / Testing your code)
README
[](https://travis-ci.org/senbox-org/s2tbx)
Sentinel-2 Toolbox (S2TBX)
==========================
A toolbox for the MSI instruments on board of ESA's Sentinel-2 satellite.
The project page of SNAP, and the sentinel toolboxes can be found at http://step.esa.int.
There you can find tutorials, developer guides, a user forum and other interesting things.
Building S2TBX from the source
------------------------------
Download and install the required build tools
* Install Java 8 JDK and set JAVA_HOME accordingly. A distribution of OpenJDK is suggested.
Several distributions are available, for example
* [Azul Zulu](https://www.azul.com/downloads/zulu-community)
* [AdoptOpenJDK](https://adoptopenjdk.net)
* [Amazon Corretto](https://aws.amazon.com/de/corretto)
* Install Maven and set MAVEN_HOME accordingly.
* Install git
Add $JAVA_HOME/bin, $MAVEN_HOME/bin to your PATH.
Clone the S2TBX source code and related repositories into a directory referred to as ${snap} from here on
cd ${snap}
git clone https://github.com/senbox-org/s2tbx.git
git clone https://github.com/senbox-org/snap-desktop.git
git clone https://github.com/senbox-org/snap-engine.git
Build SNAP-Engine:
cd ${snap}/snap-engine
mvn clean install
Build SNAP-Desktop:
cd ${snap}/snap-desktop
mvn clean install
cd ${snap}/snap-desktop/snap-application
mvn nbm:cluster-app
Build Sentinel-2 Toolbox:
cd ${snap}/s2tbx
mvn clean install
If unit tests are failing, you can use the following to skip the tests
mvn clean
mvn install -Dmaven.test.skip=true
Setting up IntelliJ IDEA
------------------------
1. Create an empty project with the ${snap} directory as project directory
2. Import the pom.xml files of snap-engine, snap-desktop and s2tbx as modules. Ensure **not** to enable
the option *Create module groups for multi-module Maven projects*. Everything can be default values.
3. Set the used SDK for the main project. A JDK 1.8 or later is needed.
4. Use the following configuration to run SNAP in the IDE:
**Main class:** org.esa.snap.nbexec.Launcher
**VM parameters:** -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dsun.java2d.dpiaware=false
All VM parameters are optional
**Program arguments:**
--userdir
"${snap}/s2tbx/target/userdir"
--clusters
"${snap}/s2tbx/s2tbx-kit/target/netbeans_clusters/s2tbx"
--patches
"${snap}/snap-engine/$/target/classes;${snap}/s2tbx/$/target/classes"
**Working directory:** ${snap}/snap-desktop/snap-application/target/snap/
**Use classpath of module:** snap-main
Enjoy!