Note: If you want to a single file into one hdf5 go see to_hdf5
def merge_hdf5(filelist, combined_name,shortend = True, erase_file='partial', merge_process=False
to_hdf5
take only one argument:
- filelist: list of the files you want to convert and merge into one single file
- combined_name: name of the resulting hdf5 file.
- shortend: (optional) shorten the file path of the files if they are in subfolders)
- erase_file: (optional) if set to anything else other than 'partial' will save intermediary hdf5 of each file in filelist.
- merge_process: (optional) if hdf5 file are passed in filelist and merge_process is set to True, it will try to merge their process folder.
Example of the shortend parameter :
- If all the files are in a subfolder /fold1/data1.ibw, /fold1/data2.ibw, ... then the path in the hdf5 will only be data1, data2, ... if shortend is True, otherwise it will be /fold1/data1, /fold1/data2.
- If you have a subfolder structure like : fold1/sub1/data1.ibw /fold1/sub2/data2.ibw ... then the path in the hdf5 will only be sub1/data1, sub2/data2, ... if shortend is True, otherwise it will be fold1/sub1/data1, /fold1/sub2/data2
Currently it is able to convert the following file types:
-
.ibw
from Asylum Research instruments -
.ardf
from Asylum Research instruments -
.sxm
from Nanonis instruments -
.xrdml
from Philips instruments -
.gsf
from Gwyddion software - the standards
.jpg
,.png
,.bmp
and.csv