working code for getdata and n2diso,but need to manually merge with Beth's new stackimage code later