Skip to main content

Sobolt's client for in1.

Project description

in1 client library

This is the Python client library for the in1 service. It allows super-resolving Sentinel-2 raster straight from Python.

Installation

Use a Python package manager to install in1.

pip install in1

Usage client library

Consult the online documentation for details.

import in1

lores = "/path/to/lores.tif"
in1_api_key = "<IN1_API_KEY>"

hires, profile, metrics = in1.sisr(lores, api_key=in1_api_key)
in1.write(hires, "/path/to/outdir/hires.tif", profile)

Usage in1 executable

The Python client library also installs an in1 executable that allows super-resolving directly from the terminal. Consult the online documentation for how to use optional flags.

in1 upsample --source path/to/source.tif --result path/to/result.tif --api <IN1_API_KEY>

License

MIT

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

in1-2.0.1.tar.gz (10.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page