Package peppy :: Package hsi :: Module cube :: Class BSQCube
[frames] | no frames]

Class BSQCube

object --+    
         |    
      Cube --+
             |
            BSQCube

Instance Methods
 
__init__(self, url=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
shape(self)
Shape the array based on the cube type
 
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
 
getFocalPlaneRaw(self, line)
Get an array of (bands x samples) the given line
 
getFocalPlaneDepthRaw(self, sample, band)
Get an array of values at constant line, the given sample and band
 
getLineOfSpectraCopy(self, line)
Get the spectra along the given line
 
getBandBoundary(self)
return the number of items you have to add to a flat version of the data until you reach the next band in the data
 
flatToLocation(self, pos)
Convert the flat index to a tuple of line,sample,band
 
locationToFlat(self, line, sample, band)
Convert location (line,sample,band) to flat index

Inherited from Cube: __str__, fileExists, getBadBandList, getBand, getBandInPlace, getBandListByWavelength, getFlatView, getFocalPlaneDepthInPlace, getFocalPlaneInPlace, getLineOfSpectra, getSpectra, getSpectraInPlace, getUpdatedExtrema, getWavelengthStr, guessDisplayBands, guessScaleFactor, guessWavelengthUnits, initialize, initializeMmap, initializeOffset, initializeRaw, initializeSizes, isDataLoaded, normalizeUnits, normalizeUnitsTo, open, save, setURL, updateExtrema, verifyAttributes

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

Properties

Inherited from object: __class__

Method Details

__init__(self, url=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

shape(self)

 

Shape the array based on the cube type

Overrides: Cube.shape
(inherited documentation)

getPixel(self, line, sample, band)

 

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

Overrides: Cube.getPixel
(inherited documentation)

getBandRaw(self, band)

 

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

Overrides: Cube.getBandRaw

getSpectraRaw(self, line, sample)

 

Get the spectra at the given pixel

Overrides: Cube.getSpectraRaw

getFocalPlaneRaw(self, line)

 

Get an array of (bands x samples) the given line

Overrides: Cube.getFocalPlaneRaw

getFocalPlaneDepthRaw(self, sample, band)

 

Get an array of values at constant line, the given sample and band

Overrides: Cube.getFocalPlaneDepthRaw

getLineOfSpectraCopy(self, line)

 

Get the spectra along the given line

Overrides: Cube.getLineOfSpectraCopy

getBandBoundary(self)

 

return the number of items you have to add to a flat version of the data until you reach the next band in the data

Overrides: Cube.getBandBoundary
(inherited documentation)

flatToLocation(self, pos)

 

Convert the flat index to a tuple of line,sample,band

Overrides: Cube.flatToLocation
(inherited documentation)

locationToFlat(self, line, sample, band)

 

Convert location (line,sample,band) to flat index

Overrides: Cube.locationToFlat
(inherited documentation)