Skip to main content

A collection of common tools to interact with the BigEarthNet dataset.

Project description

BigEarthNet Common

A collection of common tools to interact with the BigEarthNet dataset.

Tests License Python Versions PyPI version Conda Version pdm-managed Auto Release

This library provides a collection of high-level tools to better work with the BigEarthNet dataset.

bigearthnet_common tries to:

  1. Collect the most relevant constants into a single place to reduce the time spent looking for these, like:
    • The 19 or 43 class nomenclature strings
    • URL
    • Band statistics (mean/variance) as integer and float
    • Channel names
    • etc.
  2. Provide common metadata related functions
    • Safe JSON parser for S1/S2
    • Get the original split
    • Get a list of snowy/cloudy patches
    • Convert the old labels to the new label nomenclature
    • Generate multi-hot encoded label views
  3. Easily filter patches and generate subsets as CSV files
  4. Allow to quickly test code on BigEarthNet data without requiring to download the entire archvie

Installation

The package is available via PyPI and can be installed with:

  • pip install bigearthnet_common

The package has Python-only dependencies and should cause no issues in more complex Conda environments with various binaries.

Review constants

To quickly search for BigEarthNet constants of interest, call:

  • ben_constants_prompt or
  • python -m bigearthnet_common.constants

Sets generator

To generate sets/subsets from the data and to store them as a CSV file, use:

  • ben_build_csv_sets --help

This command-line tool lets the user easily create subsets from common constraints. To generate a CSV file that contains all Sentinel-2 patches from Serbia only during the Summer and Spring months, call the function as:

  • ben_build_csv_sets <FILE_PATH> S2 --seasons Winter --seasons Summer --countries Serbia --remove-unrecommended-dl-patches

:::{note}

By default, this tool will always remove the unrecommended patches, i.e., patches that contain seasonal snow, shadows, clouds, or that have no labels in the 19-class nomenclature

:::

Describe patch

The library provides a tool to quickly visualize meta-data information about each patch:

ben_describe_patch <S1/S2 patch name>

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

bigearthnet-common-2.7.4.tar.gz (6.2 MB view details)

Uploaded Source

Built Distribution

bigearthnet_common-2.7.4-py3-none-any.whl (6.2 MB view details)

Uploaded Python 3

File details

Details for the file bigearthnet-common-2.7.4.tar.gz.

File metadata

  • Download URL: bigearthnet-common-2.7.4.tar.gz
  • Upload date:
  • Size: 6.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.5 CPython/3.8.14

File hashes

Hashes for bigearthnet-common-2.7.4.tar.gz
Algorithm Hash digest
SHA256 d28fdcdf38ef1e6e34e8c2d40380f470bc744690e0f6ddf4f5524bbe2442fa73
MD5 ccbb7d5a679b9a30d9f13e7b3ab88d3b
BLAKE2b-256 c1d7aea659062810a87cf752b5c0957a3059b2adcfb32291f08e7c5ae21c40ea

See more details on using hashes here.

File details

Details for the file bigearthnet_common-2.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for bigearthnet_common-2.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 49f3f2b9694123c30852a1485b075fc36de69913854f44ce1a7726933594c587
MD5 7566210b96a2c838834b2f86d579c3ca
BLAKE2b-256 bda5f64fd4a94e6618021ba1fcd9b26441246ab904ee6e7125bfe7f454ace02b

See more details on using hashes here.

Supported by

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