Closed ZOUCHEN158 closed 1 year ago
What detector are you using to produce the .raw
file?
EMPAD
You can read EMPAD-G1 data using py4DSTEM.import_file(filepath)
. If your scan was not square, you have to specify the size like this: py4DSTEM.import_file(filepath, EMPAD_shape=(size_x,size_y))
.
EMPAD-G2 support will be available in the near future.
Should I transform the importfile(.raw) into .h5? I want to do some DPC test.
Once you run dataset = py4DSTEM.import_file(filepath)
, the data is loaded and you can do your DPC analysis (exactly the same as if the data was loaded from an h5 file). You could save the data as an h5 file if you wanted to, which would have the benefit of including any calibrations that you add to the data.
thanks a lot!
Actually, we get the data with ".raw" not ".h5", what should we do to transform it to ".h5". Maybe other ways to import the ".raw" files? Thanks in advance.