Skip to main content

Timeseries Browser for Sentinel-2 data analysis and labeling

Project description

tsbrowser

tsbrowser is an interactive tool for browsing, interpreting, and labelling Sentinel-2 time series. Full documentation is available at https://jr-digital.github.io/tsbrowser/.

Environment setup with uv

uv handles the virtual environment, Python interpreter, and dependency installation described in pyproject.toml.

uv venv --python 3.11
source .venv/bin/activate
# create .venv/ and install tsbrowser + runtime deps (uses uv.lock if present)
uv sync

# confirm the CLI is available
tsbrowser --help
  • Use uv sync --group dev if you also need the documentation tooling defined in the dev dependency group.
  • You can avoid activating the environment by prefacing commands with uv run, e.g. uv run tsbrowser --help.

Using the tsbrowser_demo_setup sample data

The sample pack demonstrates the expected folder layout (vector/, raster/imagery-default-mode/, raster/imagery-legacy-mode/, and flags-demo/) together with ready-to-run configuration files (demo_config_default.py and demo_config_legacy.py).

1. Download and unpack the demo data

# ~160 MB download
curl -L -o tsbrowser_demo_setup.zip \
  https://nxc.joanneum.at/index.php/s/TKGAdd4FJ99LDgy/download
unzip tsbrowser_demo_setup.zip

This creates a tsbrowser_demo_setup/ directory containing the raster stacks, sample vector file, and example configs.

2. Run the default-mode example

rm -rf tsbrowser_demo_setup/flags-demo/  # start fresh
cd tsbrowser_demo_setup
uv run tsbrowser demo_config_default.py

This configuration expects on-the-fly QA evaluation and points the CLI to the vector/demo_points.shp shapefile together with Sentinel-2 L2A chips stored in raster/imagery-default-mode/. Use --pid <id> to open specific samples or leave it out to iterate through all unflagged features.

3. Try the legacy-mode example

uv run tsbrowser /path/to/tsbrowser_demo_setup/demo_config_legacy.py

Legacy mode works with the pre-filtered chips under raster/imagery-legacy-mode/ and skips QA masking.

4. Inspect the outputs

Flag annotations are written to the directory defined by flag_dir in each config (tsbrowser_demo_setup/flags-demo/ by default). Copy one of the demo configs if you want to modify paths, interpreter IDs, or quality settings:

cp tsbrowser_demo_setup/demo_config_default.py tsbrowser_demo_setup/my_config.py
uv run tsbrowser tsbrowser_demo_setup/my_config.py

Make sure the relative paths inside the config still point to the folders that contain your data.

Project details


Download files

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

Source Distribution

tsbrowser-0.1.1.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

tsbrowser-0.1.1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file tsbrowser-0.1.1.tar.gz.

File metadata

  • Download URL: tsbrowser-0.1.1.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tsbrowser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 43ffc0e1b01cb65321be472a64ca61f3c211ca83d582c2ef2d124cfb517aa6b5
MD5 c81a526868d2cf5cbe0f34b69827fbe7
BLAKE2b-256 287a794331cc79ba1c35f1abdf50c6ba0a2d56fea6e3730ce73aa4d0193b30b6

See more details on using hashes here.

File details

Details for the file tsbrowser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tsbrowser-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tsbrowser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8de29816d6e09c74463c495d15ea876b00587d5cb252796bf673085eb551bc9
MD5 3bb6c9b0e0b6c2190ba0ca9c28ffc2f4
BLAKE2b-256 5f303685ba4437261a78de2d1126743381b8dc9406e0370b3c6f693412ead2a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page