diff --git a/rsciio/jeol/_api.py b/rsciio/jeol/_api.py index ba8a45aa8..89a445f75 100644 --- a/rsciio/jeol/_api.py +++ b/rsciio/jeol/_api.py @@ -152,6 +152,65 @@ def _read_asw(filename, **kwargs): file_reader.__doc__ %= (FILENAME_DOC, LAZY_DOC, RETURNS_DOC) +def _read_epma_img(filename, **kwargs): + """ + Parameters + ---------- + filename : str + img file name + kwargs : + not used + + Returns + ------- + image_list : list of images(dict) + (Always len(image_list) == 1) + None if image is not an EPMA map. + """ + with open(filename, "br") as fd: + file_magic = np.fromfile(fd, "