<div dir="ltr"><div><div><div><div><div><div><div><div><div>Your attached code seems rather complicated.  :-)<br><br></div><div>Each column corresponds to a time-series of different variables (fields). <br><br></div>As noted in a recent ncl-talk response [Damjan Jelic], it is best to isolate repeated tasks in a function (if something is to be returned) to the calling program or in a procedure if an &#39;action&#39; only is to be performed.<br><br></div>Before proceeding, look at the data file. You can see the following where numbers are expected.<br> <br></div><div>[snip]..<br></div><div>6/20/2017 9:40 PM       2.6     4.6     98      0.501   19.7    99.30   1.2     ...<br>6/20/2017 9:45 PM       1.5     2.2     130     #N/A    #N/A    #N/A    1.0    ...<br>6/20/2017 9:50 PM       2.5     2.8     231     0.664   17.9    99.25   ...<br></div><div>[snip]<br></div><div><br></div>These must be replaced with some numeric values. Then, on the netCDF, these should be identified via the _FillValue attribute. See attached script.<br><br></div>The data file contains TAB and other special characters. These must be handled via the following:<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_tab.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_tab.shtml</a><br>also:<strong> str_get_dq</strong>,
<strong>str_get_sq</strong>,
<strong>str_get_nl<br><br></strong></div>%&gt;<strong> </strong>ncl pm_em50.ncl <br><br></div><div>will create the netCDF file:  pmCik_EM38759_7Jun-17Jul17-1500.nc</div><div><br></div>%&gt; ncdump -h pmCik_EM38759_7Jun-17Jul17-1500.nc &gt; out.pmCik_EM38759_7Jun-17Jul17-1500<br><br></div><div>or<br><br></div>%&gt; ncl_filedump pmCik_EM38759_7Jun-17Jul17-1500.nc &gt; out.pmCik_EM38759_7Jun-17Jul17-1500<br><br></div>See attached<br><br></div>Good luck<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 25, 2017 at 12:41 PM, Stanley Edwin <span dir="ltr">&lt;<a href="mailto:sedwin@alaska.edu" target="_blank">sedwin@alaska.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried my hand at creating nc files to make using them easier, but messed up somewhere in the pm_em50.ncl program. Cause of this sections in my converted file(nc) is missing.<div><br></div><div>Help</div><div><br></div><div>Thank You</div><div><br></div><div>Stanley G. Edwin</div></div>
<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>
<br></blockquote></div><br></div>