ratiohist script