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, ).

Previous topic

pyart.io.common.dms_to_d

Next topic

pyart.io.common.radar_coords_to_cart

This Page