pymodalib.utils package

Module contents

reorient(array: numpy.ndarray) → numpy.ndarray

Re-orientates an array to follow PyMODAlib’s preferred standard: arrays whose first dimension is greater than their second dimension.

Parameters:array (ndarray) – The array to re-orient.
Returns:An array whose first dimension is greater than, or equal to, the second dimension.
Return type:ndarray