Changes for page The FLASH HDF5 structure

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

From version 91.1
edited by sndueste
on 2025-04-24 13:29
Change comment: There is no comment for this version
To version 93.1
edited by sndueste
on 2025-04-24 13:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -606,7 +606,7 @@
606 606  
607 607  currently it is saved as Unix time in : /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time
608 608  
609 -{{expand title="Timestamp help for python" expanded="false"}}
609 +{{expand expanded="false" title="Timestamp help for python"}}
610 610   import time
611 611  
612 612  # epoch time is found in /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time #!!! a leading 1 has to be added !!!
... ... @@ -617,9 +617,6 @@
617 617  print(formatted_time)
618 618  {{/expand}}
619 619  
620 -|(((
621 -
622 -)))
623 623  
624 624  [[Contents>>doc:||anchor="Contents"]]
625 625  
... ... @@ -1119,9 +1119,9 @@
1119 1119  desc: Each 10 Hz burst has its unique train ID. For the HDF5 dataset the ID is the same for all parameters with the same index (note camera images may be shifted by 1 ID - talk to the experts !)
1120 1120  units:
1121 1121  
1122 -===== Train time =====
1119 +===== (% style="color:#e67e22" %)Train time(%%) =====
1123 1123  
1124 -//always saved (PBD2)//
1121 +(% style="color:#e67e22" %)//always saved (PBD2)//
1125 1125  {{code language="none"}}/Timing/train time{{/code}}
1126 1126  desc:Local time as array of day, hour, minute, second, and centisecond. This dataset is meant for visualisation purposes only. For correlations use the train ID or the Unix time of the time stamp
1127 1127  units: d h min s cs
... ... @@ -1130,11 +1130,28 @@
1130 1130  /Timing/time stamp
1131 1131  {{/code}}
1132 1132  
1133 -//always saved (PBD2)//
1130 +(% style="color:#e67e22" %)//always saved (PBD2)//
1134 1134  desc: first column: Local time in unix time. To get day, hour, minute, second you can use unix: e.g. date ~-~-date='@1553617729' or matlab, python etc
1135 1135  second column: microseconds
1136 1136  third column: Train ID of FLASH
1137 1137  
1135 +
1136 +(% id="cke_bm_2455529S" style="display:none" %) (%%)currently it is saved as Unix time in : /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time
1137 +
1138 +{{expand expanded="false" title="Timestamp help for python"}}
1139 + import time
1140 +
1141 +# epoch time is found in /zraw/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/dGroup/time #!!! a leading 1 has to be added !!!
1142 +# 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
1143 +epoch_time = 1709051499.17 # Replace with your epoch time
1144 +
1145 +formatted_time = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(epoch_time))
1146 +print(formatted_time)
1147 +{{/expand}}
1148 +
1149 +
1150 +
1151 +
1138 1138  [[Contents>>doc:||anchor="Contents"]]
1139 1139  
1140 1140