Hi NCL developers,
I think there is a bug in ncl/6.1.2. I am simply accessing part of a character array, and i get a different answer if i use 6.1.2 as compared to 6.0.0. Can others please confirm if they can re-produce this (or it's just me).
Code:
some_char= tochar("abc_def_ghi")
print(some_char(dimsizes(some_char)-4:dimsizes(some_char)-2))
Outputs:
[z3381484@monsoon Soil-Albedo-Scripts]$ which ncl
/share/apps/ncl/6.0.0/bin/ncl
[z3381484@monsoon Soil-Albedo-Scripts]$ ncl test_char.ncl
Copyright (C) 1995-2011 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.0.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
Variable: some_char (subsection)
Type: character
Total Size: 3 bytes
3 values
Number of Dimensions: 1
Dimensions and sizes: [3]
Coordinates:
(0) g
(1) h
(2) i
[z3381484@monsoon Soil-Albedo-Scripts]$ module remove ncl
[z3381484@monsoon Soil-Albedo-Scripts]$ module load ncl/6.1.2
[z3381484@monsoon Soil-Albedo-Scripts]$ which ncl
/share/apps/ncl/6.1.2/bin/ncl
[z3381484@monsoon Soil-Albedo-Scripts]$ ncl test_char.ncl
Copyright (C) 1995-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
Variable: some_char (subsection)
Type: character
Total Size: 3 bytes
3 values
Number of Dimensions: 1
Dimensions and sizes: [3]
Coordinates:
(0) _
(1) g
(2) h
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Nov 17 22:51:02 2013
This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 09:36:32 MST