read

This module holds the file I/O methods for rasters and bands.

RasterSetReader

class espatools.read.RasterSetReader(**kwargs)[source]

Bases: object

Read a series of raster files via their XML metadata file in ESPA schema

static CleanDict(d)[source]
GenerateBand(band, meta_only=False, cast=False)[source]

Genreate a Band object given band metadata

Parameters:band (dict) – dictionary containing metadata for a given band
Returns:the loaded Band onject
Return type:Band
Read(meta_only=False, allowed=None, cast=False)[source]

Read the ESPA XML metadata file

static ReadTif(tifFile)[source]

Reads a tif file to a 2D NumPy array

SetFileName(filename)[source]

SetProperties

espatools.read.SetProperties(has_props_cls, input_dict, include_immutable=True)[source]

A helper method to set an HasProperties object’s properties from a dictionary