ImageIO.adjustLength#

ImageIO.adjustLength(shape=None, pixel=None)#

Calculate the length based on shape and pixel size.

This function computes the length of the data in Angstroms, which is used in the MRC header. It’s specifically designed for MRC files.

Parameters:
shapetuple or None, optional

Shape of the data.

pixelfloat or None, optional

Pixel size in nm.