Changes between Version 6 and Version 7 of 802.11/wlan_exp/log/util
- Timestamp:
- Mar 22, 2014, 5:19:29 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/log/util
v6 v7 67 67 68 68 Refer to the {{{warpnet_example_wlan_log_parse.py}}} script for an example of using the {{{log_data_to_np_arrays}}} method. 69 70 == Saving numpy Arrays to HDF5 Files == 71 After log data is translated to numpy record arrays, these arrays can be processed by Python code or saved to file for processing by other tools. The HDF5 file format is well suited to storing this kind of named and typed data. The {{{np_arrays_to_hdf5}}} method will write a group of numpy arrays to an HDF5 file. The arrays should be organized into a dictionary (such as that returned by {{{log_data_to_np_arrays}}}). The dictionary keys will be used as the HDF5 dataset names. The {{{np_arrays_to_hdf5}}} method will traverse a hierarchy of dictionaries, creating HDF5 groups per top-level key. This is a good approach to aggregate processed log data from many nodes into a single file for processing by other tools (like MATLAB).