added rast2mat for calciumdxprintout