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
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 details)
File details
Details for the file in1-2.0.1.tar.gz
.
File metadata
- Download URL: in1-2.0.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c208c68a3b06bd1177f83f2fc0e6697551cad7eabd8993c947ec01ee34c16447 |
|
MD5 | 365cba45770a630feb736db7505789c4 |
|
BLAKE2b-256 | 172917056cb938fb95279526750fb63d89ce36a5b0774435fb2f7eeb137e3dee |