How can I do such a manipulation in NCL?

From: Cheung <zuibeidemei_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 26 2013 - 04:29:21 MST

 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:
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