My workaround actually didn't work. I should have tested it first.
It not only affects the input variable but also copies of the input
variable. You can see what I mean in the script below.
Do you have a suggestion other than the obvious one of reverting back to 6.0?
Copyright (C) 1995-2012 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.0-beta
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
+ strs = "hello world!"
+ strs_copy= strs
+ strs_copy_copy = strs_copy
+ strs_not_a_copy = "hello world!"
+ other_var_name = "hello world!"
+ other_string = "goodnight moon!"
+ other_string_plus_strs = other_string + " " +strs
+ strs_plus_other_string = strs + " " +other_string
+ strs_plus = "hello world!" + " "
+
+ strs_capital = str_capital(strs)
+
+ print(strs_capital)
Variable: strs_capital
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(strs)
Variable: strs
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(strs_copy)
Variable: strs_copy
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(strs_copy_copy)
Variable: strs_copy_copy
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(strs_not_a_copy)
Variable: strs_not_a_copy
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(other_var_name)
Variable: other_var_name
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) Hello World!
+ print(other_string)
Variable: other_string
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) goodnight moon!
+ print(other_string_plus_strs)
Variable: other_string_plus_strs
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) goodnight moon! hello world!
+ print(strs_plus_other_string)
Variable: strs_plus_other_string
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) hello world! goodnight moon!
+ print(strs_plus)
Variable: strs_plus
Type: string
Total Size: 8 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) hello world!
Received on Mon Aug 27 11:52:06 2012
This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT