HMDparse function

internal function for modifying freshly read HMD data in its standard form