Previous: Current Status of LibCF Next: Variable Metadata in LibCF Table of contents Frames 2010 Unidata NetCDF Workshop > libcf: A New Library for CF Conventions Support

24.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 2010 Unidata NetCDF Workshop > libcf: A New Library for CF Conventions Support