pyudv.read_mfprof.velocity_from_UVPdata#

velocity_from_UVPdata(raw_data, SoundSpeed, MaximumDepth, Angle, Frequency, Nbytes=8)[source]#

Calculate velocity from UDV raw data. Units must be checked outside of this function - no conversion is done here.

Parameters:
  • raw_data (float, numpy array) – Raw data coming out of the UDV.

  • SoundSpeed (float) – Sound velocity.

  • MaximumDepth (float) – Maximum depth measurement, as defined by the Pulse Repetition Frequency.

  • Angle (float) – Angle between the probe and the flow direction.

  • Frequency (float) – Frequency of the probe.

  • Nbytes (int) – Number of bytes over which the raw data are coded (the default is 8).

Returns:

Velocity field

Return type:

float, numpy array