<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Andrew Kren - NOAA Affiliate</b> <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov">andrew.kren@noaa.gov</a>></span><br>Date: Thu, May 10, 2018 at 4:41 PM<br>Subject: Re: [ncl-talk] Error writing strings to netcdf<br>To: Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>><br><br><br><div dir="ltr">I wrote two netcdf files. One with the float arrays, and a second with the string arrays, which seemed to work fine.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 10, 2018 at 4:41 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You're welcome.  I am curious how you decided to handle this.  Follow up to the user list, if you think it's appropriate.<div><br></div><div>--Dave</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 10, 2018 at 4:22 PM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Dave</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 7, 2018 at 1:37 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Andrew,<div><br></div><div>If wind_dir_top_string is an array of strings, then an attribute is not the right solution.  To avoid the "<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">ncdimdef" error, </span>try adding explicit dimension names to the array, before writing to the Netcdf file, like this:</div><div><br></div><div>    <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">wnd_dir_top_string2 = </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">tochar(wnd_dir_top_string)</span></div><div><div>    <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">wnd_dir_top_string2!0 = "dim0"</span><br></div></div><div><div>    <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">wnd_dir_top_string2!1 = "dim1"</span><br></div><div><div>    <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">wnd_dir_top_string2!2 = "dim2"</span><br></div></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">    p->wnd_dir_top_string = </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">wnd_dir_top_string2</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Change the names dim0, dim1, dim2 to names that are descriptive for your application.  Dimension names may be shared between arrays in the Netcdf file, as long as the dimension size is always the same for each dimension name.  Please see this reference for the use of dimension names:</span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Dimensions" target="_blank">http://www.ncl.ucar.edu/Docume<wbr>nt/Manuals/Ref_Manual/NclVaria<wbr>bles.shtml#Dimensions</a><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><br></div><div>I can't explain your original "<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">ncdimdef" error.  If you want more help with that, then send me your complete NCL script and any input files that it needs, by private e-mail, and I will take a quick look at it.</span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">--Dave</span></div></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 3:30 PM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dave,<div><br></div><div>I originally did not have the constructors, and it didn't work when I didn't have them. I just tried them to see if it would work but it didn't.</div><div><br></div><div>The strings I actually need for reading in a separate program. So the wind_dir_top_string is an array of wind directions (N, S, E, W) so if I saved it as an attribute would I still be able to access the array?</div><div><br></div><div>Here is the output from the ncl_filedump of the file.</div><div><br></div><div>




<span></span>





<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: f</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: file</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures">filename:<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>saved_foothills_variables_nam</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures">path:<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">   </span><a href="http://saved_foothills_variables_nam.nc" target="_blank">saved_foothills_variables_nam.<wbr>nc</a></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">   </span>file global attributes:</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>title : Saved Foothills Variables for comparison page</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>source : /home/arsenic1/scripts/nam/00z<wbr>/<a href="http://saved_foothills_variables_nam.nc" target="_blank">saved_foothills_variables_nam<wbr>.nc</a></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>creation_date : Sat May<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">  </span>5 15:26:37 MDT 2018</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">   </span>dimensions:</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>time = 0<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">  </span>// unlimited</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl0 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl1 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl4 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl5 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl17 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl18 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl29 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl30 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl15 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl16 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl13 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl14 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl11 = 26</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>ncl12 = 53</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">   </span>variables:</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float temperature_top ( ncl0, ncl1 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float wnd_spd_top ( ncl4, ncl5 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float clouds ( ncl17, ncl18 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float lightning ( ncl29, ncl30 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float precip_chance ( ncl15, ncl16 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float precip_type_top ( ncl13, ncl14 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">      </span>float precip_amount ( ncl11, ncl12 )</span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-converted-space">         </span>_FillValue :<span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>9.96921e+36</span></p>


<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 4, 2018 at 1:23 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Andrew,<div><br></div><div>The constructors (/ /) around the tochar function should be unnecessary in that context.  Try removing them.<br><div><br></div><div>A workaround is to write the string as an attribute instead of a data variable.  This is the more usual way of storing single descriptive strings.  This should completely avoid the mysterious ncdimdef error, and the code is more straightforward.  Will this work for your application?</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">    p@wnd_dir_top_string = wnd_dir_top_string</span></div><div><br></div><div>If you need to debug the original statement, then more information is needed.  Insert an exit statement right before line 806, and show us the full output from ncdump -hs on the vestigial output file.</div><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104HOEnZb"><font color="#888888"><div><br></div><div>--Dave</div></font></span><div><div class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 4, 2018 at 11:19 AM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hi,</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">In my previous programs I have used the tochar function to convert strings to characters for writing string data to netcdf using NCL. However, for some reason, its not working for me this time. It fails with this error:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div>




<font face="arial, helvetica, sans-serif"><span></span>





</font><p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">ncdimdef: ncid 65536: NetCDF: String match to name in use</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 806 in file nam_foothills.ncl</font></span></p>


<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">My section to write the netcdf file is here:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div>




<font face="arial, helvetica, sans-serif"><span></span>





</font><p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">filo = "/home/arsenic1/scripts/nam/00<wbr>z/<a href="http://saved_foothills_variables_nam.nc" target="_blank">saved_foothills_variables_na<wbr>m.nc</a>"</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">system("rm -rf "+filo) ; remove any pre-existing file</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p = addfile(filo,"c")</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p@title = "Saved Foothills Variables for comparison page"</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p@source = filo</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p@creation_date = systemfunc("date")</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">filedimdef(p,"time",-1,True) ; make time unlimited dimension</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p2" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><font face="arial, helvetica, sans-serif"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></font></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->temperature_top = temperature_top</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->wnd_spd_top = wnd_spd_top</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->clouds = clouds</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->lightning = lightning</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->precip_chance = precip_chance</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->precip_type_top = precip_type_top</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->precip_amount = precip_6hr_top</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->wnd_dir_top_string = (/tochar(wnd_dir_top_string)/)</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->day_of_week_string = (/tochar(day_of_week_string)/)</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->months = (/tochar(months)/)</font></span></p>
<p class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">p->valid_day = (/tochar(valid_day)/)</font></span></p>


<font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Line 806 is the first line where it tries to write the wind direction string:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:no-common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">p->wnd_dir_top_string = (/tochar(wnd_dir_top_string)/)</span><br></font></div><div><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:no-common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:no-common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline"><font face="arial, helvetica, sans-serif">Is there any remedy to this? I've looked online, but have not found much help.</font></span></div><div><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:no-common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:no-common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline"><font face="arial, helvetica, sans-serif">Thanks,</font></span></div><span class="m_6645563176394940410HOEnZb"><font color="#888888"><span class="m_6645563176394940410m_-4855984844901536897HOEnZb"><font color="#888888"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987HOEnZb"><font color="#888888"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-HOEnZb"><font color="#888888"><span class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_6645563176394940410m_-4855984844901536897m_-2033236842641247987m_8444283769877310428gmail-m_7598075398321873104m_-5867861803807974266gmail-m_8129731019499483947gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren<br>Assistant Scientist<br>CIMAS & NOAA/AOML<br>
<a href="https://maps.google.com/?q=325+Broadway,+Boulder,+CO+80305&entry=gmail&source=g" target="_blank">325 Broadway, Boulder, CO 80305</a><br>
(303) 497-5418</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></font></span></font></span></font></span></font></span></font></span></div></div></blockquote></div></div></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_6645563176394940410gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren<br>Assistant Scientist<br>CIMAS & NOAA/AOML<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren<br>Assistant Scientist<br>CIMAS & NOAA/AOML<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>