Functions

Time Coordinates

Coordinates axes

These functions help with the definition and reading of time coordinate variables and dimensions. More...

Functions

int nccf_def_time (int ncid, const char *name, size_t len, nc_type xtype, const char *units, const char *standard_name, int *time_dimidp, int *time_varidp)
 Define a coordinate variable and dimension with all the CF recommended attribute accessories for time.
int nccf_inq_time (int ncid, char *name, size_t *lenp, nc_type *xtypep, int *time_dimidp, int *time_varidp)
 Inquire about a time dimension and coordinate variable.

Detailed Description

These functions help with the definition and reading of time coordinate variables and dimensions.


Function Documentation

int nccf_def_time ( int  ncid,
const char *  name,
size_t  len,
nc_type  xtype,
const char *  units,
const char *  standard_name,
int *  time_dimidp,
int *  time_varidp 
)

Define a coordinate variable and dimension with all the CF recommended attribute accessories for time.

Parameters:
ncidThe ncid of the file.
namethe name of the dimension and variable.
lenThe length of this coordinate dimension.
xtypeThe type of this coordinate variable.
standard_nameIf non-NULL, a string which will be written as the ``standard_name'' attribute on the coordinate variable.
unitsIf non-NULL, a string which will be written as the ``units'' attribute on the coordinate variable.
time_dimidpIf non-NULL, nccf_def_time will write the dimension ID of the netCDF dimension for the time here.
time_varidpIf non-NULL, nccf_def_time will write the variable ID of the netCDF coordinate variable for the time here.
Returns:
0 for success, error code otherwise.

Definition at line 2408 of file cfcvars.c.

int nccf_inq_time ( int  ncid,
char *  name,
size_t *  lenp,
nc_type *  xtypep,
int *  time_dimidp,
int *  time_varidp 
)

Inquire about a time dimension and coordinate variable.

Parameters:
ncidThe ncid of the file.
nameIf non-NULL the name of the time dimension and variable will be copied here.
lenpIf non-NULL, the length of the time dimension will be copied here by nccf_inq_time.
xtypepIf non-NULL, the type of the coordinate variable will be copied here.
time_dimidpIf non-NULL, the dimid of the time dimension will be copied here.
time_varidpIf non-NULL, the varid of the time coordinate variable will be copied here.
Returns:
0 for success, error code otherwise.

Definition at line 2442 of file cfcvars.c.

 All Classes Files Functions Defines

Generated on Tue Mar 1 2011 06:36:59 for libCF. LibCF is a Unidata library.