NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

[netcdfgroup] How to write global attribute with nf90_put_att

Hi

I want to write some global attributes into a netcdf file. The type of those
attributes are different, such as character, integer, real, double
presicion.
How can I write those with
 nf90_put_att(ncid, varid, name, values)
Is varid set as nf90_global, name set as attributes' name?
And how to set values to different type?
Thanks.

brick