EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How do you generate nexus files?
From: Gabriel de Souza Fedel <[email protected]>
To: [email protected]
Date: Wed, 9 May 2018 16:30:46 -0300
Hi Peter

On 09-05-2018 10:00, Pete Jemian wrote:

When not using the EPICS Area Detector HDF5 File Writing Plugin to write area detector data into a NeXus file, our USAXS instrument uses custom Python code and the h5py package to write NeXus files.


On 2018-05-09 7:22 AM, Matt Newville wrote:
 From python, nexpy (https://github.com/nexpy/nexpy) is very useful for working with nexus data, either from plain python programs, or from its very nice GUI.  You can also sort of "roll your own" by using HDF5 + the nexus conventions.  That's probably not "recommended", but it can work in a pinch.

The NeXus International Advisory Committee advises to use the NAPI support library when writing NeXus data files.  But when the NIAC members were asked who among them uses the NAPI, the response was less than half. Thus, there are code examples for NAPI and non-NAPI file writers here: http://download.nexusformat.org/doc/html/examples/index.html#code-examples-that-use-the-nexus-api-napi

For Python, see this page: http://download.nexusformat.org/doc/html/examples/h5py/index.html

Use any software you wish to write a NeXus HDF5 data file.  The documentation is the "NeXus: User Manual" (http://download.nexusformat.org/doc/html/user_manual.html).

There are programs to check if a given data file passes validation.  See this page for the list from NeXus: http://download.nexusformat.org/doc/html/validation.html ; As its author, I suggest you try the punx program if you wish to validate your data files.


Thank you for te references!

Regards

--
Gabriel Fedel
Software de Operação das Linhas de Luz
Laboratório Nacional de Luz Síncrotron – (LNLS)
Centro Nacional de Pesquisa em Energia e Materiais (CNPEM)
[email protected] | +55 (19) 3512 1226
www.lnls.cnpem.br

References:
How do you generate nexus files? Gabriel de Souza Fedel
Re: How do you generate nexus files? Matt Newville
Re: How do you generate nexus files? Pete Jemian

Navigate by Date:
Prev: Re: How do you generate nexus files? Gabriel de Souza Fedel
Next: Smaract MCS2 Motor Record Lentz, Zachary L
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How do you generate nexus files? Pete Jemian
Next: Re: How do you generate nexus files? Gabriel de Souza Fedel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 09 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·