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

Read(*args, **kwargs)[source]
SetFileName(filename)[source]
static clean_dict(d)[source]
generate_band(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 read_tif(tifFile)[source]

Reads a tif file to a 2D NumPy array

set_file_name(filename)[source]

set_properties

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

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