pyart.io.common.stringarray_to_chararray

pyart.io.common.stringarray_to_chararray(arr, numchars=None)[source]

Convert an string array to a character array with one extra dimension.

Parameters:

arr : array

Array with numpy dtype ‘SN’, where N is the number of characters in the string.

numchars : int

Number of characters used to represent the string. If numchar > N the results will be padded on the right with blanks. The default, None will use N.

Returns:

chararr : array

Array with dtype ‘S1’ and shape = arr.shape + (numchars, ).

Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.