import h5py import numpy as np # Test file filepath = r'F:\2020-09-22\data\auto_266_143513_b29_13_213605_data_rsn2648_seq1_ch0_1599039547.h5' with h5py.File(filepath, 'r') as f: print("=== Structure du fichier ===") print("Datasets:", list(f.keys())) if 'adc_values' in f: d = f['adc_values'] print("\n=== Dataset adc_values ===") print("Shape:", d.shape) print("Dtype:", d.dtype) print("\n=== Attributs du dataset ===") for k, v in d.attrs.items(): print(f" {k}: {v}") # Charger un échantillon sample = d[:2000] print("\n=== Statistiques (premiers 2000 samples) ===") print("Min:", np.min(sample)) print("Max:", np.max(sample)) print("Mean:", np.mean(sample)) print("Std:", np.std(sample)) print("RMS:", np.sqrt(np.mean(sample**2))) print("\n=== Premiers 20 valeurs ===") print(sample[:20])