cryocat.core.cryomotl.mod2emmotl#

cryocat.core.cryomotl.mod2emmotl(input_mod, output_motl_path=None, mod_prefix='', mod_suffix='.mod', update_coordinates=False)#

Converts a ModMotl to EmMotl format and optionally writes it to a file.

Parameters:
input_modstr or pandas.DataFrame or ModMotl

Path to the input IMOD .mod file or directory, or an already loaded ModMotl object.

output_motl_pathstr, optional

If provided, the converted motl will be written to this path.

mod_prefixstr, default=””

Prefix for mod files when reading from directory.

mod_suffixstr, default=”.mod”

Suffix for mod files when reading from directory.

update_coordinatesbool, default=False

If True, updates the coordinates in the DataFrame.

Returns:
em_motlEmMotl

The converted EmMotl object.