11 #include "ncdispatch.h"
12 #include "nc4internal.h"
63 int stat = NC_check_id(ncid, &ncp);
65 return ncp->dispatch->inq_varid(ncid, name, varidp);
125 int *ndimsp,
int *dimidsp,
int *nattsp)
128 int stat = NC_check_id(ncid, &ncp);
131 return ncp->dispatch->inq_var_all(ncid, varid, name, xtypep, ndimsp,
132 dimidsp, nattsp, NULL, NULL, NULL,
133 NULL, NULL, NULL, NULL, NULL, NULL,
158 return nc_inq_var(ncid, varid, name, NULL, NULL,
180 return nc_inq_var(ncid, varid, NULL, typep, NULL,
204 return nc_inq_var(ncid, varid, NULL, NULL, ndimsp, NULL, NULL);
227 return nc_inq_var(ncid, varid, NULL, NULL, NULL,
254 return nc_inq_var(ncid, varid, NULL, NULL, NULL, NULL,
299 unsigned int params[4];
303 stat = NC_check_id(ncid,&ncp);
311 case NC_NOERR: deflating = 1;
break;
324 default:
return stat;
326 if(deflatep) *deflatep = deflating;
331 if(deflate_levelp) *deflate_levelp = (int)params[0];
332 }
else if (deflate_levelp)
337 return ncp->dispatch->inq_var_all(
381 int stat = NC_check_id(ncid,&ncp);
384 return ncp->dispatch->inq_var_all(
469 int stat = NC_check_id(ncid, &ncp);
472 return ncp->dispatch->inq_var_all(ncid, varid, NULL, NULL, NULL, NULL,
473 NULL, NULL, NULL, NULL, NULL, storagep,
474 chunksizesp, NULL, NULL, NULL,
505 int stat = NC_check_id(ncid,&ncp);
510 return ncp->dispatch->inq_var_all(
548 int stat = NC_check_id(ncid,&ncp);
556 return ncp->dispatch->inq_var_quantize(ncid, varid,
557 quantize_modep, nsdp);
585 int stat = NC_check_id(ncid,&ncp);
588 return ncp->dispatch->inq_var_all(
678 int stat = NC_check_id(ncid,&ncp);
681 return ncp->dispatch->inq_unlimdims(ncid, nunlimdimsp,
736 unsigned int params[4];
738 int stat = NC_check_id(ncid,&ncp);
765 if(options_maskp) *options_maskp = (int)params[0];
766 if(pixels_per_blockp) *pixels_per_blockp = (int)params[1];
EXTERNL int nc_inq_natts(int ncid, int *nattsp)
Find number of global or group attributes.
int nc_inq_var_endian(int ncid, int varid, int *endianp)
Find the endianness of a variable.
int nc_inq_varndims(int ncid, int varid, int *ndimsp)
Learn how many dimensions are associated with a variable.
int nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp)
Return number and list of unlimited dimensions.
int nc_inq_varname(int ncid, int varid, char *name)
Learn the name of a variable.
int nc_inq_var_quantize(int ncid, int varid, int *quantize_modep, int *nsdp)
Learn whether quantization is on for a variable, and, if so, the NSD setting.
int nc_inq_var_deflate(int ncid, int varid, int *shufflep, int *deflatep, int *deflate_levelp)
Learn the shuffle and deflate settings for a variable.
int nc_inq_vartype(int ncid, int varid, nc_type *typep)
Learn the type of a variable.
int nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p)
Learn the checksum settings for a variable.
int nc_inq_varid(int ncid, const char *name, int *varidp)
Find the ID of a variable, from the name.
int nc_inq_varnatts(int ncid, int varid, int *nattsp)
Learn how many attributes are associated with a variable.
EXTERNL int nc_inq_var_filter_info(int ncid, int varid, unsigned int id, size_t *nparams, unsigned int *params)
Find the the param info about filter (if any) associated with a variable and with specified id.
int nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
Learn about a variable.
int nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp)
Learn the szip settings of a variable.
int nc_inq_vardimid(int ncid, int varid, int *dimidsp)
Learn the dimension IDs associated with a variable.
int nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp)
Get the storage and (for chunked variables) the chunksizes of a variable.
int nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
Learn the fill mode of a variable.
Main header file for the C API.
#define NC_EFILTER
Filter operation failed.
#define NC_ENOTNC4
Attempting netcdf-4 operation on netcdf-3 file.
#define NC_GLOBAL
Attribute id to put/get a global attribute.
#define NC_NOERR
No Error.
#define NC_EGLOBAL
Action prohibited on NC_GLOBAL varid.
#define NC_ENOFILTER
Filter not defined on variable.
int nc_type
The nc_type type is just an int.