FAIRmat-NFDI / pynxtools-mpes

A plugin to convert multi photoelectron spectroscopy files into the NXmpes application definition
0 stars 0 forks source link

Add igor support #2

Open domna opened 6 months ago

domna commented 6 months ago

The reader should also support igor binarywave files

lukaspie commented 6 months ago

Hey @domna, I just received some XPS files from a user that are also igor binarywave files. Maybe we could also provide a generic igor parser within https://github.com/FAIRmat-NFDI/pynxtools/pull/250 which could be specialized by the plugins?

domna commented 6 months ago

Yes, we could just add a standard parsing function for igor files as we will do with json and yaml files. I don't know generally how uniform the data is stored in the format but I think we will be able to figure something out.

rettigl commented 6 months ago

Well, igor waves contain matrix data up to 4 dimensions, with attached unit scaling to each dimension (start, step, unit). Additionally, there is a wavenote, which can contain text. Typically, the wave note is being used to store metadata, but the format of this is undefined (often key=value\r\n format).

domna commented 6 months ago

Well, igor waves contain matrix data up to 4 dimensions, with attached unit scaling to each dimension (start, step, unit). Additionally, there is a wavenote, which can contain text. Typically, the wave note is being used to store metadata, but the format of this is undefined (often key=value\r\n format).

Ok, but then we could add general support for the matrix data and custom support for reading data from the note or try key/value notation by default. I will draft something in the multi format reader and then we can see whether this works for us.