simplify_soundvelocity_profile

HSTB.kluster.xarray_conversion.simplify_soundvelocity_profile(profile)

Kluster currently has a memory issue when sound velocity correcting with very large cast tables. If the profile has too many layers, the memory usage will blow up. Limit the cast layers to the max_profile_length variable in kluster_variables.

Profiles that are too long are interpolated here

Parameters

profile (ndarray) –

Returns

Either interpolated cast record or the original if the original was not too large

Return type

np.ndarray