em_map_utils.map_rotate¶
map_rotate.py
- Author:
Ardan Patwardhan
- Affiliation:
EMBL-EBI, Wellcome Genome Campus, CB10 1SD, UK
- Date:
30/07/2025
- Description:
Rotate map.
Attributes¶
Functions¶
|
Rotate map. |
Module Contents¶
- em_map_utils.map_rotate.map_rotate(map_grid, rotation, rotation_centre=None, initial_translation=None, cubify_if_needed=False, interpolation_order=5, fill_value=0, dtype=np.float32)¶
Rotate map.
- Parameters:
map_grid – Map to rotate.
rotation – Rotation specified as a SciPy rotation object.
rotation_centre – Centre of rotation, taken as the centre of the box if not specified.
initial_translation – A translation that can be applied to the map prior to rotation.
interpolation_order – Spline interpolation order.
cubify_if_needed – If the map box is non-cubic, add padding and make it cubic to the largest dimension before rotating the map.
fill_value – Value to use when interpolation points lie outside the box.
dtype – Data type of returned map
- Returns:
Rotated map.
- em_map_utils.map_rotate.parser¶