This package calculates several indexes based onn multiband satellite images.
Project description
This package calculates several indexes based on multiband satellite images.
How to use
from satindex import SatelliteImage
from satindex import example_data_path
# load a rgbi geotif
img = SatelliteImage(example_data_path)
# save ndwi image to example_data/ndwi.tif
img.save_ndwi(example_data_path.with_name("ndwi.tif"))
# save ndvi image to example_data/ndvi.tif
img.save_ndvi(example_data_path.with_name("ndvi.tif"))
# get ndwi as numpy array
ndwi = img.ndwi
Installation
To install satindex, do:
git clone https://gitlab.com/rwsdatalab/public/codebase/image/satindex.git
cd satindex
pip install .
Run tests (including coverage) with:
pip install -r requirements-dev.txt
python setup.py test
Documentation
Find the full documentation at https://rwsdatalab.gitlab.io/public/codebase/image/satindex
License
Copyright (c) 2022, Rijkswaterstaat
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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
File details
Details for the file satindex-0.1.0.tar.gz
.
File metadata
- Download URL: satindex-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d691361b18c16632511fc8259dbb0884c9f621e2c6272198562a5f9548a2d5fd |
|
MD5 | b326bc6ad752c22a7665cdb61ef26992 |
|
BLAKE2b-256 | 52b4666d19309edc3675050b1dc90eebae9174300ab0a6a3ac8bb05834d735a9 |
File details
Details for the file satindex-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: satindex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49b5fd3bcb1f639545271b2c3125417395b9659b02587cd3f755f486a7b68bf |
|
MD5 | f8d713249a9a7157a9b6f03458a7453d |
|
BLAKE2b-256 | 0e527f1ffb322c1ae02f9d5faa4bca8a714e4cffa90ff1e99bb3f9fe69d3324f |