parse_unit function

Parse data variable units