Dear all:
I need all variables' names be stored in an array, then I loop the array to insert the value for each var.
More specifically, like what the following python code can do:
Can anyone tell me if this could be done in NCL?
var_names = ["one", "two", "three"]
count = 1
for name in var_names:
globals()[name] = count
count += 1
print one
print two
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 26 04:29:34 2013
This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST