World Ocean Simulation System (WOSS) library
|
class for storing data of any acoustic toolbox ARR file More...
#include <ac-toolbox-arr-asc-reader.h>
Public Member Functions | |
~ArrData () | |
void | initialize () |
int | getTimeArrIndex (double tx_depth, double rx_depth, double rx_range) const |
int | getIndex (float value, float *array, int array_size) const |
Public Attributes | |
float | frequency |
int32_t | Nsd |
float * | tx_depths |
int32_t | Nrd |
float * | rx_depths |
int32_t | Nrr |
float * | rx_ranges |
TimeArr * | arr_values |
class for storing data of any acoustic toolbox ARR file
class ArrData stores TimeArr values provided by any acoustic toolbox ARR file
|
inline |
Destructor
References arr_values, rx_depths, rx_ranges, and tx_depths.
int ArrData::getIndex | ( | float | value, |
float * | array, | ||
int | array_size | ||
) | const |
Returns the index of given array associated to given value
value | test value |
array | valid pointer to an array |
array_size | size of passed array |
Referenced by getTimeArrIndex().
int ArrData::getTimeArrIndex | ( | double | tx_depth, |
double | rx_depth, | ||
double | rx_range | ||
) | const |
Returns the arr_values index associated to given parameters
tx_depth | transmitter depth [m] |
rx_depth | receiver depth [m] |
rx_range | receiver range [m] |
References getIndex(), Nrd, Nrr, Nsd, rx_depths, rx_ranges, and tx_depths.
Referenced by woss::ArrAscResReader::accessMap(), woss::ArrBinResReader::accessMap(), woss::ArrAscResReader::readMapAvgPressure(), and woss::ArrBinResReader::readMapAvgPressure().
|
inline |
TimeArr* woss::ArrData::arr_values |
Pointer to an array of TimeArr values [m]
Referenced by woss::ArrAscResReader::accessMap(), woss::ArrBinResReader::accessMap(), woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), initialize(), woss::ArrAscResReader::readMapAvgPressure(), woss::ArrBinResReader::readMapAvgPressure(), and ~ArrData().
float woss::ArrData::frequency |
Frequency value [Hz]
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), and initialize().
int32_t woss::ArrData::Nrd |
Total number of receiver depths
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), and initialize().
int32_t woss::ArrData::Nrr |
Total number of receiver ranges
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), and initialize().
int32_t woss::ArrData::Nsd |
Total number of transmitter depths
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), and initialize().
float* woss::ArrData::rx_depths |
Pointer to an array of receiver depths [m]
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), initialize(), and ~ArrData().
float* woss::ArrData::rx_ranges |
Pointer to an array of receiver ranges [m]
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), initialize(), and ~ArrData().
float* woss::ArrData::tx_depths |
Pointer to an array of transmitter depths [m]
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getTimeArrIndex(), initialize(), and ~ArrData().