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

24.5 Latitude and Longitude Functions in LibCF
LibCF includes some functions to help write and read latitude and longitude information.

 

   /* Define a latitude dimension and variable with all the CF
    * recomended attribute accessories.*/
   int nccf_def_latitude(int ncid, size_t len, nc_type xtype, 
			 int *lat_dimidp, int *lat_varidp);

   /* Inquire about a latitude dimension and coordinate variable. */
   int nccf_inq_latitude(int ncid, size_t *lenp, nc_type *xtypep, 
			 int *lat_dimidp, int *lat_varidp);

   /* Define a longitude dimension and variable with all the CF
    * recomended attribute accessories.*/
   int nccf_def_longitude(int ncid, size_t len, nc_type xtype, 
			  int *lon_dimidp, int *lon_varidp);

   /* Inquire about a longitude dimension and coordinate variable.*/
   int nccf_inq_longitude(int ncid, size_t *lenp, nc_type *xtypep, 
			  int *lon_dimidp, int *lon_varidp);


 


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