Read Denzo .x file.
Public Methods:
GetOrientationMatrix, StartPosition, CenterPosition, DataSet, Scan,
framerange, scanangle, frametime
|
Methods
|
|
|
|
|
CenterPosition
|
CenterPosition ( self, hardware )
Calculate goniometer position corresponding to center of the image
parameters:
hardware: hardware object
return value:
a position object
|
Exceptions
|
|
error("unknown scan angle '%s'" % self.scanangle() )
|
|
|
|
DataSet
|
DataSet (
self,
complete=0,
cell=None,
)
Create database object of reflections found by Denzo in this image
optional parameters:
complete=0: if 0, give all reflections listed
if 1, give only reflections listed as non-partial
return value:
dataset object |
|
|
GetOrientationMatrix
|
GetOrientationMatrix ( self, hardware )
Calculate orientation matrix of the crystal in CAD4 coordinates
parameters:
hardware: hardware object
return value:
a 3x3 orientation matrix (row matrix of a* b* c*) |
|
|
InvertedDataSet
|
InvertedDataSet (
self,
complete=0,
cell=None,
)
Create database object of reflections found by Denzo in this image
optional parameters:
complete=0: if 0, give all reflections listed
if 1, give only reflections listed as non-partial
return value:
dataset object |
|
|
Scan
|
Scan (
self,
hardware,
expandfactor=1.0,
expandeitherside=0.0,
)
Create scan object that represents the Denzo image.
parameters:
hardware: hardware object
optional parameters:
expandfactor: how much longer should the scan be than the real scan seen by
denzo (made by symmetric expansion). Default=1.0
expandeitherside: angle in radians by which the scan should be expanded in
both directions to account for mosaicity.
return value:
scan object
|
Exceptions
|
|
error("unknown scan angle '%s'" % self.scanangle() )
|
|
|
|
StartPosition
|
StartPosition ( self, hardware )
Calculate goniometer position corresponding to the start of the scan
NOT THE START OF THE IMAGE!!!!
parameters:
hardware: hardware object
return value:
a position object
|
Exceptions
|
|
error("unknown scan angle '%s'" % self.scanangle() )
|
|
|
|
__init__
|
__init__ (
self,
xfilename,
kcdfilename=None,
inhibitkcd=0,
)
Constructor
parameters:
xfilename : name of .x file
kcdfilename : name of .kcd file
|
Exceptions
|
|
error( "Invalid KCD file" ) error( "Invalid X file" )
|
|
|
|
framerange
|
framerange ( self )
Return the scan range for the image |
|
|
frametime
|
frametime ( self )
|
|
|
getdenzoparam
|
getdenzoparam (
self,
attr,
default=None,
)
|
|
|
scanangle
|
scanangle ( self )
Return the name of the angle that was used to scan. First letter is capital. |
|