[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
  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: