decide if saving planes in double or single precision