![]() |
NetCDF 4.9.3
|
#include "nc4internal.h"
#include "nc4dispatch.h"
Go to the source code of this file.
Functions | |
int | int_cmp (const void *a, const void *b) |
int | NC4_inq_dimids (int ncid, int *ndims, int *dimids, int include_parents) |
int | NC4_inq_grp_full_ncid (int ncid, const char *full_name, int *grp_ncid) |
int | NC4_inq_grp_parent (int ncid, int *parent_ncid) |
int | NC4_inq_grpname (int ncid, char *name) |
int | NC4_inq_grpname_full (int ncid, size_t *lenp, char *full_name) |
int | NC4_inq_grps (int ncid, int *numgrps, int *ncids) |
int | NC4_inq_ncid (int ncid, const char *name, int *grp_ncid) |
int | NC4_inq_varids (int ncid, int *nvars, int *varids) |
This file is part of netcdf-4, a netCDF-like interface for HDF5, or a HDF5 backend for netCDF, depending on your point of view.
This file handles groups.
Definition in file nc4grp.c.
int int_cmp | ( | const void * | a, |
const void * | b ) |
int NC4_inq_dimids | ( | int | ncid, |
int * | ndims, | ||
int * | dimids, | ||
int | include_parents ) |
Find all dimids for a location. This finds all dimensions in a group, with or without any of its parents, depending on last parameter.
ncid | File and group ID. |
ndims | Pointer that gets number of dimensions available in group. |
dimids | Pointer that gets dim IDs. |
include_parents | If non-zero, include dimensions from parent groups. |
int NC4_inq_grp_full_ncid | ( | int | ncid, |
const char * | full_name, | ||
int * | grp_ncid ) |
int NC4_inq_grp_parent | ( | int | ncid, |
int * | parent_ncid ) |
Find the parent ncid of a group. For the root group, return NC_ENOGRP error. Now I know what kind of tinfoil hat wearing nut job would call this function with a NULL pointer for parent_ncid - Russ Rew!!
ncid | File and group ID. |
parent_ncid | Pointer that gets the ncid of parent group. |
int NC4_inq_grpname | ( | int | ncid, |
char * | name ) |
int NC4_inq_grpname_full | ( | int | ncid, |
size_t * | lenp, | ||
char * | full_name ) |
Find the full path name to the group represented by ncid. Either pointer argument may be NULL; pass a NULL for the third parameter to get the length of the full path name. The length will not include room for a null pointer.
ncid | File and group ID. |
lenp | Pointer that gets length of full name. |
full_name | Pointer that gets name. |
int NC4_inq_grps | ( | int | ncid, |
int * | numgrps, | ||
int * | ncids ) |
Given a location id, return the number of groups it contains, and an array of their locids.
ncid | File and group ID. |
numgrps | Pointer that gets number of groups. Ignored if NULL. |
ncids | Pointer that gets array of ncids. Ignored if NULL. |
int NC4_inq_ncid | ( | int | ncid, |
const char * | name, | ||
int * | grp_ncid ) |
Given an ncid and group name (NULL gets root group), return the ncid of that group.
ncid | File and group ID. |
name | Pointer that gets name. |
grp_ncid | Pointer that gets group ncid. |
int NC4_inq_varids | ( | int | ncid, |
int * | nvars, | ||
int * | varids ) |