Giter Club home page Giter Club logo

satsense's Introduction

Satsense

Codacy Badge

Satsense is a library for remote sensing using satellite imagery.

It is based on gdal and numpy.

  • satsense - library for analysing satellite images, performance evaluation, etc.
  • notebooks - IPython notebooks for illustrating and testing the usage of Satsense

Installation

We are using python 3.5 and jupyter notebook for our code.

Assuming you have conda installed and are in the directory where you have checked out this repository:

conda create --name satsense python=3
source activate satsense
conda env update

To install satsense from the git repo in development mode use:

pip install -e .

Examples:

Loading a file from the worldview2 satellite and displaying it:

from satsense.util import load_from_file, get_rgb_image
from satsense.features import WORLDVIEW2
import matplotlib.pyplot as plt

imagefile = '/path/to/file/WorldView.tif'
bands = WORLDVIEW2 # The ordering of the bands in a worldview2 file

# Load the file. This will give the raw gdal file as well as a numpy
# ndarray with the bands loaded (not normalized)
dataset, image = load_from_file(imagefile)

# Convert the image to an rgb image. The original image is not
# yet normalized
true_color = get_rgb_image(image, bands, normalized=False)

plt.imshow(true_color)

Calculating the rgNDVI of the image:

from satsense.features import rgNDVI, print_ndvi_stats

ndvi = rgNDVI(image, bands=bands)

print_ndvi_stats(ndvi)

# Display the rgNDVI inverted, because with rgNDVI low values means vegetation
plt.imshow(-ndvi)

satsense's People

Contributors

elboyran avatar bouweandela avatar bpmweel avatar codacy-badger avatar

Watchers

James Cloos avatar Derk Barten avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.