I want to analyze a diffraction pattern. Py4dSTEM is asking for a datacube to start with. I thought it might be able to convert an image to this format:
But I get this error:
Exception: Unrecognized file extension .png. To force reading as a particular filetype, pass the 'ft' keyword argument.
Since py4DSTEM doesn't seem to work directly with images, is there any software that can convert say a png (or any other common image format) to their datacube format?
Then I tried:
And I get this error:
if binfactor > 1: 86 assert(mem!='MEMMAP'), "Error: binning is not supported for memory mapping. Either set binfactor=1 or set mem='RAM'" ---> 87 assert(ft in [None,'dm','empad','mrc_relativity','gatan_K2_bin','kitware_counted']), "Error: ft argument not recognized" 88 89 if ft is None: AssertionError: Error: ft argument not recognized ```