$ falcon sim32.h5 - | tsf - char History[30] "falcon sim32.h5 - VERSION=0.3" set SnapShot set Parameters int Nobj 32 double Time 0.00000 tes set Particles int CoordSystem 66306 float Mass[32] 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 0.0312500 . . . float Position[32][3] -1.30477 1.59788e-16 0.00000 -1.29043e-16 -0.702476 -0.405575 1.15331e-16 1.88349 1.08744 0.486825 -0.486825 -0.780658 -2.24382 2.24382 0.819326 0.395285 0.395285 -0.144338 -0.771013 -0.771013 1.23637 -0.791278 -0.327758 . . . float Velocity[32][3] -7.22837e-33 -5.90241e-17 0.481969 0.403077 0.201539 0.116358 0.456809 0.228404 0.131869 0.155023 0.475764 -0.417175 0.416389 -0.119249 0.119206 0.193513 0.675701 0.193444 -0.0480904 0.0156698 -0.0421682 -0.463116 -0.303254 -0.0480676 . . . float Potential[32] -0.582861 -0.726016 -0.389024 -0.611265 -0.276467 -0.705942 -0.491554 -0.691435 -0.332174 -0.788165 -0.519628 -0.725853 -0.430449 -0.625536 -0.196348 -0.556199 -0.137574 -0.740651 -0.402583 -0.816317 -0.495621 -0.634114 . . . float Acceleration[32][3] 0.320830 -0.0112188 -0.0184059 -0.0932003 0.296048 0.227969 0.00853122 -0.126000 -0.0768895 -0.180052 0.0678517 0.199119 0.0551343 -0.0512566 -0.0223483 -0.157876 -0.199445 0.159103 0.124049 0.0825911 -0.223872 . . . tes tes
All snapshots are converted, use csf(1NEMO) or snaptrim(1NEMO) to extract subsets.
A maximum number of particles (100,000) was hardcoded. It should be noted that H5T_STD_U32LE is stored for the number of particles, limiting the HDF data to 4,294,967,296 particles.
All real (float or double) values are converted to H5T_NATIVE_FLOAT
Does not convert the data history yet
Teuben
20-apr-2024 V0.1 Created PJT