Re: about passing parameter

From: wen <wenguanhuan_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 14 2014 - 07:53:10 MDT

Hi Dennis,
  Thanks for you help. I write linux-shell-script to pass parameter of type of string. It do not work. Do you know why? Following is the linux-shell-script.

#!/bin/bash
season=(JJA DJF MAM)
for ((k=0; k<${#season[@]}; k=k+1))
do
ncl 'se="${season[${k}]}"' test.ncl
done

--
×£ºÃ
ιڻ·
At 2014-03-14 21:23:55,"Dennis Shea" <shea@ucar.edu> wrote:
>Please read:
>    http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml
>
>There are many examples.
>
>
>%>ncl 'fil="sample.nc"' ys=1979 ye=2005 ex=0 lgen=1 minpre=0.1 lgex=2 
>maxpre=3 day_int_amo_annual.ncl
>
>On 3/14/14, 6:54 AM, wen wrote:
>> Hi all£¬ I run a ncl script by passing parameter as following.  I found it work well when the type of parameter is numerical type. However, it did not work when the type of parameter is string. Could  ncl pass parameter of type of string?  If anyone know that , please tell me. Thank you!
>> ncl ys=1979 ye=2005 ex=0 lgen=1 minpre=0.1 lgex=2 maxpre=3 day_int_amo_annual.ncl
>>
>>
>>
>>
>>
>> --
>>
>> Best wishes
>> Guanhuan Wen
>>
>>
>>
>> _______________________________________________
>> 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 Fri Mar 14 07:53:27 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 14 2014 - 15:08:52 MDT