Skip to main content

Python library for cloud and cloud shadow segmentation in high to moderate resolution satellite imagery

Project description

OmniCloudMask

image image image Conda Downloads image Documentation

State-of-the-art cloud and cloud shadow segmentation for high to moderate resolution satellite imagery.

Works with any imagery containing Red, Green, and NIR bands at 10-50 m resolution. Validated on Sentinel-2, Landsat 8, PlanetScope and Maxar imagery.

Documentation | Paper | Training Data Map | Podcast

Installation

pip install omnicloudmask

Or with uv, conda, or from source—see installation docs.

Quick Start

import numpy as np
from omnicloudmask import predict_from_array

# Input: (3, height, width) array with Red, Green, NIR bands
input_array = np.random.rand(3, 1024, 1024).astype(np.float32)

# Output: (1, height, width) mask
# Values: 0=Clear, 1=Thick Cloud, 2=Thin Cloud, 3=Cloud Shadow
mask = predict_from_array(input_array)

For a Sentinel-2 scene:

from pathlib import Path
from omnicloudmask import predict_from_load_func, load_s2

scene_paths = [Path("path/to/scene.SAFE")]
pred_paths = predict_from_load_func(scene_paths, load_s2)

See the quickstart guide for more examples.

Try in Colab

Open In Colab

How it works

Sensor agnostic Deep Learning with OmniCloudMask

License

MIT License

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

omnicloudmask-1.7.1.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

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

omnicloudmask-1.7.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file omnicloudmask-1.7.1.tar.gz.

File metadata

  • Download URL: omnicloudmask-1.7.1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for omnicloudmask-1.7.1.tar.gz
Algorithm Hash digest
SHA256 223e2bed5529e24e693810e897a0bad19eb9f9b20255aef1fab6145bfb62b3e0
MD5 d94df7833c605cd7cd1d01042e3d299f
BLAKE2b-256 594c647f719cfc2395d773462f0ac358e9ba834a7e637addeeb90c301dbe56e3

See more details on using hashes here.

File details

Details for the file omnicloudmask-1.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for omnicloudmask-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f54ba91da2b5f441df89ed69fb16c127d02ec562fe5bf4597043ac3904ffe176
MD5 171e734a175d4f9bd86c27e19126bec5
BLAKE2b-256 a704886c58e9cacb0d8fdd32d2744b2ad83c2f90815424323dc1f3062e563893

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