-
Notifications
You must be signed in to change notification settings - Fork 9
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
SpecWriterCallback file can't be plotted by newplot or SPEC's splot #201
Comments
example SPEC data file as written: Produces this console report using NewPlot 2.75 in MS Windows:
No earthly idea what situation triggered this message. |
NewPlot was last released in 2006. No useful diagnostics. Has problems with SPEC files produced by SPEC after 2006. Too old for us to try for compatibility. |
Looking through the splot source code, it is expecting to find It will be a challenge to produce the header lines since the motor names might change for each scan. Or, a new header block could be created for each scan... That's ugly. |
Also, splot catches this error message and informs the user that perhaps the file is not in spec format without explaining what triggered this conclusion. |
Start splot with -d option to get debug info |
Trying with a test data file (most data lines removed for brevity):
Here is my report of the errors found by the internal splot routine that reads the file:
|
Clearly, splot will never be able to read SPEC data files that include custom, multi-character control lines such as Still, it is disturbing that the splot reader has reported |
Can also see if silx can read data files from our |
In SPEC data files, |
try silx (see also prjemian/spec2nexus#141):
Wow! That was easy. NeXPy can plot that (with a little help since the HDF5 files are not written with any NXentry/NXdata groups - data is in NXentry/NXcollection instead). Here is the plot from |
With #203 in progress, this issue can be closed now. |
SPEC files produced by SpecWriterCallback cannot be plotted by newplot or SPEC's splot. Problems: newplot first complains about missing
#P
lines, splot complains the file is not in spec format.However, PyMCA plots the data properly. So does NeXpy (although it complained the default data was not indicated after import).
Check these packages to see how they read
SpecWriterCallback
data files:#MD
custom control lines as errorsThe text was updated successfully, but these errors were encountered: