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  2018  2019  2020  <20212022  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  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file
From: Pete Jemian via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 8 Dec 2021 11:32:11 -0600
Take a look at this Jupyter notebook: https://github.com/BCDA-APS/bluesky_training/blob/4da2789cbbeaefa0ac95d0c449bba042a35cf831/.wip/images_darks_flats.ipynb

While it is marked as *work-in-progress*, it might point you in a forward direction.

HTH,
   Pete


On 12/8/2021 10:54 AM, Sintschuk, Michael via Tech-talk wrote:
Hello EPICS-community,

as the title of this thread says, I’m wondering if it is possible to dynamically select where an incoming frame is placed within the HDF5-Files structure. For example, while capturing frames in Stream-mode with the default HDF5-Files structure layout, all incoming frames are placed to:

entry -> instrument -> detector -> data

Now I want to load an individual hdf5-layout.xml with the additional location “flat”:

entry -> instrument -> detector -> flat

Is there a way that I can switch (via an EPICS-PV) the location where the next frame is stored, either “entry -> instrument -> detector -> data” or “entry -> instrument -> detector -> flat”, while the h5-files is still opened? Example scan with a total of 1000 frames, all should go into one h5-file:

  * h5-files is opened
  * the first 20 frames are placed to entry -> instrument -> detector -> flat
  * the next 960 frames are placed to entry -> instrument -> detector -> data
  * the last 20 frames are placed to entry -> instrument -> detector -> flat
  * h5-files is closed

In the AreaDetector user-guide there is the following section:

https://areadetector.github.io/master/ADCore/NDFileHDF5.html#selective-positional-placement-of-individual-frames <https://areadetector.github.io/master/ADCore/NDFileHDF5.html#selective-positional-placement-of-individual-frames>

I switched on the Position mode and put Index N to 0 (or 1) and put Name N to “flat” but I get a Write error status. I think I don’t understand the handling of the dataset dimensions within the h5-file and don’t know if my frame-placement sequence is actually realizable. Can someone help?

Thanks!

Michael

Michael Sintschuk
*Bundesanstalt für Materialforschung und –prüfung (BAM)*
8.5 Mikro-ZfP

Unter den Eichen 87
12205 Berlin
GERMANY

P: +49 30 8062-15063 (BESSY, Adlershof)

P: +49 30 8104-4065 (BAM, Steglitz)
michael.sintschuk at bam.de <mailto:michael.sintschuk at bam.de>

michael.sintschuk at helmholtz-berlin.de <mailto:michael.sintschuk at helmholtz-berlin.de>


--
----------------------------------------------------------
Pete R. Jemian, Ph.D.                 <jemian at anl.gov>
Beam line Controls and Data Acquisition (BC, aka BCDA)
Advanced Photon Source,    Argonne National Laboratory
Argonne, IL  60439                    630 - 252 - 3189
-----------------------------------------------------------
      Education is the one thing for which people
         are willing to pay yet not receive.
-----------------------------------------------------------

References:
AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file Sintschuk, Michael via Tech-talk

Navigate by Date:
Prev: AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file Sintschuk, Michael via Tech-talk
Next: Re: AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file Mark Rivers via Tech-talk
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  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file Sintschuk, Michael via Tech-talk
Next: Re: AreaDetector NDFileHDF5 dynamic frame-placement within an opened H5-file Mark Rivers via Tech-talk
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  2018  2019  2020  <20212022  2023  2024 
ANJ, 08 Dec 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·