magpack.vectorop.magnitude# magnitude(vector_field)# Calculates the magnitude of a vector field. Parameters: vector_fieldnp.ndarrayVector field shape (3, nx, ny, nz) Returns: np.ndarrayMagnitude (scalar field) of the input vector field.