[ncl-talk] NCL and NetCDF4 attributes: NC_STRING vs NC_CHAR problem

Christian Pagé page.christian at gmail.com
Fri Jul 31 08:34:41 MDT 2015


Dear all,

I am creating NetCDF4 files using NCL, and when I read a NetCDF3 file with
a variable and its attributes, and then I write this variable with
attributes in a NetCDF4 output file, I get NC_STRING as the attribute type
and not NC_CHAR. This causes problem for some tools regarding
CF-convention. For example NCO reports that NC_STRING is not supported in
the CF-convention and it will be omitted.

Is there any way to force NCL to output attributes in NetCDF4 files as
NC_CHAR instead of NC_STRING?

Thanks!

Best regards,

Christian Pagé
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150731/db767ded/attachment.html 


More information about the ncl-talk mailing list