Previous: Current Status of LibCF Next: Variable Metadata in LibCF Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > libcf: A New Library for CF Conventions Support

8.3 File Level Functions in LibCF
These LibCF functions are provided to help with file-level CF attributes.

 

   /* Mark the file as following CF-1.0 conventions. */
   int nccf_def_convention(int ncid);

   /* Determine if the file follows CF-1.0 conventions. */
   int nccf_inq_convention(int ncid, int *cf_convention);

   /* Add some or all of the CF recomended text attributes to a
    * file. Timestamp will be added to history. If history attribute
    * already exists, this history value will be appended. */
   int nccf_def_file(int ncid, const char *title, const char *history);

   /* Read any existing CF recomended text attributes from the
    * file. The history will get a timestamp. */
   int nccf_inq_file(int ncid, size_t *title_lenp, char *title, 
		     size_t *history_lenp, char *history);

   /* Append to the global "history" attribute, with a timestamp. */
   int nccf_add_history(int ncid, const char *history);

 


Previous: Current Status of LibCF Next: Variable Metadata in LibCF Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > libcf: A New Library for CF Conventions Support