adds data conversion from npz and output datafile