Package peppy :: Package hsi :: Module GDAL :: Class GDALCube
[frames] | no frames]

Class GDALCube

object --+    
         |    
 cube.Cube --+
             |
            GDALCube

Instance Methods
 
__init__(self, filename=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
open(self, filename=None)
 
save(self, filename=None)
 
guessDisplayBands(self)
Guess the best bands to display a false-color RGB image using the wavelength info from the cube's metadata.
 
scanGDAL(self)
Try to guess stuff from the GDAL metadata.
 
getPixel(self, line, sample, band)
Get an individual pixel at the specified line, sample, & band
 
getBandRaw(self, band)
Get an array of (lines x samples) at the specified band
 
getSpectraRaw(self, line, sample)
Get the spectra at the given pixel

Inherited from cube.Cube: __str__, fileExists, flatToLocation, getBadBandList, getBand, getBandBoundary, getBandInPlace, getBandListByWavelength, getFlatView, getFocalPlaneDepthInPlace, getFocalPlaneDepthRaw, getFocalPlaneInPlace, getFocalPlaneRaw, getLineOfSpectra, getLineOfSpectraCopy, getSpectra, getSpectraInPlace, getUpdatedExtrema, getWavelengthStr, guessScaleFactor, guessWavelengthUnits, initialize, initializeMmap, initializeOffset, initializeRaw, initializeSizes, isDataLoaded, locationToFlat, normalizeUnits, normalizeUnitsTo, setURL, shape, updateExtrema, verifyAttributes

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties

Inherited from object: __class__

Method Details

__init__(self, filename=None)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

open(self, filename=None)

 
Overrides: cube.Cube.open

save(self, filename=None)

 
Overrides: cube.Cube.save

guessDisplayBands(self)

 

Guess the best bands to display a false-color RGB image using the wavelength info from the cube's metadata.

Overrides: cube.Cube.guessDisplayBands

getPixel(self, line, sample, band)

 

Get an individual pixel at the specified line, sample, & band

Overrides: cube.Cube.getPixel
(inherited documentation)

getBandRaw(self, band)

 

Get an array of (lines x samples) at the specified band

Overrides: cube.Cube.getBandRaw

getSpectraRaw(self, line, sample)

 

Get the spectra at the given pixel

Overrides: cube.Cube.getSpectraRaw