Conversation
|
@mretegan @woutdenolf @newville My understanding of the NIAC minutes of Telco 20260211 is that both options are OK. As said many times, my position is to go for NeXus base classes representing the experimental data collection modes, as I wrote in the famous shared Google document long time ago. This solution has the strong advantage that then the base classes can be reused by other application definitions, like XMCD and other techniques. I do not understand why we are still hesitating on this. Please, let's move on. As a first start, I propose implementing the basic modes that represent most of the XAS and other techniques' data:
As an alternative, for the fluorescence yield (in view of the electron yield or the optical yield), we may adopt the subclass approach:
But I think this is just a complication and I would just go for the first approach of base classes for each experimental collection mode. |
|
Thank you both for your input. I think that to have a complete picture, it will make sense to finish both in parallel and to create a few HDF5 examples. I will start working on this tomorrow. |
Hi @newville thanks for your feedback. To me, the modes are more than just informative. They tell exactly what is "mu" and how it was measured. For example, Fe K-edge XAS "mu" of Fe2O3 measured in transmission is a different thing than Fe K-edge XAS "mu" of Fe2O3 measured in HERFD. Furthermore, the "minimum required metadata" for transmission are not the same as HERFD. |
@mretegan for me it is very difficult to read the |
|
@maurov I would be cautious about being overly strict here. Yes, data measured in different modes are different, and processing/analysis may want to do different steps based on the mode. And the mode should be stated. And, yes, HERFD really ought to state energy analyzed (but that is also a trusted value), but is NeXuS going to say that a file is invalid if it states mode="HERFD" but does not correctly spell "analyzed energy" in every group? |
We have something set up, but it builds the You can also build locally. Go to the |
|
@mretegan @maurov Thanks. I don't really disagree with any of the changes here. But getting bogged down on how to spell different types of emissions seems like both a killer of motivation and a detail that does not dramatically change the downstream use of the normalized mu data. Yes, it is helpful metadata, and can sometimes be important for comparing data. But detection modes can vary and evolve, and you may not know every possible data collection mode, and metadata can be messy, incomplete, or wrong. Still, an nxXAS group with normalized mu(E) is useful. Please get this merged, and let us start using this. The danger that data collection and analysis applications will define their own HDF5 format and see no need to support this one is very real. |
a619317 to
24c6e81
Compare
|
@mretegan Why is Iref removed? For many people, the unbreakable coupling of an XAS measurement with a reference channel is vital. This really needs to be supported. |
@newville the idea is to substitute |
|
@mretegan Yes, of course, a separate spectrum can act as a reference signal. Many people and many beamlines also often collect a reference spectrum in the same scan. This is more than an additional reference spectrum - it is unambiguously the same energy scan measuring multiple spectra simultaneously, and cannot be separated from the original spectrum. And, yes, many beamlines at modern facilities have sufficiently stable energies and do not require this. But there are older spectra and older beamlines that do really need this. |
Another possibility for having fields that are acquisition mode dependent is to use subclasses as suggested here: nexusformat#1352 (comment)
This is a reasonable alternative, as it is unlikely that we will be able to define acquisition modes that will be reused by other techniques (the alternative option proposed above and implemented here: #6).
The two options were discussed in the NIAC https://www.nexusformat.org/Telco_20260211.html