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

"Are there examples of code that reads NeXus data?" - asked at Nobugs 2018 #630

Closed
prjemian opened this issue Oct 25, 2018 · 13 comments · Fixed by #736
Closed

"Are there examples of code that reads NeXus data?" - asked at Nobugs 2018 #630

prjemian opened this issue Oct 25, 2018 · 13 comments · Fixed by #736
Assignees
Labels
documentation NIAC has requested
Milestone

Comments

@prjemian
Copy link
Contributor

@prjemian prjemian commented Oct 25, 2018

Specifically, examples of code that reads specific application definitions and raise the prominence in the documentation

This will be a third subsection in examples/index.rst

@prjemian prjemian added NIAC has requested documentation labels Oct 25, 2018
@prjemian prjemian added this to the NXDL 2019.1 milestone Oct 26, 2018
@toqduj
Copy link

@toqduj toqduj commented Dec 12, 2018

Very soon SasView 4.2.1 will have a functioning NXcanSAS reader. DAWN reads generic NeXus, and outputs NXcanSAS.

@prjemian
Copy link
Contributor Author

@prjemian prjemian commented Apr 2, 2019

@toqduj Can you provide URL to specific example in SASview?

@benajamin
Copy link
Contributor

@benajamin benajamin commented Jan 22, 2020

NXstxm can be read by:

@benajamin
Copy link
Contributor

@benajamin benajamin commented Jan 22, 2020

SasView has python code to read and write NXcanSAS

@phyy-nx
Copy link
Contributor

@phyy-nx phyy-nx commented Jan 22, 2020

Dials code for reading NXmx: https://github.com/cctbx/dxtbx/blob/master/format/nexus.py
cctbx.xfel code for writing NXmx master files for JF16M at SwissFEL: https://github.com/cctbx/cctbx_project/blob/master/xfel/swissfel/jf16m_cxigeom2nexus.py

@benajamin
Copy link
Contributor

@benajamin benajamin commented Jan 22, 2020

Dawn has java code to read and write HDF5 NeXus files (generic NeXus, not tied to specific application definitions).

@mkoennecke
Copy link
Contributor

@mkoennecke mkoennecke commented Jan 24, 2020

A F77 reading routine using NAPI for POLDI at SINQ PSI
poldi.zip The archive includes the code and an example of a file which it reads

@mkoennecke
Copy link
Contributor

@mkoennecke mkoennecke commented Jan 24, 2020

FOCUS stuff:
focus.zip
The archive contains:

  • An example FOCUS file
  • focusreport: A h5py program which skips through a list of files and prints statistics
  • focusreport.tcl, same as above but in Tcl using the Swig generated binding to NAPI
  • i80.f contains a F77 routine for reading FOCUS files into Ida. The routine is RRT_in_Foc.

@mkoennecke
Copy link
Contributor

@mkoennecke mkoennecke commented Jan 24, 2020

ZEBRA stuff in
zebra.zip
This contains:

  • an example file
  • zebra-to-ascii, a h5py script which dumps a zebra file to ASCII
  • TRICSReader.* for reading ZEBRA files in C++ using C-NAPI calls

@mkoennecke
Copy link
Contributor

@mkoennecke mkoennecke commented Jan 24, 2020

NXreader.zip
This is some java code which reads NeXus files into ImageJ. It uses the Java-hdf interface to HDF5. It tries to do a good job locating the image dataset by NeXus conventions. But it uses the old style conventions.

@prjemian
Copy link
Contributor Author

@prjemian prjemian commented Jan 26, 2020

Once these are written into the user guide, this issue can be closed.

@prjemian
Copy link
Contributor Author

@prjemian prjemian commented Jan 26, 2020

HDF5gateway makes it easy to read a HDF5 file into an IgorPro folder, including group and dataset attributes, such as a NeXus data file, modify it, and then write it back out.

@prjemian
Copy link
Contributor Author

@prjemian prjemian commented Jan 26, 2020

Hmmm... This list is similar to, yet different from, the listing in the utilities section of the manual. Enough that I will put all this content into the utilities page with a link from the Examples page.

prjemian added a commit that referenced this issue Jan 26, 2020
@prjemian prjemian self-assigned this Jan 26, 2020
prjemian added a commit that referenced this issue Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation NIAC has requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants