
NCL Home >
Documentation >
Functions >
String manipulation
str_upper
Converts all input strings to uppercase.
Available in version 5.1.1 and later.
Prototype
function str_upper ( string_val : string ) return_val [dimsizes(string_val)] : string
Arguments
string_valA string array of any dimensionality.
Description
This function converts all the characters in string_val to uppercase.
See Also
str_lower, str_switch, str_capital
Examples
Example
str = "abcdefghijklmnopqrstuvwxyz_......_abcdefghijklmnopqrstuvwxyz" new_string = str_upper(str) print("<" + new_string + ">")Output:
(0) <ABCDEFGHIJKLMNOPQRSTUVWXYZ_......_ABCDEFGHIJKLMNOPQRSTUVWXYZ>