NetCDF  4.8.1
nc4internal.c File Reference
#include "config.h"
#include "netcdf.h"
#include "netcdf_filter.h"
#include "nc4internal.h"
#include "nc.h"
#include "ncdispatch.h"
#include "ncutf8.h"
#include "netcdf_aux.h"

Go to the source code of this file.

Macros

#define NRESERVED   (sizeof(NC_reserved) / sizeof(NC_reservedatt)) /*|NC_reservedatt|*/
 

Functions

static int dim_free (NC_DIM_INFO_T *dim)
 
static void field_free (NC_FIELD_INFO_T *field)
 
int nc4_att_free (NC_ATT_INFO_T *att)
 
int nc4_att_list_add (NCindex *list, const char *name, NC_ATT_INFO_T **att)
 
int nc4_att_list_del (NCindex *list, NC_ATT_INFO_T *att)
 
int nc4_check_dup_name (NC_GRP_INFO_T *grp, char *name)
 
int nc4_check_name (const char *name, char *norm_name)
 
int nc4_dim_list_add (NC_GRP_INFO_T *grp, const char *name, size_t len, int assignedid, NC_DIM_INFO_T **dim)
 
int nc4_dim_list_del (NC_GRP_INFO_T *grp, NC_DIM_INFO_T *dim)
 
int nc4_enum_member_add (NC_TYPE_INFO_T *parent, size_t size, const char *name, const void *value)
 
int nc4_field_list_add (NC_TYPE_INFO_T *parent, const char *name, size_t offset, nc_type xtype, int ndims, const int *dim_sizesp)
 
int nc4_file_change_ncid (int ncid, unsigned short new_ncid_index)
 
int nc4_file_list_add (int ncid, const char *path, int mode, void **dispatchdata)
 
int nc4_file_list_del (int ncid)
 
int nc4_file_list_get (int ncid, char **path, int *mode, void **dispatchdata)
 
int nc4_find_dim (NC_GRP_INFO_T *grp, int dimid, NC_DIM_INFO_T **dim, NC_GRP_INFO_T **dim_grp)
 
int nc4_find_grp_att (NC_GRP_INFO_T *grp, int varid, const char *name, int attnum, NC_ATT_INFO_T **att)
 
int nc4_find_grp_h5 (int ncid, NC_GRP_INFO_T **grp, NC_FILE_INFO_T **h5)
 
int nc4_find_grp_h5_var (int ncid, int varid, NC_FILE_INFO_T **h5, NC_GRP_INFO_T **grp, NC_VAR_INFO_T **var)
 
int nc4_find_nc4_grp (int ncid, NC_GRP_INFO_T **grp)
 
int nc4_find_nc_att (int ncid, int varid, const char *name, int attnum, NC_ATT_INFO_T **att)
 
int nc4_find_nc_grp_h5 (int ncid, NC **nc, NC_GRP_INFO_T **grp, NC_FILE_INFO_T **h5)
 
int nc4_find_type (const NC_FILE_INFO_T *h5, nc_type typeid, NC_TYPE_INFO_T **type)
 
int nc4_find_var (NC_GRP_INFO_T *grp, const char *name, NC_VAR_INFO_T **var)
 
int nc4_grp_list_add (NC_FILE_INFO_T *h5, NC_GRP_INFO_T *parent, char *name, NC_GRP_INFO_T **grp)
 
static int NC4_move_in_NCList (NC *nc, int new_id)
 
int nc4_nc4f_list_add (NC *nc, const char *path, int mode)
 
int nc4_nc4f_list_del (NC_FILE_INFO_T *h5)
 
int nc4_normalize_name (const char *name, char *norm_name)
 
NC_TYPE_INFO_T * nc4_rec_find_named_type (NC_GRP_INFO_T *start_grp, char *name)
 
int nc4_rec_grp_del (NC_GRP_INFO_T *grp)
 
int NC4_show_metadata (int ncid)
 
int nc4_type_free (NC_TYPE_INFO_T *type)
 
int nc4_type_list_add (NC_GRP_INFO_T *grp, size_t size, const char *name, NC_TYPE_INFO_T **type)
 
int nc4_type_new (size_t size, const char *name, int assignedid, NC_TYPE_INFO_T **type)
 
int nc4_var_list_add (NC_GRP_INFO_T *grp, const char *name, int ndims, NC_VAR_INFO_T **var)
 
int nc4_var_list_add2 (NC_GRP_INFO_T *grp, const char *name, NC_VAR_INFO_T **var)
 
int nc4_var_list_del (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
 
int nc4_var_set_ndims (NC_VAR_INFO_T *var, int ndims)
 
const NC_reservedatt * NC_findreserved (const char *name)
 
static void obj_track (NC_FILE_INFO_T *file, NC_OBJ *obj)
 
static int var_free (NC_VAR_INFO_T *var)
 

Variables

size_t nc4_chunk_cache_nelems = CHUNK_CACHE_NELEMS
 Default chunk cache number of elements. More...
 
float nc4_chunk_cache_preemption = CHUNK_CACHE_PREEMPTION
 Default chunk cache preemption. More...
 
size_t nc4_chunk_cache_size = CHUNK_CACHE_SIZE
 Default chunk cache size. More...
 
static const NC_reservedatt NC_reserved []
 

Variable Documentation

◆ nc4_chunk_cache_nelems

size_t nc4_chunk_cache_nelems = CHUNK_CACHE_NELEMS

Default chunk cache number of elements.

Definition at line 56 of file nc4internal.c.

◆ nc4_chunk_cache_preemption

float nc4_chunk_cache_preemption = CHUNK_CACHE_PREEMPTION

Default chunk cache preemption.

Definition at line 57 of file nc4internal.c.

◆ nc4_chunk_cache_size

size_t nc4_chunk_cache_size = CHUNK_CACHE_SIZE

Default chunk cache size.

Definition at line 55 of file nc4internal.c.

◆ NC_reserved

const NC_reservedatt NC_reserved[]
static
Initial value:
= {
{NC_ATT_CLASS, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_DIMENSION_LIST, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_NAME, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_REFERENCE_LIST, READONLYFLAG|HIDDENATTRFLAG},
{NC_XARRAY_DIMS, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_FORMAT, READONLYFLAG},
{ISNETCDF4ATT, READONLYFLAG|NAMEONLYFLAG},
{NCPROPS, READONLYFLAG|NAMEONLYFLAG|MATERIALIZEDFLAG},
{NC_NCZARR_ATTR, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_COORDINATES, READONLYFLAG|HIDDENATTRFLAG|MATERIALIZEDFLAG},
{NC_ATT_DIMID_NAME, READONLYFLAG|HIDDENATTRFLAG|MATERIALIZEDFLAG},
{SUPERBLOCKATT, READONLYFLAG|NAMEONLYFLAG},
{NC_ATT_NC3_STRICT_NAME, READONLYFLAG|MATERIALIZEDFLAG},
}

Definition at line 37 of file nc4internal.c.