Re: Problem executing a variable

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat Sep 11 2010 - 08:42:52 MDT

The period is the problem. The way to get around this issue is:

    d1=in1->$"anthro_dust_0.1"$
OR
    var = "anthro_dust_0.1"
    d1 = in1->$var$

On 9/11/10 4:31 AM, Rashed Mahmood wrote:
> Hi
> I am trying to display a variable *anthro_dust_0.1 *in an aerosol data
> file, however I encountered the following error:
> *fatal:syntax error: line 7 in file dust_aerosols.ncl before or near .1
> d1=in1->anthro_dust_0.1
> ----------------------^
>
> fatal:Syntax Error in block, block not executed
> fatal:error at line 48 in file dust_aerosols.ncl*
> **
> I guess that error is due to *.1* used with the name of the variable
> but I dont how to deal with it to display the variable.
> Any suggestions would be highly appreciated.
> Regards
> Rashed
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Sep 11 07:42:58 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:24 MDT