Each structured grid can have data attached. More...
Functions | |
| int | nccf_def_struct_data (int gridid, const char *name, const char *standard_name, const char *units, const char *time_dimname, int *dataid) |
| Define data object (constructor). | |
| int | nccf_def_struct_data_from_file (const char *filename, int gridid, const char *varname, int read_data, int *dataid) |
| Define data object from netcdf file (constructor). | |
| int | nccf_free_struct_data (int dataid) |
| Free object (destructor). | |
| int | nccf_get_struct_data_gridid (int dataid, int *gridid) |
| Get the undelying grid Id. | |
| int | nccf_set_struct_data_double (int dataid, const double *data, int save) |
| Set the data to a double array, this will add a new record if the data are time dependent. | |
| int | nccf_set_struct_data_float (int dataid, const float *data, int save) |
| Set the data to a float array, this will add a new record if the data are time dependent. | |
| int | nccf_set_struct_data_int (int dataid, const int *data, int save) |
| Set the data to a int array, this will add a new record if the data are time dependent. | |
| int | nccf_put_struct_data (int ncid, int dataid) |
| Write object to netcdf file. | |
| int | nccf_add_struct_data_att (int dataid, const char *name, const char *value) |
| Add attribute to object. | |
| int | nccf_get_struct_data_type (int dataid, nc_type *dataType) |
| Get data type. | |
| int | nccf_get_struct_data_pointer (int dataid, void **dataPtr) |
| Get pointer to the data. | |
| int | nccf_get_struct_data_ndims (int dataid, int *nDataDims) |
| Get the number of dimensions of the data. | |
| int | nccf_get_struct_data_dims (int dataid, int *dataDims) |
| Get the dimensions of the data. | |
Each structured grid can have data attached.
Data objects refer to grid objects and are defined on a per tile basis.
| int nccf_add_struct_data_att | ( | int | dataid, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Add attribute to object.
| dataid | data ID |
| name | attribute name |
| value | attribute value |
Definition at line 7 of file nccf_add_struct_data_att.c.
| int nccf_def_struct_data | ( | int | gridid, |
| const char * | name, | ||
| const char * | standard_name, | ||
| const char * | units, | ||
| const char * | time_dimname, | ||
| int * | dataid | ||
| ) |
Define data object (constructor).
| gridid | structured grid object Id |
| name | name of coordinate (e.g. "lon") |
| standard_name | CF standard name attribute of the data |
| units | CF units attribute of the data |
| time_dimname | name of time dimension (or "", or NULL if time independent) |
| dataid | (output) ID |
Definition at line 13 of file nccf_def_struct_data.c.
| int nccf_def_struct_data_from_file | ( | const char * | filename, |
| int | gridid, | ||
| const char * | varname, | ||
| int | read_data, | ||
| int * | dataid | ||
| ) |
Define data object from netcdf file (constructor).
| filename | name of the netcdf file |
| gridid | Id of the grid object assicated with the data |
| varname | variable name of the data object stored in file |
| read_data | set to 1 if data should be read, 0 otherwise |
| dataid | (output) ID |
Definition at line 11 of file nccf_def_struct_data_from_file.c.
| int nccf_free_struct_data | ( | int | dataid | ) |
Free object (destructor).
| dataid | ID |
Definition at line 7 of file nccf_free_struct_data.c.
| int nccf_get_struct_data_dims | ( | int | dataid, |
| int * | dataDims | ||
| ) |
Get the dimensions of the data.
| dataid | data ID |
| dataDims | dimensions (sizes) along each axis |
| int nccf_get_struct_data_gridid | ( | int | dataid, |
| int * | gridid | ||
| ) |
Get the undelying grid Id.
| dataid | ID |
| gridid | Id of the grid |
Definition at line 7 of file nccf_get_struct_data_gridid.c.
| int nccf_get_struct_data_ndims | ( | int | dataid, |
| int * | nDataDims | ||
| ) |
Get the number of dimensions of the data.
| dataid | data ID |
| nDataDims | number of dimensions |
Get the number of dimensions of the data.
"$Id: nccf_get_struct_data_ndims.c 522 2011-02-17 23:41:29Z pletzer $"
Definition at line 10 of file nccf_get_struct_data_ndims.c.
| int nccf_get_struct_data_pointer | ( | int | dataid, |
| void ** | dataPtr | ||
| ) |
Get pointer to the data.
| dataid | data ID |
| dataPtr | (output) pointer to the data |
Definition at line 7 of file nccf_get_struct_data_pointer.c.
| int nccf_get_struct_data_type | ( | int | dataid, |
| nc_type * | dataType | ||
| ) |
Get data type.
| dataid | data ID |
| dataType | (output) netcdf data type |
Definition at line 7 of file nccf_get_struct_data_type.c.
| int nccf_put_struct_data | ( | int | ncid, |
| int | dataid | ||
| ) |
Write object to netcdf file.
| ncid | netcdf file ID |
| dataid | data ID |
Write object to netcdf file.
Definition at line 14 of file nccf_put_struct_data.c.
| int nccf_set_struct_data_double | ( | int | dataid, |
| const double * | data, | ||
| int | save | ||
| ) |
Set the data to a double array, this will add a new record if the data are time dependent.
| dataid | data ID |
| data | flat data array |
| save | != 0 in order to copy-save the data |
| int nccf_set_struct_data_float | ( | int | dataid, |
| const float * | data, | ||
| int | save | ||
| ) |
Set the data to a float array, this will add a new record if the data are time dependent.
| dataid | data ID |
| data | flat data array |
| save | != 0 in order to copy-save the data |
| int nccf_set_struct_data_int | ( | int | dataid, |
| const int * | data, | ||
| int | save | ||
| ) |
Set the data to a int array, this will add a new record if the data are time dependent.
| dataid | data ID |
| data | flat data array |
| save | != 0 in order to copy-save the data |