|
static int | attach_dimscales (NC_GRP_INFO_T *grp) |
|
static int | commit_type (NC_GRP_INFO_T *grp, NC_TYPE_INFO_T *type) |
|
static int | create_group (NC_GRP_INFO_T *grp) |
|
static int | flag_atts_dirty (NCindex *attlist) |
|
int | nc4_adjust_var_cache (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var) |
|
int | nc4_create_dim_wo_var (NC_DIM_INFO_T *dim) |
|
int | nc4_get_hdf_typeid (NC_FILE_INFO_T *h5, nc_type xtype, hid_t *hdf_typeid, int endianness) |
|
int | NC4_hdf5get_libversion (unsigned *major, unsigned *minor, unsigned *release) |
|
int | NC4_hdf5get_superblock (struct NC_FILE_INFO *h5, int *idp) |
|
int | NC4_isnetcdf4 (struct NC_FILE_INFO *h5) |
|
int | nc4_open_var_grp2 (NC_GRP_INFO_T *grp, int varid, hid_t *dataset) |
|
int | nc4_rec_match_dimscales (NC_GRP_INFO_T *grp) |
|
int | nc4_rec_write_groups_types (NC_GRP_INFO_T *grp) |
|
int | nc4_rec_write_metadata (NC_GRP_INFO_T *grp, nc_bool_t bad_coord_order) |
|
static int | NC4_strict_att_exists (NC_FILE_INFO_T *) |
|
static int | NC4_walk (hid_t, int *) |
|
static int | put_att_grpa (NC_GRP_INFO_T *grp, int varid, NC_ATT_INFO_T *att) |
|
int | rec_detach_scales (NC_GRP_INFO_T *grp, int dimid, hid_t dimscaleid) |
|
int | rec_reattach_scales (NC_GRP_INFO_T *grp, int dimid, hid_t dimscaleid) |
|
static int | remove_coord_atts (hid_t hdf_datasetid) |
|
void | reportobject (int uselog, hid_t id, unsigned int type) |
|
void | reportopenobjects (int uselog, hid_t fid) |
|
static void | reportopenobjectsT (int uselog, hid_t fid, int ntypes, unsigned int *otypes) |
|
void | showopenobjects (int ncid) |
|
void | showopenobjects5 (NC_FILE_INFO_T *h5) |
|
static int | var_create_dataset (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var, nc_bool_t write_dimid) |
|
static int | var_exists (hid_t grpid, char *name, nc_bool_t *exists) |
|
static int | write_attlist (NCindex *attlist, int varid, NC_GRP_INFO_T *grp) |
|
static int | write_coord_dimids (NC_VAR_INFO_T *var) |
|
static int | write_dim (NC_DIM_INFO_T *dim, NC_GRP_INFO_T *grp, nc_bool_t write_dimid) |
|
static int | write_nc3_strict_att (hid_t hdf_grpid) |
|
static int | write_netcdf4_dimid (hid_t datasetid, int dimid) |
|
static int | write_quantize_att (NC_VAR_INFO_T *var) |
|
static int | write_var (NC_VAR_INFO_T *var, NC_GRP_INFO_T *grp, nc_bool_t write_dimid) |
|
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 contains functions internal to the netcdf4 library. None of the functions in this file are exposed in the exetnal API. These functions handle the HDF interface.
- Author
- Ed Hartnett, Dennis Heimbigner, Ward Fisher
Definition in file nc4hdf.c.
int rec_detach_scales |
( |
NC_GRP_INFO_T * | grp, |
|
|
int | dimid, |
|
|
hid_t | dimscaleid ) |
This function is needed to handle one special case: what if the user defines a dim, writes metadata, then goes back into define mode and adds a coordinate var for the already existing dim. In that case, I need to recreate the dim's dimension scale dataset, and then I need to go to every var in the file which uses that dimension, and attach the new dimension scale.
- Parameters
-
grp | Pointer to group info struct. |
dimid | Dimension ID. |
dimscaleid | HDF5 dimension scale ID. |
- Returns
- NC_NOERR No error.
-
NC_EDIMSCALE HDF5 returned an error when trying to detach a dimension scale.
- Author
- Ed Hartnett
Definition at line 142 of file nc4hdf.c.
int rec_reattach_scales |
( |
NC_GRP_INFO_T * | grp, |
|
|
int | dimid, |
|
|
hid_t | dimscaleid ) |
This function is needed to handle one special case: what if the user defines a dim, writes metadata, then goes back into define mode and adds a coordinate var for the already existing dim. In that case, I need to recreate the dim's dimension scale dataset, and then I need to go to every var in the file which uses that dimension, and attach the new dimension scale.
- Parameters
-
grp | Pointer to group info struct. |
dimid | Dimension ID. |
dimscaleid | HDF5 dimension scale ID. |
- Returns
- NC_NOERR No error.
-
NC_EDIMSCALE HDF5 returned an error when trying to reattach a dimension scale.
- Author
- Ed Hartnett
Definition at line 77 of file nc4hdf.c.
static int remove_coord_atts |
( |
hid_t | hdf_datasetid | ) |
|
|
static |
Convert a coordinate variable HDF5 dataset into one that is not a coordinate variable. This happens during renaming of vars and dims. This function removes the HDF5 NAME and CLASS attributes associated with dimension scales, and also the NC_DIMID_ATT_NAME attribute which may be present, and, if it does, holds the dimid of the coordinate variable.
- Parameters
-
hdf_datasetid | The HDF5 dataset ID of the coordinate variable dataset. |
- Returns
- NC_NOERR No error.
-
NC_EHDFERR HDF5 error.
- Author
- Ed Hartnett
Definition at line 1520 of file nc4hdf.c.