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

Class MetadataMixin

object --+
         |
        MetadataMixin
Known Subclasses:

Generic mixin interface for Cube metadata.

This will be subclassed by various formats like ENVI and GDAL to load the metadata from files and to provide a method to load the cube data.

Instance Methods
 
formatName(self)
 
fileExtensions(self)
 
open(self, filename=None)
 
save(self, filename=None)
 
getCube(self, filename=None, index=None)
Return a cube instance that represents the data pointed to by the metadata.
 
getCubeNames(self)
Return names of cubes contained within this file.
 
getNumCubes(self)
 
__str__(self)
str(x)

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

Class Methods
 
identify(cls, fh, filename=None)
Scan through the file-like object to identify if it is a valid instance of the type that the subclass is expecting to load.
Class Variables
  format_name = 'unknown'
  extensions = []
Properties

Inherited from object: __class__

Method Details

getCubeNames(self)

 

Return names of cubes contained within this file.

Return a list of names that identify the cubes contained within this file.

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)