to_normal_frame#

mobgap.utils.conversions.to_normal_frame(data: DataFrame) DataFrame[source]#

Rename the columns of the passed dataframe to match the normal global frame axis or the sensor frame axis names.

This will work for either data in the body frame or the global body frame. Data from the body frame will be converted in the sensor frame (is -> x, ml -> y, pa -> z). Data in the body-aligned global frame will be converted to the normal global frame (gis -> gz, -gml -> y, gpa -> x).

In both cases, we assume that the coordinate system definitions of the provided data matches the mobgap/Mobilise-D guidelines.

Parameters:
data

The dataframe to rename.

Returns:
pd.DataFrame

The dataframe with the columns renamed to match the normal global frame axis names