clouddrift.adapters.gdp.cut_str

Contents

clouddrift.adapters.gdp.cut_str#

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

Cut a string to a specific length and return it as a numpy chararray.

Parameters#

valuestr

String to cut

max_lengthint

Length of the output

Returns#

outnp.chararray

String with max_length characters