openstb.simulator.result_converter.numpy
Classes:
| Name | Description |
|---|---|
NumpyConverter |
Convert simulation results to a NumPy file. |
NumpyConverter
NumpyConverter(filename, compress=False)
Bases: ResultConverter
Convert simulation results to a NumPy file.
The writes the data as a NumPy .npz file with the following variables:
* baseband_frequency: the frequency used to baseband the data
* ping_start_time: seconds since the start of the trajectory that the pings
were sent
* pressure: the simulated pressure at each receiver
* pressure_dimensions: string array giving the order of dimensions in
pressure.
* sample_time: seconds since the start of its ping that each sample was captured
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
path - like
|
The path to save the converted results at. |
required |
compress
|
Boolean
|
If True, compress the data while writing. |
False
|
Source code in openstb/simulator/result_converter/numpy.py
37 38 39 40 41 42 43 44 45 | |