Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading .pts EDX files (JEOL format) #2257

Closed
yy-ssang opened this issue Sep 20, 2019 · 2 comments · Fixed by #2488
Closed

Loading .pts EDX files (JEOL format) #2257

yy-ssang opened this issue Sep 20, 2019 · 2 comments · Fixed by #2488

Comments

@yy-ssang
Copy link

Hello. I am Sang-Hyeok Yang in SungKyunKwan University(SKKU, South Korea).

I'm a new user using hyperspy, and I want to process EDX data.
In hyperspy, .msa file and .rpl file can be opened as EDX data. But I have EDX data as .pts file(JEOL).

So, Does anyone have an idea to load .pts file? or convert .pts file to .msa or .rpl file??

Thank you.

@yy-ssang
Copy link
Author

yy-ssang commented Sep 20, 2019

image

This is error message when I use hs.load() to load .pts file

@jat255
Copy link
Member

jat255 commented Sep 20, 2019

Thanks for the report Sang-Hyeok. HyperSpy does not support .pts files natively. The load function is trying to use a reader that is not designed for that file type, which is why it is failing.

Depending on the format specifications, it would not be too difficult to write a reader to add support for them, but I don't think anyone on the development team has worked with these files before. If you could share the file, or perhaps have a specification for the format from JEOL, that would be very helpful.

Alternatively, to just read your data, if you can export the file into any ASCII-style format from the JEOL software (like txt, csv, etc.), it is generally not too difficult to get that sort of data into HyperSpy using Numpy's file reading tools (see http://hyperspy.org/hyperspy-doc/current/user_guide/getting_started.html#loading-data for creating a signal from a Numpy array).

@jat255 jat255 changed the title I want to load .pts file(EDX file) in hyperspy. Loading .pts EDX files (JEOL format) Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants