clouddrift.adapters.gdp.cut_str

Contents

clouddrift.adapters.gdp.cut_str#

clouddrift.adapters.gdp.cut_str(value: str, max_length: int) ndarray[source]#

Cut a string to a specific length and return it as a NumPy array with fixed-length strings.

Parameters#

valuestr

String to cut.

max_lengthint

Maximum length of the output string.

Returns#

outnp.ndarray

NumPy array containing the truncated string with fixed-length dtype.