World Ocean Simulation System (WOSS) library
woss::ShdData_v1 Class Reference

class for storing data of any acoustic toolbox SHD file More...

#include <ac-toolbox-shd-reader.h>

Collaboration diagram for woss::ShdData_v1:
Collaboration graph

Public Member Functions

 ~ShdData_v1 ()
 
void initialize ()
 
int getPressureIndex (double tx_freq, double tx_depth, double rx_depth, double rx_range, double theta=0.0) const
 
int getIndex (float value, float *array, int32_t array_size) const
 
int getIndex (double value, double *array, int32_t array_size) const
 

Public Attributes

int32_t record_length
 
char * plot_type
 
double frequency
 
int32_t Nfreq
 
double * frequencies
 
int32_t Ntheta
 
double * theta
 
int32_t Nsd
 
float * tx_depths
 
int32_t Nrd
 
float * rx_depths
 
int32_t Nrr
 
double * rx_ranges
 
int32_t Nrx_per_range
 
double stabil_atten
 
::std::complex< double > * press_values
 

Detailed Description

class for storing data of any acoustic toolbox SHD file

class ShdData stores Pressure provided by any acoustic toolbox SHD file

Constructor & Destructor Documentation

◆ ~ShdData_v1()

woss::ShdData_v1::~ShdData_v1 ( )
inline

Destructor

References press_values, rx_depths, rx_ranges, theta, and tx_depths.

Member Function Documentation

◆ getIndex() [1/2]

int ShdData_v1::getIndex ( double  value,
double *  array,
int32_t  array_size 
) const

Returns the index of given array associated to given value

Parameters
valuetest value
arrayvalid pointer to an array
array_sizesize of passed array
Returns
valid array index value

◆ getIndex() [2/2]

int ShdData_v1::getIndex ( float  value,
float *  array,
int32_t  array_size 
) const

Returns the index of given array associated to given value

Parameters
valuetest value
arrayvalid pointer to an array
array_sizesize of passed array
Returns
valid array index value

Referenced by getPressureIndex().

◆ getPressureIndex()

int ShdData_v1::getPressureIndex ( double  tx_freq,
double  tx_depth,
double  rx_depth,
double  rx_range,
double  theta = 0.0 
) const

Returns the press_values index associated to given parameters

Parameters
tx_freqtransmitter frequency [hZ]
tx_depthtransmitter depth [m]
rx_depthreceiver depth [m]
rx_rangereceiver range [m]
thetatheta value
Returns
valid press_values index value

References getIndex(), Nrr, Nrx_per_range, Nsd, Ntheta, rx_depths, rx_ranges, theta, and tx_depths.

Referenced by woss::ShdResReader::accessMap(), and woss::ShdResReader::readMapAvgPressure().

Here is the call graph for this function:

◆ initialize()

void woss::ShdData_v1::initialize ( )
inline

Member Data Documentation

◆ frequency

double woss::ShdData_v1::frequency

Frequency value [Hz]

Referenced by woss::ShdResReader::getShdHeader(), and initialize().

◆ Nrd

int32_t woss::ShdData_v1::Nrd

Total number of receiver depths

Referenced by woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), and initialize().

◆ Nrr

int32_t woss::ShdData_v1::Nrr

◆ Nrx_per_range

int32_t woss::ShdData_v1::Nrx_per_range

◆ Nsd

int32_t woss::ShdData_v1::Nsd

◆ Ntheta

int32_t woss::ShdData_v1::Ntheta

Total number of theta values. See Bellhop code for more info

Referenced by getPressureIndex(), woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), and initialize().

◆ plot_type

char* woss::ShdData_v1::plot_type

Plot typename. See Bellhop code for more info

Referenced by woss::ShdResReader::getShdHeader(), and initialize().

◆ press_values

::std::complex<double>* woss::ShdData_v1::press_values

◆ record_length

int32_t woss::ShdData_v1::record_length

Record byte length of a binary SHD file. See Bellhop code for more info

Referenced by woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), and initialize().

◆ rx_depths

float* woss::ShdData_v1::rx_depths

◆ rx_ranges

double* woss::ShdData_v1::rx_ranges

◆ theta

double* woss::ShdData_v1::theta

Pointer to an array of theta values

Referenced by getPressureIndex(), woss::ShdResReader::getShdHeader(), initialize(), and ~ShdData_v1().

◆ tx_depths

float* woss::ShdData_v1::tx_depths

Pointer to an array of transmitter depths [m]

Referenced by getPressureIndex(), woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), initialize(), and ~ShdData_v1().


The documentation for this class was generated from the following files: