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

Class GDALDataset

        object --+    
                 |    
cube.MetadataMixin --+
                     |
                    GDALDataset

Class representing the metadata associated with an image loaded through the GDAL interface. This has the ability to populate an cube.Cube with the parsed values from this text.

Instance Methods
 
__init__(self, filename=None, debug=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__str__(self)
str(x)
 
setURL(self, url=None)
 
open(self, filename=None)
Open the header file, and if successful parse it.
 
save(self, url=None)
 
read(self, dataset)
 
setCubeAttributes(self, cube)
 
getCubeAttributes(self, cube)
 
getCube(self, filename=None, index=0)
Return a cube instance that represents the data pointed to by the metadata.
 
write(self, fh)

Inherited from cube.MetadataMixin: fileExtensions, formatName, getCubeNames, getNumCubes

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

Class Methods
 
identify(cls, urlinfo)
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
  debug = True
  format_id = "GDAL"
  format_name = "GDAL"

Inherited from cube.MetadataMixin: extensions

Properties

Inherited from object: __class__

Method Details

__init__(self, filename=None, debug=False)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

identify(cls, urlinfo)
Class Method

 

Scan through the file-like object to identify if it is a valid instance of the type that the subclass is expecting to load.

Overrides: cube.MetadataMixin.identify
(inherited documentation)

open(self, filename=None)

 

Open the header file, and if successful parse it.

Overrides: cube.MetadataMixin.open

save(self, url=None)

 
Overrides: cube.MetadataMixin.save

getCube(self, filename=None, index=0)

 

Return a cube instance that represents the data pointed to by the metadata.

Overrides: cube.MetadataMixin.getCube
(inherited documentation)