Package peppy :: Package hsi :: Module common
[frames] | no frames]

Module common

Classes
  MetadataMixin
Generic mixin interface for Cube metadata.
  Cube
Generic representation of an HSI datacube.
  ROIFile
Container for ROIs pertaining to a single cube.
  HyperspectralROIFormat
  ROI
  HyperspectralFileFormat
  HyperspectralSTC
Functions
 
newCube(interleave, url=None)
 
normalizeUnits(txt)
Return standard units label for the given label.
 
resample(x1, y1, x2, y2, bbl1=None)
Resample using linear interpolation.
 
spectralAngle(lam1, spectra1, lam2, spectra2, bbl=None)
Determine spectral angle between two vectors.
Variables
  LittleEndian = 0
  BigEndian = 1
Function Details

normalizeUnits(txt)

 

Return standard units label for the given label.

Given a text string, return the standard (usually SI) abbreviation. Currently just supports lengths.

Returns None if label not known.

resample(x1, y1, x2, y2, bbl1=None)

 

Resample using linear interpolation.

Given two sets of data, resample the second set to match the first set's x values and range.

@returns tuple (sampling, data1, data2)

spectralAngle(lam1, spectra1, lam2, spectra2, bbl=None)

 

Determine spectral angle between two vectors.

Computes the spectral angle between the common range of two vectors, resampling the second one to conform to the first's sampling points if necessary.

@returns angle in degrees