<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
If you do decide to go down the Python route, you might want to look at the nexusformat Python API documented at <a href="https://nexpy.github.io/nexpy/" class="">https://nexpy.github.io/nexpy/</a>. You don’t need NeXpy, just nexusformat, which is available
with pip or on conda-forge. There is a Jupiter notebook that you can run at <a href="https://colab.research.google.com/github/nexpy/nexusformat/blob/master/src/nexusformat/notebooks/nexusformat.ipynb" class="">
https://colab.research.google.com/github/nexpy/nexusformat/blob/master/src/nexusformat/notebooks/nexusformat.ipynb</a> to try it out. It is simpler than using h5py if you want to load entire NeXus files or create new ones.
<div class=""><br class="">
</div>
<div class="">Ray <br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 14, 2020, at 11:27 AM, Freddie Akeroyd - UKRI STFC <<a href="mailto:freddie.akeroyd@stfc.ac.uk" class="">freddie.akeroyd@stfc.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi Corina,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">How are you currently doing the import – are you using one of the origin HDF5 plugins such as<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a href="https://www.originlab.com/fileExchange/details.aspx?fid=269" style="color: rgb(149, 79, 114); text-decoration: underline;" class=""><span style="color: windowtext;" class="">https://www.originlab.com/fileExchange/details.aspx?fid=269</span></a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a href="https://www.originlab.com/doc/X-Function/ref/impHDF5" style="color: rgb(149, 79, 114); text-decoration: underline;" class=""><span style="color: windowtext;" class="">https://www.originlab.com/doc/X-Function/ref/impHDF5</span></a><span class="Apple-converted-space"> </span>?
I’m not a user of Origin, but you may be able to use h5py via the Origin python plugin<span class="Apple-converted-space"> </span><a href="https://www.originlab.com/doc/python/Run-Python-in-Origin" style="color: rgb(149, 79, 114); text-decoration: underline;" class=""><span style="color: windowtext;" class="">https://www.originlab.com/doc/python/Run-Python-in-Origin</span></a><span class="Apple-converted-space"> </span>to
customise a load – there are examples of reading NeXus using h5py on the NeXus web site<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Regards,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Freddie<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div>
<div class="">
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<b class=""><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span>NeXus <<a href="mailto:nexus-bounces@shadow.nd.rl.ac.uk" class="">nexus-bounces@shadow.nd.rl.ac.uk</a>><span class="Apple-converted-space"> </span><b class="">On
Behalf Of<span class="Apple-converted-space"> </span></b>Keller, Corina<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>08 January 2020 09:46<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:nexus@nexusformat.org" class="">nexus@nexusformat.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>[Nexus] Nexus import to OriginPro<o:p class=""></o:p></span></div>
</div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">Hi all,<br class="">
<br class="">
we are currently trying to import and customize the import of nexus files to OriginPro (OriginLab) due to the needs of some of our users; i.e, we need to extract some of the info of the nexus file and organise it in Origin workbooks by using the corresponding
metadata, e.g., name or units. We now wondered if this (or a similar issue) may have been already addressed?<span class="Apple-converted-space"> </span><br class="">
<br class="">
Many thanks and kind regards,<br class="">
Corina<o:p class=""></o:p></span></div>
</blockquote>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<o:p class=""> </o:p></div>
<div class="MsoNormal" align="center" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif; text-align: center;">
<hr size="2" width="100%" align="center" class="">
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: gray;" class=""><br class="">
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH<br class="">
<br class="">
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.<br class="">
<br class="">
Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher<br class="">
Geschäftsführung: Prof. Dr. Bernd Rech (Sprecher), Prof. Dr. Jan Lüning, Thomas Frederking<br class="">
<br class="">
Sitz Berlin, AG Charlottenburg, 89 HRB 5583<br class="">
<br class="">
Postadresse:<br class="">
Hahn-Meitner-Platz 1<br class="">
D-14109 Berlin</span><o:p class=""></o:p></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">NeXus
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="mailto:NeXus@nexusformat.org" class="">NeXus@nexusformat.org</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="http://lists.nexusformat.org/mailman/listinfo/nexus" class="">http://lists.nexusformat.org/mailman/listinfo/nexus</a></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>