<div dir="ltr"><div dir="ltr">Use string referencing in your file reference command:</div><div dir="ltr">ndtooned(fd1->$var$(t,k,:,:))<br></div><div dir="ltr"><br></div><div dir="ltr"><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#FileStringRef">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#FileStringRef</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 11, 2020 at 5:48 PM M P via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks, I may be a novice but that does answer my question.<div>I can getenv(var) from the environment but how to pass its value to </div><div>ndtooned(fd1->var(t,k,:,:))<br></div><div>where var needs to be replaced by something obtained from getenv</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 11, 2020 at 5:23 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><a href="http://www.ncl.ucar.edu/Applications/system.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Applications/system.shtml</b></a></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 11, 2020 at 3:32 PM M P via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I have ncl code that uses function </div><div>  temp       =    ndtooned(fd1->var(t,k,:,:))        ; Read some data; convert to 1D.<br><br></div><div>Is there a way to pass name of var from unix script to the imbedded ncl script?</div><div>Thanks,</div><div>Mark</div></div></blockquote></div></blockquote></div></blockquote></div></div>