Experiment package¶
Submodules¶
Experiment.AUV module¶
AUV module simulates an autonomous underwater vehicle (AUV) to collect data.
- class Experiment.AUV.AUV¶
Bases:
object
- __load_auv_data() None ¶
Load AUV data from synchronized csv file. Those data are collected from the AUV in the field experiment.
- Methodology:
Read csv file using pandas.
Convert pandas dataframe to numpy array.
Extract timestamp, latitude, longitude, depth, salinity, and temperature from the numpy array.
Convert latitude and longitude to UTM coordinates.
Filter values when the AUV is at surface or too deep (0.25m < depth < 1.0 m).
Concatenate timestamp, x, y, and salinity together to form the dataset.
Examples
>>> auv = AUV() >>> auv.get_dataset() array([[ 1.60000000e+01, 1.00000000e+00, 1.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00]])
- Returns
None
- get_dataset() numpy.ndarray ¶
Get dataset of AUV.
Examples
>>> auv = AUV() >>> auv.get_dataset() array([[ 1.60000000e+01, 1.00000000e+00, 1.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00, 3.00000000e+00]])
- Returns
Dataset of AUV.
- Return type
np.ndarray