Update readOpenArray.R

process data up to the common data variable format (named dat)