Skip to main content

Landsat raster file I/O

Project description

Documentation Status PyPI Build Status Documentation Built by gendocs GitHub

An open-source Python package for simple loading of Landsat imagery as NumPy arrays. This website hosts the code documentation for the espatools python package found on GitHub and PyPI. This website documents the code so that users have a convenient and familiar means of searching through the library to understand the backend of the features they are using.

Connections

  • The package heavily uses properties for the creation of strongly typed objects in a consistent, declarative way.

  • PVGeo has implemented an interface for espatools to read Landsat imagery via XML metadata files. Check out PVGeo’s Landsat Reader for more details.

Getting Started

espatools is available from PyPI

$ pip install espatools

Usage

We think espatools is easy to use; give it a try and let us know what you think as this is just the alpha-release!

  1. First, take a look at this example for PVGeo where espatools has an interface for direct use in ParaView.

  1. Then checkout this Jupyter Notebook for a demonstration of some simple plotting after reading Landsat imagery in a Python environment.

Example False Color

import espatools
import matplotlib.pyplot as plt

# Create the reader to manage I/O
reader = espatools.RasterSetReader(filename='metadata.xml')

# Perform the read and yield a raster set
raster = reader.Read()

# Get an RGB color scheme
color = raster.GetRGB('false_a')

# Now plot the false color image
plt.imshow(color)

The results of the above code yield the following false color image:

RGB False Color

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

espatools-0.0.7.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file espatools-0.0.7.tar.gz.

File metadata

  • Download URL: espatools-0.0.7.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for espatools-0.0.7.tar.gz
Algorithm Hash digest
SHA256 754cad05afbfd2cd77bb1833b87660af1e439cdc8f2c2d36be7a417d5d708934
MD5 a4124352fb47da8d2b4425042e04789d
BLAKE2b-256 ff1bf99dfa04959f80abefb7dcc8afe6a9346c30fb54f774b14166d9f4e743f2

See more details on using hashes here.

Provenance

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