varible name

From: Sanjiv Kumar <sanjivconscious_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 08 2010 - 11:57:41 MST

Hello,

I want to use follwing expression

var = (/"xNEWi_temp", "xNEWi_pcp", "xNEWi_dlw", "xNEWi_dsw"/)

do i = 0, 3
    $var(i)$ = new ((/10, 64, 128/), double)
    $var(i)$!0 = "time"
    $var(i)$!1 = "lat"
    $var(i)$!2 = "lon"
end do

but some how it is not working. Can you please see it

Main question is:

If there is a string array contaning a list of varibles. How there varibles
can be called during the program.

thanks
sanjiv

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 8 11:57:47 2010

This archive was generated by hypermail 2.1.8 : Tue Jan 12 2010 - 15:38:20 MST