<div dir="ltr"><div>No. To my knowledge, users need not do anything different.<br></div><div><br></div><div>natCDF-3 supported characters only.</div><div><br></div><div>netCDF-4 (==> HDF-5) supports both character and string types.</div><div><br></div><div>--</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 12, 2018 at 3:42 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu">toni-klemm@tamu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hello!<div><br></div><div>I need to include a string variable (names of counties of several US states) in a new netCDF file, and my understanding is that the setfileoption for the file <b>cannot</b> be set to </div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><strong style="margin:0px;padding:0px">setfileoption</strong>("nc","Format”,"LargeFile")</pre><div>but must be set to</div></div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><strong style="margin:0px;padding:0px">setfileoption</strong>("nc","Format","NetCDF4")</pre><div>for so that string variables can be saved in the NetCDF file. The rest of the file contains regular numeric data (integer values with a defined missing value and some metadata), all of which I converted from a .csv file. I’ve never changed this file option before, and I was wondering if there is something I need to be aware of when processing and working with the rest of the file (doing simple math like averages, sums, …). </div></div><div><br></div><div>Thank you very much in advance.</div><div><br></div><div>Toni</div><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br class="m_-4215567866543145853Apple-interchange-newline"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate</font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Department of Ecosystem Science and Management</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">College of Agriculture and Life Sciences</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Texas A&M University, College Station, TX</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri">Contributor to the <a href="http://www.eccforum.org" target="_blank">Early Career Climate Forum</a><br><a href="http://www.toni-klemm.de" target="_blank">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" target="_blank">@toniklemm</a></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div></div></div><br class="m_-4215567866543145853Apple-interchange-newline"></div><br class="m_-4215567866543145853Apple-interchange-newline"></div><br class="m_-4215567866543145853Apple-interchange-newline"></div><br class="m_-4215567866543145853Apple-interchange-newline"><br class="m_-4215567866543145853Apple-interchange-newline">
</div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>