Various sentinel tools
Project description
Sentinel-Toolkit
Description
This repository provides various utility tools for working with Sentinel data like:
- Reading Sentinel-2 Spectral Response Functions
- Converting colour.SpectralDistribution to Sentinel Responses
Installation
Sentinel-Toolkit and its primary dependencies can be easily installed from the Python Package Index by issuing this command in a shell:
$ pip install --user sentinel-toolkit
Examples
Reading Sentinel-2 Spectral Response Functions
Given an Excel file containing the Sentinel-2 Spectral Response Functions, read Band2, Band3 and Band4 data in the wavelength range of (360, 830) into a corresponding colour.MultiSpectralDistributions object:
from sentinel_toolkit import S2Srf
s2a_srf = S2Srf("srf.xlsx", satellite="A")
bn = ["S2A_SR_AV_B2", "S2A_SR_AV_B3", "S2A_SR_AV_B4"]
wr = (360, 830)
bands_responses_distribution = s2a_srf.get_bands_responses_distribution(band_names=bn, wavelength_range=wr)
Given an Excel file containing the Sentinel-2 Spectral Response Functions, read all band data in the wavelength range of (360, 830) into a corresponding ndarray:
from sentinel_toolkit import S2Srf
s2a_srf = S2Srf("srf.xlsx", satellite="A")
# By default, band_names is all band names and wavelength_range is (360, 830)
all_bands_responses = s2a_srf.get_bands_responses()
Converting SpectralDistribution to Sentinel-2 Responses
Given a colour.SpectralDistribution, Illuminant and Spectral Response Functions, calculate the Sentinel-2 Responses. (WIP)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sentinel_toolkit-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d867dc0919d4962af80f65cb96eeff94ad4a3eff44f8abd0ccfcb9c48ffe93ef |
|
MD5 | 06a48cafd0ae85f6f58fa599fb19579f |
|
BLAKE2b-256 | ad66695619b65ea97b25cc640b5dbb749cc0e30e9c4014d8df3baf7ebd892820 |