[ncl-talk] Adding a new variable to an existing netcdf4 file

Pang Jiongming pang.j.m at hotmail.com
Fri Apr 27 05:07:09 MDT 2018


Hi there,


I’m a NCL user, and being facing with a problem when I use NCL to add a new variable with attributes to an existing netcdf4 file.

My wrfoutput from WRF/Chem is netcdf4 format. I need to add a new variable with attributes. By following the example in NCL website, functions addfile, filevardef, and filevarattdef were used. After that, there is a tag ’string’  before all attributes which contains characters of the new variable. I search online, it shows that it is NC_STRING, not NC_CHAR. Could you help me to solve it? Thank you very much.


Best regards,
Jiongming


More information about the ncl-talk mailing list