ImageD11.rsv module#

ImageD11.rsv.getbounds(vol, plane)#

Returns the extent argument to use for pylab.imshow when plotting a plane

ImageD11.rsv.mem()#

debug the memory usage

ImageD11.rsv.readvol(filename, savespace=False)#

Read volume from a file returns an rsv object Take care to allocate and read to avoid temporaries

class ImageD11.rsv.rsv(dimensions, bounds, np, **kwds)#

Bases: object

A reciprocal space volume

allocate_vol()#

Allocates memory for a volume data

normalise(savespace=True)#

Return the normalised but avoid divide by zero

plnames = {'H': 0, 'K': 1, 'L': 2, 'h': 0, 'k': 1, 'l': 2, 0: 0, 1: 1, 2: 2}#
slice(plane, num)#

return signal on plane index num

ImageD11.rsv.writenormedvol(vol, filename)#

Write volume in vol to filename - save only the normalised to avoid using so much memory

Compress -1 is for the zeros, which there might be a lot of

ImageD11.rsv.writevol(vol, filename)#

Write volume in vol to filename

Compress -1 is for the zeros, which there might be a lot of