NetCDF  4.9.2
dvar.c File Reference

Functions for defining and inquiring about variables. More...

#include "config.h"
#include "netcdf.h"
#include "netcdf_filter.h"
#include "ncdispatch.h"
#include "nc4internal.h"
#include "netcdf_f.h"
Include dependency graph for dvar.c:

Go to the source code of this file.

Functions

size_t NC_atomictypelen (nc_type xtype)
 
char * NC_atomictypename (nc_type xtype)
 
int NC_check_nulls (int ncid, int varid, const size_t *start, size_t **count, ptrdiff_t **stride)
 
int NC_getshape (int ncid, int varid, int ndims, size_t *shape)
 
int NC_inq_recvar (int ncid, int varid, int *nrecdimsp, int *is_recdim)
 
int NC_is_recvar (int ncid, int varid, size_t *nrecs)
 
int nctypelen (nc_type type)
 
Defining Variables

Use these functions to define variables.

int nc_def_var (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
 Define a new variable. More...
 
int nc_def_var_chunking (int ncid, int varid, int storage, const size_t *chunksizesp)
 Define storage and, if chunked storage is used, chunking parameters for a variable. More...
 
int nc_def_var_deflate (int ncid, int varid, int shuffle, int deflate, int deflate_level)
 Set the zlib compression and shuffle settings for a variable in an netCDF/HDF5 file. More...
 
int nc_def_var_endian (int ncid, int varid, int endian)
 Define endianness of a variable. More...
 
int nc_def_var_fill (int ncid, int varid, int no_fill, const void *fill_value)
 Set the fill value for a variable. More...
 
int nc_def_var_fletcher32 (int ncid, int varid, int fletcher32)
 Set checksum for a var. More...
 
int nc_def_var_quantize (int ncid, int varid, int quantize_mode, int nsd)
 Turn on quantization for a variable. More...
 
int nc_def_var_szip (int ncid, int varid, int options_mask, int pixels_per_block)
 Set szip compression settings on a variable. More...
 
Rename a Variable

Rename a variable.

int nc_rename_var (int ncid, int varid, const char *name)
 Rename a variable. More...
 
Free String Resources

Use this functions to free resources associated with NC_STRING data.

int nc_free_string (size_t len, char **data)
 Free string space allocated by the library. More...
 
Variables Chunk Caches

Use these functions to change the variable chunk cache settings.

int nc_get_var_chunk_cache (int ncid, int varid, size_t *sizep, size_t *nelemsp, float *preemptionp)
 Get the per-variable chunk cache settings from the HDF5 layer. More...
 
int nc_set_var_chunk_cache (int ncid, int varid, size_t size, size_t nelems, float preemption)
 Change the cache settings for a chunked variable. More...
 

Detailed Description

Functions for defining and inquiring about variables.

Note
The order of functions in this file affects the doxygen documentation.

Definition in file dvar.c.