Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

satindex-0.1.0.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

satindex-0.1.0-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

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