<div dir="ltr">Hi Dave,<div>Thanks very much for your reply!</div><div>I will then use NetCDF4Classic instead as I don't need yet the advanced features of NetCDF4.</div><div>Christian</div><div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Jul 31, 2015 at 9:54 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christian,<br>
If you are outputting NetCDF4 only to take advantage of its<br>
compression abilities and are not using advanced type features of<br>
NetCDF4 then you can use the NetCDF4Classic format. Otherwise we do<br>
not currently have a way to specify that attributes be written using<br>
the NC_CHAR type with NetCDF4. We can certainly add this as an option<br>
but it will probably not happen immediately.<br>
-dave<br>
<div><div class="h5"><br>
<br>
On Fri, Jul 31, 2015 at 8:34 AM, Christian Pagé<br>
<<a href="mailto:page.christian@gmail.com">page.christian@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I am creating NetCDF4 files using NCL, and when I read a NetCDF3 file with a<br>
> variable and its attributes, and then I write this variable with attributes<br>
> in a NetCDF4 output file, I get NC_STRING as the attribute type and not<br>
> NC_CHAR. This causes problem for some tools regarding CF-convention. For<br>
> example NCO reports that NC_STRING is not supported in the CF-convention and<br>
> it will be omitted.<br>
><br>
> Is there any way to force NCL to output attributes in NetCDF4 files as<br>
> NC_CHAR instead of NC_STRING?<br>
><br>
> Thanks!<br>
><br>
> Best regards,<br>
><br>
> Christian Pagé<br>
><br>
><br>
</div></div>> _______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
><br>
</blockquote></div><br></div></div>