Skip to main content

A set of methods to emulate Sentinel-2 based on High-Resolution imagery

Project description

opensr-degradation

A set of methods to emulate Sentinel-2 based on High-Resolution imagery

Install

pip install opensr-degradation

Usage

import opensr_degradation

degradation_model = opensr_degradation.pipe(
    sensor="naip_d",
    add_noise=True,
    params={
        "method": [
            "identity",
            "gamma_lognormal",
            "gamma_multivariate_normal",
            "unet_histogram_matching",
            "vae_histogram_matching",
        ],
        "device": "cuda",
        "seed": 42,
        "percentiles": [10, 25, 50, 75, 90],
    },
)

image = torch.rand(4, 256, 256)
lr, hr = degradation_model(image)

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

opensr-degradation-0.9.4.tar.gz (35.0 MB view details)

Uploaded Source

Built Distribution

opensr_degradation-0.9.4-py3-none-any.whl (35.0 MB view details)

Uploaded Python 3

File details

Details for the file opensr-degradation-0.9.4.tar.gz.

File metadata

  • Download URL: opensr-degradation-0.9.4.tar.gz
  • Upload date:
  • Size: 35.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for opensr-degradation-0.9.4.tar.gz
Algorithm Hash digest
SHA256 3311042e81f7836226bdfeb87f75175490b86d291967d04a334d79ba4935bd0d
MD5 af86cd6a638e7610ba0fc889b60b755e
BLAKE2b-256 58f2c1d4fc7f002d8a0285263a54952fe3cf1fd554d190cb533d0152dd2985a8

See more details on using hashes here.

File details

Details for the file opensr_degradation-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: opensr_degradation-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 35.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for opensr_degradation-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c5222032da13092dd430aee8a8b02853b6c898676d6b0737aaeddd7e74a219ad
MD5 d822f9235f0edfeac010027ef4665ea8
BLAKE2b-256 4493f14e1b6c358cf84d3c3ecaf387ed20f3f3e9cf2ee48e12b689e11a37357d

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