Changes for page The FLASH HDF5 structure

Last modified by sndueste on 2025/09/10 11:43

From version 89.13
edited by sndueste
on 2025/04/24 13:24
Change comment: There is no comment for this version
To version 90.1
edited by sndueste
on 2025/04/24 13:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -609,6 +609,17 @@
609 609  |(((
610 610  /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time
611 611  
612 +{{expand title="Timestamp help for python" expanded="false"}}
613 + import time
614 +
615 +# epoch time is found in /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time #!!! a leading 1 has to be added !!!
616 +# The time and date of the start of the data taking in the HDF file is encoded in the filename - to roughly check the time
617 +epoch_time = 1709051499.17 # Replace with your epoch time
618 +
619 +formatted_time = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(epoch_time))
620 +print(formatted_time)
621 +{{/expand}}
622 +
612 612  
613 613  )))
614 614