Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| hdf5 [2018/02/01 19:52] – [Manipulate data from your code] admin | hdf5 [2018/02/01 19:57] (Version actuelle) – [Links] admin | ||
|---|---|---|---|
| Ligne 81: | Ligne 81: | ||
| data_file.create_dataset(' | data_file.create_dataset(' | ||
| data_file.close() | data_file.close() | ||
| + | </ | ||
| + | |||
| + | **Read HDF5** | ||
| + | <code python> | ||
| + | |||
| + | import h5py | ||
| + | filename = ' | ||
| + | f = h5py.File(filename, | ||
| + | |||
| + | # List all groups | ||
| + | print(" | ||
| + | a_group_key = list(f.keys())[0] | ||
| + | |||
| + | # Get the data | ||
| + | data = list(f[a_group_key]) | ||
| + | |||
| </ | </ | ||
| ===== Using H5 tools ===== | ===== Using H5 tools ===== | ||
| Ligne 99: | Ligne 115: | ||
| {{ : | {{ : | ||
| */ | */ | ||
| - | ====== | + | ====== |
| - | http:// | + | * http:// |
| + | * https:// | ||