<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div style="" class=""><span style="" class="">Dear Alan</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Dear Rick</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Thanks so much for your
kindly suggestion, and the following way works perfectly.</span><br style="" class=""></div><div style="" class=""><span class="" style="color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;">ncl timeb=$var1 timee=$var2 timed=$var3 abc.ncl</span><br><br>With my best regards,<br>Mark<br style="" class="" clear="none"></div><div style="" class=""><span class="" style="color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><br style="" class="" clear="none"></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
font-size: 16px;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> On Friday, October 10, 2014 5:58 PM, Rick Brownrigg <brownrig@ucar.edu> wrote:<br style="" class=""> </font> </div> <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv6403647349"><div style="" class=""><div style="" class="" dir="ltr"><div style="" class=""><div style="" class=""><div style="" class=""><div style="" class="">Hi Mark,<br style="" class="" clear="none"><br style="" class="" clear="none"></div>I take it your $var1, $var2, etc., are shell variables?<br style="" class="" clear="none"><br style="" class="" clear="none"></div>Try ncl timeb=\"$var1\" ....<br style="" class="" clear="none"><br style="" class="" clear="none"></div>HTH,<br style="" class="" clear="none"></div>Rick<br style="" class="" clear="none"><br style="" class="" clear="none"></div><div
style="" class=""><br style="" class="" clear="none"><div style="" class="">On Fri, Oct 10, 2014 at 9:38 AM, Mark Chan <span style="" class="" dir="ltr"><<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:cym263@yahoo.com" target="_blank" href="mailto:cym263@yahoo.com">cym263@yahoo.com</a>></span> wrote:<br style="" class="" clear="none"><blockquote class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="" class="" id="yiv6403647349yqt24843"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div style="" class="">Dear NCL users,</div><div style="" class=""><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;">I have a ncl script as in the below with name as "abc.ncl", and I would run it as:</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">ncl 'timeb="'$var1'"' 'timee="'$var2'"' 'timed="'$var3'"' abc.ncl</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div
class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">here var1=31; var2=32; var3=31.5 (this is examples and the values would be calculated)</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">The operation above doesn't work, however the following operation works:</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">ncl 'timeb=31' 'timee=32' 'timed=31.5' abc.ncl</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Can one kindly give any suggestion?</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica,
Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Thanks very much in advance!</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Mark<br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;">-------abc.ncl--------------<br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">begin<br style="" class="" clear="none"> time_bnds=new((/1,2/),"double","No_FillValue")<br style="" class="" clear="none"> write_file=addfile("./<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://rub.nc/">rub.nc</a>","w")<br style="" class="" clear="none"> time_bnds(0,0:1) = (/timeb,timee/)<br style="" class="" clear="none"> time = (/timed/)<br style="" class="" clear="none"> write_file->time_bnds=time_bnds(0:0,0:1)<br style="" class="" clear="none"> write_file->time=time<br style="" class="" clear="none">end<br style="" class="" clear="none"><br style="" class=""
clear="none"></div><div style="" class=""><br style="" class="" clear="none"></div></div></div></div><br style="" class="" clear="none">_______________________________________________<br style="" class="" clear="none">
ncl-talk mailing list<br style="" class="" clear="none">
List instructions, subscriber options, unsubscribe:<br style="" class="" clear="none">
<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br style="" class="" clear="none">
<br style="" class="" clear="none"></blockquote></div><br style="" class="" clear="none"></div></div></div><br style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>