All the files composing a mosaic a linked together in a ``host'' file where grids files, data, and mosaic files are listed. More...
Functions | |
| int | nccf_def_host (const char *coordinates_id, const char *data_id, int nTimeSlices, int *hostid) |
| Define an empty host file (in memory). | |
| int | nccf_add_host_file (int hostid, const char *filename, int force) |
| Add a file to host. | |
| int | nccf_def_host_from_file (const char *filename, int *hostid) |
| Define (construct) a host file from a netcdf file. | |
| int | nccf_free_host (int hostid) |
| Free all memory associated with a host (acts as a destructor). | |
| int | nccf_put_host (int ncid, int hostid) |
| Write the host to file. | |
| int | nccf_add_host_global_att (int hostid, const char *attname, const char *value) |
| Add a global attribute the a host object. | |
| int | nccf_get_host_global_att (int hostid, const char *attname, char *value) |
| Get a global attribute the a host object. | |
| int | nccf_inq_host_ngrids (int hostid, int *ngrids) |
| Get the number of grid files from a host file. | |
| int | nccf_inq_host_nstaticdata (int hostid, int *nstaticdata) |
| Get the number of static data files from host file. | |
| int | nccf_inq_host_ntimedata (int hostid, int *ntimedata) |
| Get the number of time data files from host file. | |
| int | nccf_inq_host_ntimes (int hostid, int *ntimes) |
| Get the number of time slice files. | |
| int | nccf_inq_host_statfilename (int hostid, int vfindx, int gfindx, char *fname) |
| Get the file name of static data file. | |
| int | nccf_inq_host_timefilename (int hostid, int tfindx, int vfindx, int gfindx, char *fname) |
| Get the file name of a time dependent data file. | |
| int | nccf_inq_host_gridfilename (int hostid, int gfindx, char *filename) |
| Return the grid file name. | |
| int | nccf_inq_host_gridname (int hostid, int gfindx, char *gridname) |
| Return the grid name. | |
| int | nccf_inq_host_mosaicfilename (int hostid, char *mosaicfilename) |
| Get a mosaic filename from a host file. | |
All the files composing a mosaic a linked together in a ``host'' file where grids files, data, and mosaic files are listed.
| int nccf_add_host_file | ( | int | hostid, |
| const char * | filename, | ||
| int | force | ||
| ) |
Add a file to host.
| hostid | the ID for the host object |
| filename | name of the file, can be a data file, a grid file, or a mosaic file |
| force | set to 1 if file should be added regardless of whether the uuid in the file matches, otherwise uuid must match |
Definition at line 8 of file nccf_add_host_file.c.
| int nccf_add_host_global_att | ( | int | hostid, |
| const char * | attname, | ||
| const char * | value | ||
| ) |
Add a global attribute the a host object.
| hostid | the ID for the host object |
| attname | The attribute name to be added |
| value | The string to be added |
Add a global attribute the a host object.
Definition at line 9 of file nccf_add_host_global_att.c.
| int nccf_def_host | ( | const char * | coordinates_id, |
| const char * | data_id, | ||
| int | nTimeSlices, | ||
| int * | hostid | ||
| ) |
Define an empty host file (in memory).
| coordinates_id | the unique identifier binding the coordinates together |
| data_id | the unique identifier binding the data together |
| nTimeSlices | Number of files for one grid and one time dependent variable. |
| hostid | (output) the created ID for the host object |
Definition at line 14 of file nccf_def_host.c.
| int nccf_def_host_from_file | ( | const char * | filename, |
| int * | hostid | ||
| ) |
Define (construct) a host file from a netcdf file.
| filename | the host filename |
| hostid | (output) the ID for the host object |
Definition at line 25 of file nccf_def_host_from_file.c.
| int nccf_free_host | ( | int | hostid | ) |
Free all memory associated with a host (acts as a destructor).
| hostid | The ID for the host object |
Free all memory associated with a host (acts as a destructor).
"$Id: nccf_free_host.c 496 2011-02-11 23:44:34Z dkindig $"
Definition at line 10 of file nccf_free_host.c.
| int nccf_get_host_global_att | ( | int | hostid, |
| const char * | attname, | ||
| char * | value | ||
| ) |
Get a global attribute the a host object.
| hostid | the ID for the host object |
| attname | The attribute name to be retrived |
| value | The string to be retrieved |
Get a global attribute the a host object.
Definition at line 10 of file nccf_get_host_global_att.c.
| int nccf_inq_host_gridfilename | ( | int | hostid, |
| int | gfindx, | ||
| char * | filename | ||
| ) |
Return the grid file name.
| hostid | the ID for the host object |
| gfindx | Grid file index varying from 0...ngrids-1 |
| filename | Filename for given Id from dataset |
Return the grid file name.
Definition at line 16 of file nccf_inq_host_gridfilename.c.
| int nccf_inq_host_gridname | ( | int | hostid, |
| int | gfindx, | ||
| char * | gridname | ||
| ) |
Return the grid name.
| hostid | the ID for the host object |
| gfindx | Id of grid, index varying from 0...ngrids-1 |
| gridname | grid name for Id in dataset |
| int nccf_inq_host_mosaicfilename | ( | int | hostid, |
| char * | mosaicfilename | ||
| ) |
Get a mosaic filename from a host file.
| hostid | the ID for the host object |
| mosaicfilename | Mosaic filename |
Get a mosaic filename from a host file.
Definition at line 10 of file nccf_inq_host_mosaicfilename.c.
| int nccf_inq_host_ngrids | ( | int | hostid, |
| int * | ngrids | ||
| ) |
Get the number of grid files from a host file.
| hostid | the ID for the host object |
| ngrids | number of grids |
Get the number of grid files from a host file.
Definition at line 16 of file nccf_inq_host_ngrids.c.
| int nccf_inq_host_nstaticdata | ( | int | hostid, |
| int * | nstaticdata | ||
| ) |
Get the number of static data files from host file.
| hostid | the ID for the host object |
| nstaticdata | number of static data files |
Definition at line 16 of file nccf_inq_host_nstaticdata.c.
| int nccf_inq_host_ntimedata | ( | int | hostid, |
| int * | ntimedata | ||
| ) |
Get the number of time data files from host file.
| hostid | the ID for the host object |
| ntimedata | number of time data files |
Definition at line 16 of file nccf_inq_host_ntimedata.c.
| int nccf_inq_host_ntimes | ( | int | hostid, |
| int * | ntimes | ||
| ) |
Get the number of time slice files.
| hostid | the ID for the host object |
| ntimes | number of time slices |
Get the number of time slice files.
Definition at line 16 of file nccf_inq_host_ntimes.c.
| int nccf_inq_host_statfilename | ( | int | hostid, |
| int | vfindx, | ||
| int | gfindx, | ||
| char * | fname | ||
| ) |
Get the file name of static data file.
| hostid | the ID for the host object |
| vfindx | variable file index, ranges from 0...nstaticdata-1 |
| gfindx | grid file index, ranges from 0...ngrids |
| fname | file name (output) |
Definition at line 13 of file nccf_inq_host_statfilename.c.
| int nccf_inq_host_timefilename | ( | int | hostid, |
| int | tfindx, | ||
| int | vfindx, | ||
| int | gfindx, | ||
| char * | fname | ||
| ) |
Get the file name of a time dependent data file.
| hostid | the ID for the host object |
| tfindx | time file index, ranges from 0...ntimes-1 |
| vfindx | variable file index, ranges from 0...nstaticdata-1 |
| gfindx | grid file index, ranges from 0...ngrids-1 |
| fname | file name (output) |
Definition at line 8 of file nccf_inq_host_timefilename.c.
| int nccf_put_host | ( | int | ncid, |
| int | hostid | ||
| ) |
Write the host to file.
| ncid | the ID for a created netcdf file. |
| hostid | the ID for the host object |
Write the host to file.
"$Id: nccf_put_host.c 491 2011-02-10 02:01:24Z dkindig $"
Definition at line 11 of file nccf_put_host.c.