evaluate string as a variable

From: guillaume mauger <gmauger_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Sep 2007 12:14:44 -0700

Hi All,

An example:

aa = new(3,"integer")
bb = "aa"

now, I would like to be able to do something akin to the following:

print(all(ismissing($bb$)))

and have it return the result evaluated for the variable 'aa'.

Alternatively, if there is a way to evaluate a string as an ncl command,
e.g.:

eval( "print(all(ismissing(" + bb + ")))" )

Is there a way I can do this?

thanks,
guillaume

-- 
guillaume mauger
http://ieng9.ucsd.edu/~gmauger/
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 19 2007 - 13:14:44 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 24 2007 - 11:44:39 MDT