Package propagation
Class Absorption
java.lang.Object
propagation.Absorption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
calcAborption
(double[] f, double T, double d) Absorption coefficient in seawater in dB/m
After Kinsler and Frey pp.double
calcAborption
(double f, double T, double d) Absorption coefficient in seawater in dB/m
After Kinsler and Frey pp.double[]
fftAbsorption
(double[] wave, double sampleRate, double depth, double range) double
getTempC()
void
setTempC
(double tempC)
-
Constructor Details
-
Absorption
public Absorption()
-
-
Method Details
-
fftAbsorption
public double[] fftAbsorption(double[] wave, double sampleRate, double depth, double range) -
calcAborption
public double calcAborption(double f, double T, double d) Absorption coefficient in seawater in dB/m
After Kinsler and Frey pp. 159-160
Copied from Mark Johnson Matlab code- Parameters:
f
- is frequency in HzT
- is temperature, degrees Cd
- is depth, m- Returns:
- absorption in dB/m
-
calcAborption
public double[] calcAborption(double[] f, double T, double d) Absorption coefficient in seawater in dB/m
After Kinsler and Frey pp. 159-160
Copied from Mark Johnson Matlab code- Parameters:
f
- is array of frequency values in HzT
- is temperature, degrees Cd
- is depth, m- Returns:
- absorption in dB/m for each frequency
-
getTempC
public double getTempC()- Returns:
- the temperature in degrees C
-
setTempC
public void setTempC(double tempC) - Parameters:
tempC
- the temperature in degrees C
-