<div dir="ltr"><div><div><div>field = &quot;cldfrac&quot;<br></div>x      = fin-&gt;$field$<br></div>printVarSummary(x)<br><br><br></div>fout-&gt;$field$ = ...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 5:24 PM, Laura Fowler <span dir="ltr">&lt;<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I am trying the following command line:<br>
<br>
ncl &#39;filename=&quot;<a href="http://2621442.cldfrac.mp_thompson_aerosols.2011-01-31_18.00.00.nc" rel="noreferrer" target="_blank">2621442.cldfrac.mp_<wbr>thompson_aerosols.2011-01-31_<wbr>18.00.00.nc</a>&quot;&#39;<br>
&#39;date=&quot;<a href="http://2011-01-31_18.00.00.nc" rel="noreferrer" target="_blank">2011-01-31_18.00.00.nc</a>&quot;<wbr>&#39; &#39;field=&quot;cldfrac&quot;&#39;<br>
write.rectangular.toNETCDFs.<wbr>ncl in which the variable cldfrac is the<br>
actual name of the variable I would liked to read.<br>
<br>
Inside the ncl script write.rectangular.toNETCDFs.<wbr>ncl, how do I read<br>
that variable using the generic variable field? I tried something like<br>
diag = f-&gt;&quot;field&quot; and other combinations bu that did not work.<br>
<br>
When I write a new netcdf file out, how do I use<br>
ncdf-&gt;field = ....<br>
<br>
Looks like I always come up with a syntax error and have not been able<br>
to fix it.<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
<br>
--<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>