ncdf4a13/libsrc/netcdf.h File Reference

#include <stddef.h>
#include <errno.h>

Include dependency graph for netcdf.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NC_FILL_BYTE   ((signed char)-127)
#define NC_FILL_CHAR   ((char)0)
#define NC_FILL_SHORT   ((short)-32767)
#define NC_FILL_INT   (-2147483647L)
#define NC_FILL_FLOAT   (9.9692099683868690e+36f)
#define NC_FILL_DOUBLE   (9.9692099683868690e+36)
#define _FillValue   "_FillValue"
#define NC_FILL   0
#define NC_NOFILL   0x100
#define NC_NOWRITE   0
#define NC_WRITE   0x1
#define NC_CLOBBER   0
#define NC_NOCLOBBER   0x4
#define NC_64BIT_OFFSET   0x0200
#define NC_SHARE   0x0800
#define NC_STRICT_NC3   (0x8)
#define NC_LOCK   0x0400
#define NC_FORMAT_CLASSIC   (1)
#define NC_FORMAT_64BIT   (2)
#define NC_FORMAT_NETCDF4   (3)
#define NC_FORMAT_NETCDF4_CLASSIC   (4)
#define NC_SIZEHINT_DEFAULT   0
#define NC_ALIGN_CHUNK   ((size_t)(-1))
#define NC_UNLIMITED   0L
#define NC_GLOBAL   -1
#define NC_NOAXISTYPE   0
#define NC_LATITUDE   1
#define NC_LONGITUDE   2
#define NC_GEOX   3
#define NC_GEOY   4
#define NC_GEOZ   5
#define NC_HEIGHT_UP   6
#define NC_HEIGHT_DOWN   7
#define NC_PRESSURE   8
#define NC_TIME   9
#define NC_RADAZ   10
#define NC_RADEL   11
#define NC_RADDIST   12
#define NC_MAX_DIMS   1024
#define NC_MAX_ATTRS   8192
#define NC_MAX_VARS   8192
#define NC_MAX_NAME   256
#define NC_MAX_VAR_DIMS   NC_MAX_DIMS
#define NC_ISSYSERR(err)   ((err) > 0)
#define NC_NOERR   0
#define NC2_ERR   (-1)
#define NC_EBADID   (-33)
#define NC_ENFILE   (-34)
#define NC_EEXIST   (-35)
#define NC_EINVAL   (-36)
#define NC_EPERM   (-37)
#define NC_ENOTINDEFINE   (-38)
#define NC_EINDEFINE   (-39)
#define NC_EINVALCOORDS   (-40)
#define NC_EMAXDIMS   (-41)
#define NC_ENAMEINUSE   (-42)
#define NC_ENOTATT   (-43)
#define NC_EMAXATTS   (-44)
#define NC_EBADTYPE   (-45)
#define NC_EBADDIM   (-46)
#define NC_EUNLIMPOS   (-47)
#define NC_EMAXVARS   (-48)
#define NC_ENOTVAR   (-49)
#define NC_EGLOBAL   (-50)
#define NC_ENOTNC   (-51)
#define NC_ESTS   (-52)
#define NC_EMAXNAME   (-53)
#define NC_EUNLIMIT   (-54)
#define NC_ENORECVARS   (-55)
#define NC_ECHAR   (-56)
#define NC_EEDGE   (-57)
#define NC_ESTRIDE   (-58)
#define NC_EBADNAME   (-59)
#define NC_ERANGE   (-60)
#define NC_ENOMEM   (-61)
#define NC_EVARSIZE   (-62)
#define NC_EDIMSIZE   (-63)
#define NC_ETRUNC   (-64)
#define MSC_EXTRA
#define EXTERNL   extern MSC_EXTRA
#define ncvarcpy(ncid_in, varid, ncid_out)   ncvarcopy((ncid_in), (varid), (ncid_out))
#define FILL_BYTE   NC_FILL_BYTE
#define FILL_CHAR   NC_FILL_CHAR
#define FILL_SHORT   NC_FILL_SHORT
#define FILL_LONG   NC_FILL_INT
#define FILL_FLOAT   NC_FILL_FLOAT
#define FILL_DOUBLE   NC_FILL_DOUBLE
#define MAX_NC_DIMS   NC_MAX_DIMS
#define MAX_NC_ATTRS   NC_MAX_ATTRS
#define MAX_NC_VARS   NC_MAX_VARS
#define MAX_NC_NAME   NC_MAX_NAME
#define MAX_VAR_DIMS   NC_MAX_VAR_DIMS
#define NC_LONG   NC_INT
#define NC_ENTOOL   NC_EMAXNAME
#define NC_EXDR   (-32)
#define NC_SYSERR   (-31)
#define MAX_NC_OPEN   32
#define NC_FATAL   1
#define NC_VERBOSE   2

Typedefs

typedef int nclong

Enumerations

enum  nc_type {
  NC_NAT = 0, NC_BYTE = 1, NC_CHAR = 2, NC_SHORT = 3,
  NC_INT = 4, NC_FLOAT = 5, NC_DOUBLE = 6
}

Functions

EXTERNL int nc_def_axis_type (int ncid, int varid, int axis_type)
EXTERNL int nc_inq_axis_type (int ncid, int varid, int *axis_type)
EXTERNL int nc_def_coord_system (int ncid, const char *name, int naxes, int *axis_varids, int *system_varid)
EXTERNL int nc_inq_coord_system (int ncid, int system_varid, char *name, int *naxes, int *axis_varids)
EXTERNL int nc_assign_coord_system (int ncid, int varid, int system_varid)
EXTERNL int nc_def_transform (int ncid, const char *name, const char *transform_type, const char *transform_name, int *transform_varid)
EXTERNL int nc_inq_transform (int ncid, int transform_varid, char *name, size_t *type_len, char *transform_type, size_t *name_len, char *transform_name)
EXTERNL int nc_assign_transform (int ncid, int system_varid, int transform_varid)
EXTERNL const char * nc_inq_libvers (void)
EXTERNL const char * nc_strerror (int ncerr)
EXTERNL int nc__create (const char *path, int cmode, size_t initialsz, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_create (const char *path, int cmode, int *ncidp)
EXTERNL int nc__open (const char *path, int mode, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_open (const char *path, int mode, int *ncidp)
EXTERNL int nc_set_fill (int ncid, int fillmode, int *old_modep)
EXTERNL int nc_redef (int ncid)
EXTERNL int nc__enddef (int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align)
EXTERNL int nc_enddef (int ncid)
EXTERNL int nc_sync (int ncid)
EXTERNL int nc_abort (int ncid)
EXTERNL int nc_close (int ncid)
EXTERNL int nc_inq (int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
EXTERNL int nc_inq_ndims (int ncid, int *ndimsp)
EXTERNL int nc_inq_nvars (int ncid, int *nvarsp)
EXTERNL int nc_inq_natts (int ncid, int *nattsp)
EXTERNL int nc_inq_unlimdim (int ncid, int *unlimdimidp)
EXTERNL int nc_set_default_format (int format, int *old_formatp)
EXTERNL int nc_inq_format (int ncid, int *formatp)
EXTERNL int nc_def_dim (int ncid, const char *name, size_t len, int *idp)
EXTERNL int nc_inq_dimid (int ncid, const char *name, int *idp)
EXTERNL int nc_inq_dim (int ncid, int dimid, char *name, size_t *lenp)
EXTERNL int nc_inq_dimname (int ncid, int dimid, char *name)
EXTERNL int nc_inq_dimlen (int ncid, int dimid, size_t *lenp)
EXTERNL int nc_rename_dim (int ncid, int dimid, const char *name)
EXTERNL int nc_inq_att (int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp)
EXTERNL int nc_inq_attid (int ncid, int varid, const char *name, int *idp)
EXTERNL int nc_inq_atttype (int ncid, int varid, const char *name, nc_type *xtypep)
EXTERNL int nc_inq_attlen (int ncid, int varid, const char *name, size_t *lenp)
EXTERNL int nc_inq_attname (int ncid, int varid, int attnum, char *name)
EXTERNL int nc_copy_att (int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
EXTERNL int nc_rename_att (int ncid, int varid, const char *name, const char *newname)
EXTERNL int nc_del_att (int ncid, int varid, const char *name)
EXTERNL int nc_put_att (int ncid, int varid, const char *name, nc_type datatype, size_t len, const void *value)
EXTERNL int nc_get_att (int ncid, int varid, const char *name, void *value)
EXTERNL int nc_put_att_text (int ncid, int varid, const char *name, size_t len, const char *op)
EXTERNL int nc_get_att_text (int ncid, int varid, const char *name, char *ip)
EXTERNL int nc_put_att_uchar (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
EXTERNL int nc_get_att_uchar (int ncid, int varid, const char *name, unsigned char *ip)
EXTERNL int nc_put_att_schar (int ncid, int varid, const char *name, nc_type xtype, size_t len, const signed char *op)
EXTERNL int nc_get_att_schar (int ncid, int varid, const char *name, signed char *ip)
EXTERNL int nc_put_att_short (int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *op)
EXTERNL int nc_get_att_short (int ncid, int varid, const char *name, short *ip)
EXTERNL int nc_put_att_int (int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *op)
EXTERNL int nc_get_att_int (int ncid, int varid, const char *name, int *ip)
EXTERNL int nc_put_att_long (int ncid, int varid, const char *name, nc_type xtype, size_t len, const long *op)
EXTERNL int nc_get_att_long (int ncid, int varid, const char *name, long *ip)
EXTERNL int nc_put_att_float (int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *op)
EXTERNL int nc_get_att_float (int ncid, int varid, const char *name, float *ip)
EXTERNL int nc_put_att_double (int ncid, int varid, const char *name, nc_type xtype, size_t len, const double *op)
EXTERNL int nc_get_att_double (int ncid, int varid, const char *name, double *ip)
EXTERNL int nc_def_var (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
EXTERNL int nc_inq_var (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int nc_inq_varid (int ncid, const char *name, int *varidp)
EXTERNL int nc_inq_varname (int ncid, int varid, char *name)
EXTERNL int nc_inq_vartype (int ncid, int varid, nc_type *xtypep)
EXTERNL int nc_inq_varndims (int ncid, int varid, int *ndimsp)
EXTERNL int nc_inq_vardimid (int ncid, int varid, int *dimidsp)
EXTERNL int nc_inq_varnatts (int ncid, int varid, int *nattsp)
EXTERNL int nc_rename_var (int ncid, int varid, const char *name)
EXTERNL int nc_copy_var (int ncid_in, int varid, int ncid_out)
EXTERNL int nc_put_var1 (int ncid, int varid, const size_t *index, const void *value)
EXTERNL int nc_get_var1 (int ncid, int varid, const size_t *index, void *value)
EXTERNL int nc_put_var1_text (int ncid, int varid, const size_t *indexp, const char *op)
EXTERNL int nc_get_var1_text (int ncid, int varid, const size_t *indexp, char *ip)
EXTERNL int nc_put_var1_uchar (int ncid, int varid, const size_t *indexp, const unsigned char *op)
EXTERNL int nc_get_var1_uchar (int ncid, int varid, const size_t *indexp, unsigned char *ip)
EXTERNL int nc_put_var1_schar (int ncid, int varid, const size_t *indexp, const signed char *op)
EXTERNL int nc_get_var1_schar (int ncid, int varid, const size_t *indexp, signed char *ip)
EXTERNL int nc_put_var1_short (int ncid, int varid, const size_t *indexp, const short *op)
EXTERNL int nc_get_var1_short (int ncid, int varid, const size_t *indexp, short *ip)
EXTERNL int nc_put_var1_int (int ncid, int varid, const size_t *indexp, const int *op)
EXTERNL int nc_get_var1_int (int ncid, int varid, const size_t *indexp, int *ip)
EXTERNL int nc_put_var1_long (int ncid, int varid, const size_t *indexp, const long *op)
EXTERNL int nc_get_var1_long (int ncid, int varid, const size_t *indexp, long *ip)
EXTERNL int nc_put_var1_float (int ncid, int varid, const size_t *indexp, const float *op)
EXTERNL int nc_get_var1_float (int ncid, int varid, const size_t *indexp, float *ip)
EXTERNL int nc_put_var1_double (int ncid, int varid, const size_t *indexp, const double *op)
EXTERNL int nc_get_var1_double (int ncid, int varid, const size_t *indexp, double *ip)
EXTERNL int nc_put_vara (int ncid, int varid, const size_t *start, const size_t *count, const void *value)
EXTERNL int nc_get_vara (int ncid, int varid, const size_t *start, const size_t *count, void *value)
EXTERNL int nc_put_vara_text (int ncid, int varid, const size_t *startp, const size_t *countp, const char *op)
EXTERNL int nc_get_vara_text (int ncid, int varid, const size_t *startp, const size_t *countp, char *ip)
EXTERNL int nc_put_vara_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
EXTERNL int nc_get_vara_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
EXTERNL int nc_put_vara_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const signed char *op)
EXTERNL int nc_get_vara_schar (int ncid, int varid, const size_t *startp, const size_t *countp, signed char *ip)
EXTERNL int nc_put_vara_short (int ncid, int varid, const size_t *startp, const size_t *countp, const short *op)
EXTERNL int nc_get_vara_short (int ncid, int varid, const size_t *startp, const size_t *countp, short *ip)
EXTERNL int nc_put_vara_int (int ncid, int varid, const size_t *startp, const size_t *countp, const int *op)
EXTERNL int nc_get_vara_int (int ncid, int varid, const size_t *startp, const size_t *countp, int *ip)
EXTERNL int nc_put_vara_long (int ncid, int varid, const size_t *startp, const size_t *countp, const long *op)
EXTERNL int nc_get_vara_long (int ncid, int varid, const size_t *startp, const size_t *countp, long *ip)
EXTERNL int nc_put_vara_float (int ncid, int varid, const size_t *startp, const size_t *countp, const float *op)
EXTERNL int nc_get_vara_float (int ncid, int varid, const size_t *startp, const size_t *countp, float *ip)
EXTERNL int nc_put_vara_double (int ncid, int varid, const size_t *startp, const size_t *countp, const double *op)
EXTERNL int nc_get_vara_double (int ncid, int varid, const size_t *startp, const size_t *countp, double *ip)
EXTERNL int nc_put_vars (int ncid, int varid, const size_t *start, const size_t *count, const ptrdiff_t *stride, const void *value)
EXTERNL int nc_get_vars (int ncid, int varid, const size_t *start, const size_t *count, const ptrdiff_t *stride, void *value)
EXTERNL int nc_put_vars_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char *op)
EXTERNL int nc_get_vars_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char *ip)
EXTERNL int nc_put_vars_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned char *op)
EXTERNL int nc_get_vars_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
EXTERNL int nc_put_vars_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const signed char *op)
EXTERNL int nc_get_vars_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, signed char *ip)
EXTERNL int nc_put_vars_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const short *op)
EXTERNL int nc_get_vars_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, short *ip)
EXTERNL int nc_put_vars_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const int *op)
EXTERNL int nc_get_vars_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, int *ip)
EXTERNL int nc_put_vars_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long *op)
EXTERNL int nc_get_vars_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long *ip)
EXTERNL int nc_put_vars_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const float *op)
EXTERNL int nc_get_vars_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, float *ip)
EXTERNL int nc_put_vars_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const double *op)
EXTERNL int nc_get_vars_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, double *ip)
EXTERNL int nc_put_varm (int ncid, int varid, const size_t *start, const size_t *count, const ptrdiff_t *stride, const ptrdiff_t *map, const void *value)
EXTERNL int nc_get_varm (int ncid, int varid, const size_t *start, const size_t *count, const ptrdiff_t *stride, const ptrdiff_t *map, void *value)
EXTERNL int nc_put_varm_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const char *op)
EXTERNL int nc_get_varm_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, char *ip)
EXTERNL int nc_put_varm_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned char *op)
EXTERNL int nc_get_varm_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned char *ip)
EXTERNL int nc_put_varm_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const signed char *op)
EXTERNL int nc_get_varm_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, signed char *ip)
EXTERNL int nc_put_varm_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const short *op)
EXTERNL int nc_get_varm_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, short *ip)
EXTERNL int nc_put_varm_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const int *op)
EXTERNL int nc_get_varm_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, int *ip)
EXTERNL int nc_put_varm_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const long *op)
EXTERNL int nc_get_varm_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, long *ip)
EXTERNL int nc_put_varm_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const float *op)
EXTERNL int nc_get_varm_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, float *ip)
EXTERNL int nc_put_varm_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const double *op)
EXTERNL int nc_get_varm_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imap, double *ip)
EXTERNL int nc_put_var_text (int ncid, int varid, const char *op)
EXTERNL int nc_get_var_text (int ncid, int varid, char *ip)
EXTERNL int nc_put_var_uchar (int ncid, int varid, const unsigned char *op)
EXTERNL int nc_get_var_uchar (int ncid, int varid, unsigned char *ip)
EXTERNL int nc_put_var_schar (int ncid, int varid, const signed char *op)
EXTERNL int nc_get_var_schar (int ncid, int varid, signed char *ip)
EXTERNL int nc_put_var_short (int ncid, int varid, const short *op)
EXTERNL int nc_get_var_short (int ncid, int varid, short *ip)
EXTERNL int nc_put_var_int (int ncid, int varid, const int *op)
EXTERNL int nc_get_var_int (int ncid, int varid, int *ip)
EXTERNL int nc_put_var_long (int ncid, int varid, const long *op)
EXTERNL int nc_get_var_long (int ncid, int varid, long *ip)
EXTERNL int nc_put_var_float (int ncid, int varid, const float *op)
EXTERNL int nc_get_var_float (int ncid, int varid, float *ip)
EXTERNL int nc_put_var_double (int ncid, int varid, const double *op)
EXTERNL int nc_get_var_double (int ncid, int varid, double *ip)
EXTERNL int nc__create_mp (const char *path, int cmode, size_t initialsz, int basepe, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc__open_mp (const char *path, int mode, int basepe, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_delete (const char *path)
EXTERNL int nc_delete_mp (const char *path, int basepe)
EXTERNL int nc_set_base_pe (int ncid, int pe)
EXTERNL int nc_inq_base_pe (int ncid, int *pe)
EXTERNL void nc_advise (const char *cdf_routine_name, int err, const char *fmt,...)
EXTERNL int nctypelen (nc_type datatype)
EXTERNL int nccreate (const char *path, int cmode)
EXTERNL int ncopen (const char *path, int mode)
EXTERNL int ncsetfill (int ncid, int fillmode)
EXTERNL int ncredef (int ncid)
EXTERNL int ncendef (int ncid)
EXTERNL int ncsync (int ncid)
EXTERNL int ncabort (int ncid)
EXTERNL int ncclose (int ncid)
EXTERNL int ncinquire (int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp)
EXTERNL int ncdimdef (int ncid, const char *name, long len)
EXTERNL int ncdimid (int ncid, const char *name)
EXTERNL int ncdiminq (int ncid, int dimid, char *name, long *lenp)
EXTERNL int ncdimrename (int ncid, int dimid, const char *name)
EXTERNL int ncattput (int ncid, int varid, const char *name, nc_type xtype, int len, const void *op)
EXTERNL int ncattinq (int ncid, int varid, const char *name, nc_type *xtypep, int *lenp)
EXTERNL int ncattget (int ncid, int varid, const char *name, void *ip)
EXTERNL int ncattcopy (int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
EXTERNL int ncattname (int ncid, int varid, int attnum, char *name)
EXTERNL int ncattrename (int ncid, int varid, const char *name, const char *newname)
EXTERNL int ncattdel (int ncid, int varid, const char *name)
EXTERNL int ncvardef (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp)
EXTERNL int ncvarid (int ncid, const char *name)
EXTERNL int ncvarinq (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int ncvarput1 (int ncid, int varid, const long *indexp, const void *op)
EXTERNL int ncvarget1 (int ncid, int varid, const long *indexp, void *ip)
EXTERNL int ncvarput (int ncid, int varid, const long *startp, const long *countp, const void *op)
EXTERNL int ncvarget (int ncid, int varid, const long *startp, const long *countp, void *ip)
EXTERNL int ncvarputs (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const void *op)
EXTERNL int ncvargets (int ncid, int varid, const long *startp, const long *countp, const long *stridep, void *ip)
EXTERNL int ncvarputg (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, const void *op)
EXTERNL int ncvargetg (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, void *ip)
EXTERNL int ncvarrename (int ncid, int varid, const char *name)
EXTERNL int ncrecinq (int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp)
EXTERNL int ncrecget (int ncid, long recnum, void **datap)
EXTERNL int ncrecput (int ncid, long recnum, void *const *datap)

Variables

EXTERNL int ncerr
EXTERNL int ncopts


Define Documentation

#define _FillValue   "_FillValue"
 

Definition at line 80 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), fill_NC_var(), main(), and yyparse().

#define EXTERNL   extern MSC_EXTRA
 

Definition at line 232 of file netcdf.h.

#define FILL_BYTE   NC_FILL_BYTE
 

Definition at line 955 of file netcdf.h.

Referenced by test_ncvardef().

#define FILL_CHAR   NC_FILL_CHAR
 

Definition at line 956 of file netcdf.h.

Referenced by test_ncvardef().

#define FILL_DOUBLE   NC_FILL_DOUBLE
 

Definition at line 960 of file netcdf.h.

Referenced by test_ncvardef().

#define FILL_FLOAT   NC_FILL_FLOAT
 

Definition at line 959 of file netcdf.h.

Referenced by test_ncvardef().

#define FILL_LONG   NC_FILL_INT
 

Definition at line 958 of file netcdf.h.

Referenced by test_ncvardef().

#define FILL_SHORT   NC_FILL_SHORT
 

Definition at line 957 of file netcdf.h.

Referenced by test_ncvardef().

#define MAX_NC_ATTRS   NC_MAX_ATTRS
 

Definition at line 963 of file netcdf.h.

#define MAX_NC_DIMS   NC_MAX_DIMS
 

Definition at line 962 of file netcdf.h.

Referenced by add_dim(), dimsizes(), NcVar::get_dim(), NcVar::init_cur(), nc_get_rec(), nc_put_rec(), NcFile::NcFile(), ncrecsize(), numrecvars(), recget(), recput(), test_ncvarget(), test_ncvargetg(), test_ncvarput(), test_ncvarputg(), test_varputget(), test_varputgetg(), and NcVar::values().

#define MAX_NC_NAME   NC_MAX_NAME
 

Definition at line 965 of file netcdf.h.

Referenced by NcVar::attname(), NcVar::attnum(), cdl_name(), NcDim::NcDim(), NcVar::NcVar(), NcVar::sync(), NcDim::sync(), test_ncattdel(), test_ncattname(), test_ncattput(), test_ncdiminq(), test_ncdimrename(), test_ncvardef(), test_ncvarinq(), and test_ncvarrename().

#define MAX_NC_OPEN   32
 

Definition at line 989 of file netcdf.h.

#define MAX_NC_VARS   NC_MAX_VARS
 

Definition at line 964 of file netcdf.h.

Referenced by add_var(), nc_get_rec(), nc_inq_rec(), nc_put_rec(), NcFile::NcFile(), recget(), recinq(), recput(), test_ncrecget(), test_ncrecinq(), and test_ncrecput().

#define MAX_VAR_DIMS   NC_MAX_VAR_DIMS
 

Definition at line 966 of file netcdf.h.

Referenced by test_ncattdel(), test_ncvardef(), test_ncvarinq(), and test_ncvarrename().

#define MSC_EXTRA
 

Definition at line 229 of file netcdf.h.

#define NC2_ERR   (-1)
 

Definition at line 175 of file netcdf.h.

#define NC_64BIT_OFFSET   0x0200
 

Definition at line 95 of file netcdf.h.

Referenced by create_file(), gen_c(), gen_fortran(), main(), nc__create_mp(), NC_begins(), NC_check_vlens(), nc_create_file(), nc_def_dim(), nc_get_NC(), nc_inq_format(), NcFile::NcFile(), nco_create_mode_mrg(), nco_lbr_vrs_prn(), ncx_put_NC(), and test_redef().

#define NC_ALIGN_CHUNK   ((size_t)(-1))
 

Definition at line 127 of file netcdf.h.

Referenced by NC_begins().

#define NC_CLOBBER   0
 

Definition at line 93 of file netcdf.h.

Referenced by FCALLSCSUB1(), main(), nco_create_mode_mrg(), nco_fl_out_open(), test_axis(), test_nc_abort(), test_nc_create(), test_nc_def_dim(), test_nc_def_var(), test_nc_put_var1_double(), test_nc_put_var1_float(), test_nc_put_var1_int(), test_nc_put_var1_long(), test_nc_put_var1_schar(), test_nc_put_var1_short(), test_nc_put_var1_text(), test_nc_put_var1_uchar(), test_nc_put_var_double(), test_nc_put_var_float(), test_nc_put_var_int(), test_nc_put_var_long(), test_nc_put_var_schar(), test_nc_put_var_short(), test_nc_put_var_text(), test_nc_put_var_uchar(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), test_nc_set_default_format(), test_nc_set_fill(), test_ncabort(), test_ncattcopy(), test_nccreate(), test_redef(), test_system(), test_system_assign(), test_transform(), test_transform_assign(), and write_file().

#define NC_EBADDIM   (-46)
 

Definition at line 189 of file netcdf.h.

Referenced by find_dim(), nc_inq_dim(), nc_inq_dimid(), nc_inq_dimlen(), nc_inq_dimname(), nc_rename_dim(), nc_strerror(), NC_var_shape(), nco_inq_dim_flg(), nco_inq_dimid(), nco_inq_dimid_flg(), nco_lmt_sct_mk(), test_nc_def_var(), test_nc_inq_dim(), test_nc_inq_dimid(), test_nc_inq_dimlen(), test_nc_inq_dimname(), test_nc_rename_dim(), and test_nc_strerror().

#define NC_EBADID   (-33)
 

Definition at line 176 of file netcdf.h.

Referenced by find_grp_h5(), find_grp_var(), find_nc4_file(), find_nc4_grp(), find_nc_grp_h5(), nc4_get_att_tc(), nc4_get_var1_tc(), nc4_get_var_tc(), nc4_get_vara_tc(), nc4_get_varm_tc(), nc4_get_vars_tc(), nc4_put_att_tc(), nc4_put_var1_tc(), nc4_put_var_tc(), nc4_put_vara_tc(), nc4_put_varm_tc(), nc4_put_vars_tc(), nc__enddef(), nc_abort(), NC_check_id(), nc_def_var(), nc_enddef(), nc_inq_att(), nc_inq_attid(), nc_inq_attname(), nc_inq_base_pe(), nc_inq_format(), nc_inq_varnatts(), nc_redef(), nc_set_base_pe(), nc_set_fill(), nc_strerror(), nc_sync(), open_var(), test_nc_abort(), test_nc_close(), test_nc_copy_att(), test_nc_def_dim(), test_nc_def_var(), test_nc_del_att(), test_nc_get_att(), test_nc_get_att_double(), test_nc_get_att_float(), test_nc_get_att_int(), test_nc_get_att_long(), test_nc_get_att_schar(), test_nc_get_att_short(), test_nc_get_att_text(), test_nc_get_att_uchar(), test_nc_get_var1(), test_nc_get_var1_double(), test_nc_get_var1_float(), test_nc_get_var1_int(), test_nc_get_var1_long(), test_nc_get_var1_schar(), test_nc_get_var1_short(), test_nc_get_var1_text(), test_nc_get_var1_uchar(), test_nc_get_var_double(), test_nc_get_var_float(), test_nc_get_var_int(), test_nc_get_var_long(), test_nc_get_var_schar(), test_nc_get_var_short(), test_nc_get_var_text(), test_nc_get_var_uchar(), test_nc_get_vara(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_inq(), test_nc_inq_att(), test_nc_inq_attid(), test_nc_inq_attlen(), test_nc_inq_attname(), test_nc_inq_atttype(), test_nc_inq_dim(), test_nc_inq_dimid(), test_nc_inq_dimlen(), test_nc_inq_dimname(), test_nc_inq_natts(), test_nc_inq_ndims(), test_nc_inq_nvars(), test_nc_inq_unlimdim(), test_nc_inq_var(), test_nc_inq_vardimid(), test_nc_inq_varid(), test_nc_inq_varname(), test_nc_inq_varnatts(), test_nc_inq_varndims(), test_nc_inq_vartype(), test_nc_put_att(), test_nc_put_att_double(), test_nc_put_att_float(), test_nc_put_att_int(), test_nc_put_att_long(), test_nc_put_att_schar(), test_nc_put_att_short(), test_nc_put_att_text(), test_nc_put_att_uchar(), test_nc_put_var1(), test_nc_put_var1_double(), test_nc_put_var1_float(), test_nc_put_var1_int(), test_nc_put_var1_long(), test_nc_put_var1_schar(), test_nc_put_var1_short(), test_nc_put_var1_text(), test_nc_put_var1_uchar(), test_nc_put_var_double(), test_nc_put_var_float(), test_nc_put_var_int(), test_nc_put_var_long(), test_nc_put_var_schar(), test_nc_put_var_short(), test_nc_put_var_text(), test_nc_put_var_uchar(), test_nc_put_vara(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), test_nc_redef(), test_nc_rename_att(), test_nc_rename_dim(), test_nc_rename_var(), test_nc_set_fill(), test_nc_strerror(), and test_nc_sync().

#define NC_EBADNAME   (-59)
 

Definition at line 202 of file netcdf.h.

Referenced by nc4_put_att(), nc4_put_att_tc(), NC_check_name(), nc_strerror(), read_type(), test_nc_def_dim(), test_nc_def_var(), test_nc_put_att(), test_nc_put_att_text(), test_nc_strerror(), and test_redef().

#define NC_EBADTYPE   (-45)
 

Definition at line 188 of file netcdf.h.

Referenced by commit_type(), convert_type(), fill_NC_var(), gen_netcdf(), get_hdf_typeid(), getNCv_double(), getNCv_float(), getNCv_int(), getNCv_long(), getNCv_schar(), getNCv_short(), getNCv_uchar(), main(), nc4_get_att_tc(), nc4_get_typelen_mem(), nc4_get_var1_tc(), nc4_get_var_tc(), nc4_get_vara_tc(), nc4_get_varm_tc(), nc4_get_vars_tc(), nc4_put_att(), nc4_put_att_tc(), nc4_put_var1_tc(), nc4_put_var_tc(), nc4_put_vara_tc(), nc4_put_varm_tc(), nc4_put_vars_tc(), nc_cktype(), nc_copy_att(), nc_copy_var(), nc_def_var_full(), nc_get_att(), nc_get_var1(), nc_get_vara(), nc_get_varm(), nc_inq_compound(), nc_inq_compound_field(), nc_inq_enum(), nc_inq_enum_member(), nc_inq_opaque(), nc_inq_type(), nc_inq_user_type(), nc_inq_vlen(), nc_put_att(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_uchar(), nc_put_var1(), nc_put_vara(), nc_put_varm(), nc_strerror(), ncx_pad_getn_Idouble(), ncx_pad_getn_Ifloat(), ncx_pad_getn_Iint(), ncx_pad_getn_Ilong(), ncx_pad_getn_Ischar(), ncx_pad_getn_Ishort(), ncx_pad_getn_Iuchar(), ncx_pad_putn_Idouble(), ncx_pad_putn_Ifloat(), ncx_pad_putn_Iint(), ncx_pad_putn_Ilong(), ncx_pad_putn_Ischar(), ncx_pad_putn_Ishort(), ncx_pad_putn_Iuchar(), putNCv_double(), putNCv_float(), putNCv_int(), putNCv_long(), putNCv_schar(), putNCv_short(), putNCv_uchar(), test_nc_def_var(), test_nc_put_att(), test_nc_put_att_double(), test_nc_put_att_float(), test_nc_put_att_int(), test_nc_put_att_long(), test_nc_put_att_schar(), test_nc_put_att_short(), test_nc_put_att_uchar(), and test_nc_strerror().

#define NC_ECHAR   (-56)
 

Definition at line 199 of file netcdf.h.

Referenced by FCALLSCSUB4(), FCALLSCSUB5(), FCALLSCSUB6(), FCALLSCSUB7(), FCALLSCSUB8(), getNCv_double(), getNCv_float(), getNCv_int(), getNCv_long(), getNCv_schar(), getNCv_short(), getNCv_text(), getNCv_uchar(), main(), nc4_get_att(), nc4_put_att(), nc_get_att_double(), nc_get_att_float(), nc_get_att_int(), nc_get_att_long(), nc_get_att_schar(), nc_get_att_short(), nc_get_att_text(), nc_get_att_uchar(), nc_get_var1_double(), nc_get_var1_float(), nc_get_var1_int(), nc_get_var1_long(), nc_get_var1_schar(), nc_get_var1_short(), nc_get_var1_text(), nc_get_var1_uchar(), nc_get_var_double(), nc_get_var_float(), nc_get_var_int(), nc_get_var_long(), nc_get_var_schar(), nc_get_var_short(), nc_get_var_text(), nc_get_var_uchar(), nc_get_vara_double(), nc_get_vara_float(), nc_get_vara_int(), nc_get_vara_long(), nc_get_vara_schar(), nc_get_vara_short(), nc_get_vara_text(), nc_get_vara_uchar(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_uchar(), nc_put_var1_double(), nc_put_var1_float(), nc_put_var1_int(), nc_put_var1_long(), nc_put_var1_schar(), nc_put_var1_short(), nc_put_var1_text(), nc_put_var1_uchar(), nc_put_var_double(), nc_put_var_float(), nc_put_var_int(), nc_put_var_long(), nc_put_var_schar(), nc_put_var_short(), nc_put_var_text(), nc_put_var_uchar(), nc_put_vara_double(), nc_put_vara_float(), nc_put_vara_int(), nc_put_vara_long(), nc_put_vara_schar(), nc_put_vara_short(), nc_put_vara_text(), nc_put_vara_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_strerror(), ncx_pad_getn_Idouble(), ncx_pad_getn_Ifloat(), ncx_pad_getn_Iint(), ncx_pad_getn_Ilong(), ncx_pad_getn_Ischar(), ncx_pad_getn_Ishort(), ncx_pad_getn_Iuchar(), ncx_pad_putn_Idouble(), ncx_pad_putn_Ifloat(), ncx_pad_putn_Iint(), ncx_pad_putn_Ilong(), ncx_pad_putn_Ischar(), ncx_pad_putn_Ishort(), ncx_pad_putn_Iuchar(), pg_vara(), pg_varm(), putNCv_double(), putNCv_float(), putNCv_int(), putNCv_long(), putNCv_schar(), putNCv_short(), putNCv_text(), putNCv_uchar(), test_nc_get_att_double(), test_nc_get_att_float(), test_nc_get_att_int(), test_nc_get_att_long(), test_nc_get_att_schar(), test_nc_get_att_short(), test_nc_get_att_text(), test_nc_get_att_uchar(), test_nc_get_var1_double(), test_nc_get_var1_float(), test_nc_get_var1_int(), test_nc_get_var1_long(), test_nc_get_var1_schar(), test_nc_get_var1_short(), test_nc_get_var1_text(), test_nc_get_var1_uchar(), test_nc_get_var_double(), test_nc_get_var_float(), test_nc_get_var_int(), test_nc_get_var_long(), test_nc_get_var_schar(), test_nc_get_var_short(), test_nc_get_var_text(), test_nc_get_var_uchar(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_put_var1_double(), test_nc_put_var1_float(), test_nc_put_var1_int(), test_nc_put_var1_long(), test_nc_put_var1_schar(), test_nc_put_var1_short(), test_nc_put_var1_text(), test_nc_put_var1_uchar(), test_nc_put_var_double(), test_nc_put_var_float(), test_nc_put_var_int(), test_nc_put_var_long(), test_nc_put_var_schar(), test_nc_put_var_short(), test_nc_put_var_text(), test_nc_put_var_uchar(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), and test_nc_strerror().

#define NC_EDIMSIZE   (-63)
 

Definition at line 210 of file netcdf.h.

Referenced by nc_def_dim(), nc_strerror(), ncdimdef(), test_nc_def_dim(), and test_nc_strerror().

#define NC_EEDGE   (-57)
 

Definition at line 200 of file netcdf.h.

Referenced by nc_get_vara_double(), nc_get_vara_float(), nc_get_vara_int(), nc_get_vara_long(), nc_get_vara_schar(), nc_get_vara_short(), nc_get_vara_text(), nc_get_vara_uchar(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_strerror(), NCedgeck(), pg_vara(), pg_varm(), test_nc_get_vara(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_put_vara(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), and test_nc_strerror().

#define NC_EEXIST   (-35)
 

Definition at line 178 of file netcdf.h.

Referenced by main(), nc4_create_file(), nc__create_mp(), nc_strerror(), test_nc_create(), and test_nc_strerror().

#define NC_EGLOBAL   (-50)
 

Definition at line 193 of file netcdf.h.

Referenced by nc_strerror(), and test_nc_strerror().

#define NC_EINDEFINE   (-39)
 

Definition at line 182 of file netcdf.h.

Referenced by nc4_put_att(), nc_copy_var(), nc_get_var1_double(), nc_get_var1_float(), nc_get_var1_int(), nc_get_var1_long(), nc_get_var1_schar(), nc_get_var1_short(), nc_get_var1_text(), nc_get_var1_uchar(), nc_get_var_double(), nc_get_var_float(), nc_get_var_int(), nc_get_var_long(), nc_get_var_schar(), nc_get_var_short(), nc_get_var_text(), nc_get_var_uchar(), nc_get_vara_double(), nc_get_vara_float(), nc_get_vara_int(), nc_get_vara_long(), nc_get_vara_schar(), nc_get_vara_short(), nc_get_vara_text(), nc_get_vara_uchar(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_var1_double(), nc_put_var1_float(), nc_put_var1_int(), nc_put_var1_long(), nc_put_var1_schar(), nc_put_var1_short(), nc_put_var1_text(), nc_put_var1_uchar(), nc_put_var_double(), nc_put_var_float(), nc_put_var_int(), nc_put_var_long(), nc_put_var_schar(), nc_put_var_short(), nc_put_var_text(), nc_put_var_uchar(), nc_put_vara_double(), nc_put_vara_float(), nc_put_vara_int(), nc_put_vara_long(), nc_put_vara_schar(), nc_put_vara_short(), nc_put_vara_text(), nc_put_vara_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_redef(), nc_strerror(), nc_sync(), nco_var_dfn(), pg_vara(), pg_varm(), sync_netcdf4_file(), test_nc_redef(), test_nc_strerror(), and test_nc_sync().

#define NC_EINVAL   (-36)
 

Definition at line 179 of file netcdf.h.

Referenced by add_user_type(), FCALLSCFUN3(), FCALLSCSUB1(), field_list_add(), find_type(), get_locid(), main(), nc4_put_att(), nc4_put_att_tc(), nc__create_mp(), nc__open_mp(), nc_copy_var(), nc_create_file(), nc_def_axis_type(), nc_def_coord_system(), nc_def_var(), nc_def_var_full(), nc_del_att(), nc_delete_mp(), nc_get_file_version(), nc_get_varm(), nc_inq_enum_member(), nc_inq_varid(), nc_open_file(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_opaque(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_put_varm(), nc_rename_att(), nc_rename_dim(), nc_set_base_pe(), nc_set_default_format(), nc_set_fill(), nc_strerror(), pg_att_grpa(), pg_varm(), test_nc_def_var(), test_nc_set_default_format(), test_nc_set_fill(), and test_nc_strerror().

#define NC_EINVALCOORDS   (-40)
 

Definition at line 183 of file netcdf.h.

Referenced by main(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_strerror(), NCcoordck(), pg_vara(), pg_varm(), test_nc_get_var1(), test_nc_get_var1_double(), test_nc_get_var1_float(), test_nc_get_var1_int(), test_nc_get_var1_long(), test_nc_get_var1_schar(), test_nc_get_var1_short(), test_nc_get_var1_text(), test_nc_get_var1_uchar(), test_nc_get_vara(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_put_var1(), test_nc_put_var1_double(), test_nc_put_var1_float(), test_nc_put_var1_int(), test_nc_put_var1_long(), test_nc_put_var1_schar(), test_nc_put_var1_short(), test_nc_put_var1_text(), test_nc_put_var1_uchar(), test_nc_put_vara(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), and test_nc_strerror().

#define NC_EMAXATTS   (-44)
 

Definition at line 187 of file netcdf.h.

Referenced by nc_copy_att(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_strerror(), and test_nc_strerror().

#define NC_EMAXDIMS   (-41)
 

Definition at line 184 of file netcdf.h.

Referenced by nc_def_coord_system(), nc_def_dim(), nc_strerror(), read_dataset(), and test_nc_strerror().

#define NC_EMAXNAME   (-53)
 

Definition at line 196 of file netcdf.h.

Referenced by NC_check_name(), nc_rename_att(), nc_rename_var(), nc_strerror(), and test_nc_strerror().

#define NC_EMAXVARS   (-48)
 

Definition at line 191 of file netcdf.h.

Referenced by nc_def_var(), nc_def_var_full(), nc_strerror(), and test_nc_strerror().

#define NC_ENAMEINUSE   (-42)
 

Definition at line 185 of file netcdf.h.

Referenced by nc_def_dim(), nc_def_grp(), nc_def_var(), nc_def_var_full(), nc_rename_att(), nc_rename_dim(), nc_rename_var(), nc_strerror(), test_nc_def_dim(), test_nc_def_var(), test_nc_rename_dim(), test_nc_rename_var(), and test_nc_strerror().

#define NC_ENFILE   (-34)
 

Definition at line 177 of file netcdf.h.

Referenced by nc_strerror(), and test_nc_strerror().

#define NC_ENOMEM   (-61)
 

Definition at line 206 of file netcdf.h.

#define NC_ENORECVARS   (-55)
 

Definition at line 198 of file netcdf.h.

Referenced by nc_strerror(), and test_nc_strerror().

#define NC_ENOTATT   (-43)
 

Definition at line 186 of file netcdf.h.

Referenced by find_nc_att(), get_att_grp(), has_c_format_att(), main(), nc4_find_grp_att(), nc_assign_coord_system(), nc_del_att(), nc_inq_attid(), nc_inq_attname(), NC_lookupattr(), nc_rename_att(), nc_strerror(), ncap_att_init(), nco_inq_att_flg(), nco_inq_attid_flg(), nco_pck_dsk_inq(), pg_att_grpa(), test_nc_copy_att(), test_nc_del_att(), test_nc_get_att(), test_nc_get_att_double(), test_nc_get_att_float(), test_nc_get_att_int(), test_nc_get_att_long(), test_nc_get_att_schar(), test_nc_get_att_short(), test_nc_get_att_text(), test_nc_get_att_uchar(), test_nc_inq_att(), test_nc_inq_attid(), test_nc_inq_attlen(), test_nc_inq_attname(), test_nc_inq_atttype(), test_nc_rename_att(), and test_nc_strerror().

#define NC_ENOTINDEFINE   (-38)
 

Definition at line 181 of file netcdf.h.

Referenced by enddef_netcdf4_file(), main(), nc__enddef(), nc_copy_att(), nc_def_dim(), nc_def_var(), nc_def_var_full(), nc_del_att(), nc_enddef(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_rename_att(), nc_rename_var(), nc_strerror(), set_NC_string(), test_nc_def_dim(), test_nc_def_var(), test_nc_del_att(), test_nc_redef(), test_nc_rename_att(), test_nc_rename_var(), test_nc_strerror(), and test_redef().

#define NC_ENOTNC   (-51)
 

Definition at line 194 of file netcdf.h.

Referenced by nc_get_file_version(), nc_get_NC(), nc_strerror(), test_nc_open(), test_nc_strerror(), and test_ncopen().

#define NC_ENOTVAR   (-49)
 

Definition at line 192 of file netcdf.h.

Referenced by find_grp_var(), find_grp_var_nc(), find_nc_att(), find_var(), find_var_shape_grp(), nc4_find_grp_att(), nc4_put_att(), nc_copy_att(), nc_copy_var(), nc_del_att(), nc_get_var1_double(), nc_get_var1_float(), nc_get_var1_int(), nc_get_var1_long(), nc_get_var1_schar(), nc_get_var1_short(), nc_get_var1_text(), nc_get_var1_uchar(), nc_get_var_double(), nc_get_var_float(), nc_get_var_int(), nc_get_var_long(), nc_get_var_schar(), nc_get_var_short(), nc_get_var_text(), nc_get_var_uchar(), nc_get_vara_double(), nc_get_vara_float(), nc_get_vara_int(), nc_get_vara_long(), nc_get_vara_schar(), nc_get_vara_short(), nc_get_vara_text(), nc_get_vara_uchar(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_inq_attid(), nc_inq_attname(), nc_inq_var(), nc_inq_vardimid(), nc_inq_varid(), nc_inq_varname(), nc_inq_varnatts(), nc_inq_varndims(), nc_inq_vartype(), NC_lookupattr(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_put_var1_double(), nc_put_var1_float(), nc_put_var1_int(), nc_put_var1_long(), nc_put_var1_schar(), nc_put_var1_short(), nc_put_var1_text(), nc_put_var1_uchar(), nc_put_var_double(), nc_put_var_float(), nc_put_var_int(), nc_put_var_long(), nc_put_var_schar(), nc_put_var_short(), nc_put_var_text(), nc_put_var_uchar(), nc_put_vara_double(), nc_put_vara_float(), nc_put_vara_int(), nc_put_vara_long(), nc_put_vara_schar(), nc_put_vara_short(), nc_put_vara_text(), nc_put_vara_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_rename_att(), nc_rename_var(), nc_strerror(), nc_var_par_access(), nco_inq_varid(), nco_inq_varid_flg(), open_var_grp(), pg_att_grpa(), test_nc_copy_att(), test_nc_del_att(), test_nc_get_att(), test_nc_get_att_double(), test_nc_get_att_float(), test_nc_get_att_int(), test_nc_get_att_long(), test_nc_get_att_schar(), test_nc_get_att_short(), test_nc_get_att_text(), test_nc_get_att_uchar(), test_nc_get_var1(), test_nc_get_var1_double(), test_nc_get_var1_float(), test_nc_get_var1_int(), test_nc_get_var1_long(), test_nc_get_var1_schar(), test_nc_get_var1_short(), test_nc_get_var1_text(), test_nc_get_var1_uchar(), test_nc_get_var_double(), test_nc_get_var_float(), test_nc_get_var_int(), test_nc_get_var_long(), test_nc_get_var_schar(), test_nc_get_var_short(), test_nc_get_var_text(), test_nc_get_var_uchar(), test_nc_get_vara(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_inq_att(), test_nc_inq_attid(), test_nc_inq_attlen(), test_nc_inq_attname(), test_nc_inq_atttype(), test_nc_inq_var(), test_nc_inq_vardimid(), test_nc_inq_varid(), test_nc_inq_varname(), test_nc_inq_varnatts(), test_nc_inq_varndims(), test_nc_inq_vartype(), test_nc_put_att(), test_nc_put_att_double(), test_nc_put_att_float(), test_nc_put_att_int(), test_nc_put_att_long(), test_nc_put_att_schar(), test_nc_put_att_short(), test_nc_put_att_text(), test_nc_put_att_uchar(), test_nc_put_var1(), test_nc_put_var1_double(), test_nc_put_var1_float(), test_nc_put_var1_int(), test_nc_put_var1_long(), test_nc_put_var1_schar(), test_nc_put_var1_short(), test_nc_put_var1_text(), test_nc_put_var1_uchar(), test_nc_put_var_double(), test_nc_put_var_float(), test_nc_put_var_int(), test_nc_put_var_long(), test_nc_put_var_schar(), test_nc_put_var_short(), test_nc_put_var_text(), test_nc_put_var_uchar(), test_nc_put_vara(), test_nc_put_vara_double(), test_nc_put_vara_float(), test_nc_put_vara_int(), test_nc_put_vara_long(), test_nc_put_vara_schar(), test_nc_put_vara_short(), test_nc_put_vara_text(), test_nc_put_vara_uchar(), test_nc_put_varm(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), test_nc_rename_att(), test_nc_rename_var(), and test_nc_strerror().

#define NC_ENTOOL   NC_EMAXNAME
 

Definition at line 980 of file netcdf.h.

#define NC_EPERM   (-37)
 

Definition at line 180 of file netcdf.h.

Referenced by nc4_put_att(), nc_copy_att(), nc_copy_var(), nc_def_dim(), nc_def_var_full(), nc_del_att(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_put_var1_double(), nc_put_var1_float(), nc_put_var1_int(), nc_put_var1_long(), nc_put_var1_schar(), nc_put_var1_short(), nc_put_var1_text(), nc_put_var1_uchar(), nc_put_var_double(), nc_put_var_float(), nc_put_var_int(), nc_put_var_long(), nc_put_var_schar(), nc_put_var_short(), nc_put_var_text(), nc_put_var_uchar(), nc_put_vara_double(), nc_put_vara_float(), nc_put_vara_int(), nc_put_vara_long(), nc_put_vara_schar(), nc_put_vara_short(), nc_put_vara_text(), nc_put_vara_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_redef(), nc_rename_att(), nc_rename_dim(), nc_rename_var(), nc_set_fill(), nc_strerror(), pg_att_grpa(), pg_vara(), pg_varm(), test_nc_open(), test_nc_redef(), test_nc_set_fill(), test_nc_strerror(), and test_redef().

#define NC_ERANGE   (-60)
 

Definition at line 205 of file netcdf.h.

#define NC_ESTRIDE   (-58)
 

Definition at line 201 of file netcdf.h.

Referenced by nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_strerror(), pg_varm(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_put_varm(), test_nc_put_varm_double(), test_nc_put_varm_float(), test_nc_put_varm_int(), test_nc_put_varm_long(), test_nc_put_varm_schar(), test_nc_put_varm_short(), test_nc_put_varm_text(), test_nc_put_varm_uchar(), test_nc_put_vars(), test_nc_put_vars_double(), test_nc_put_vars_float(), test_nc_put_vars_int(), test_nc_put_vars_long(), test_nc_put_vars_schar(), test_nc_put_vars_short(), test_nc_put_vars_text(), test_nc_put_vars_uchar(), and test_nc_strerror().

#define NC_ESTS   (-52)
 

Definition at line 195 of file netcdf.h.

Referenced by FCALLSCSUB5(), FCALLSCSUB6(), nc_strerror(), and test_nc_strerror().

#define NC_ETRUNC   (-64)
 

Definition at line 211 of file netcdf.h.

Referenced by nc_strerror().

#define NC_EUNLIMIT   (-54)
 

Definition at line 197 of file netcdf.h.

Referenced by nc_def_dim(), nc_strerror(), test_nc_def_dim(), and test_nc_strerror().

#define NC_EUNLIMPOS   (-47)
 

Definition at line 190 of file netcdf.h.

Referenced by nc_strerror(), NC_var_shape(), and test_nc_strerror().

#define NC_EVARSIZE   (-62)
 

Definition at line 208 of file netcdf.h.

Referenced by NC_begins(), NC_check_vlens(), nc_strerror(), and test_nc_strerror().

#define NC_EXDR   (-32)
 

Definition at line 981 of file netcdf.h.

#define NC_FATAL   1
 

Definition at line 996 of file netcdf.h.

Referenced by main(), nc_advise(), off_errs(), and on_errs().

#define NC_FILL   0
 

Definition at line 81 of file netcdf.h.

Referenced by nc_set_fill(), and test_nc_set_fill().

#define NC_FILL_BYTE   ((signed char)-127)
 

Definition at line 65 of file netcdf.h.

Referenced by get_fill_value(), NC_fill_schar(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), and test_nc_set_fill().

#define NC_FILL_CHAR   ((char)0)
 

Definition at line 66 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), get_fill_value(), NC_fill_char(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), and test_nc_set_fill().

#define NC_FILL_DOUBLE   (9.9692099683868690e+36)
 

Definition at line 70 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), get_fill_value(), NC_fill_double(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), test_nc_set_fill(), and yyparse().

#define NC_FILL_FLOAT   (9.9692099683868690e+36f)
 

Definition at line 69 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), get_fill_value(), NC_fill_float(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), test_nc_set_fill(), and yyparse().

#define NC_FILL_INT   (-2147483647L)
 

Definition at line 68 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), get_fill_value(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), and test_nc_set_fill().

#define NC_FILL_SHORT   ((short)-32767)
 

Definition at line 67 of file netcdf.h.

Referenced by do_ncdump_rec(), do_ncdumpx(), get_fill_value(), NC_fill_short(), nc_getfill(), nco_mss_val_mk(), nco_var_pck(), and test_nc_set_fill().

#define NC_FORMAT_64BIT   (2)
 

Definition at line 114 of file netcdf.h.

#define NC_FORMAT_CLASSIC   (1)
 

Definition at line 113 of file netcdf.h.

#define NC_FORMAT_NETCDF4   (3)
 

Definition at line 115 of file netcdf.h.

#define NC_FORMAT_NETCDF4_CLASSIC   (4)
 

Definition at line 116 of file netcdf.h.

#define NC_GEOX   3
 

Definition at line 143 of file netcdf.h.

#define NC_GEOY   4
 

Definition at line 144 of file netcdf.h.

#define NC_GEOZ   5
 

Definition at line 145 of file netcdf.h.

#define NC_GLOBAL   -1
 

Definition at line 137 of file netcdf.h.

Referenced by add_att(), copy_dataset(), del_att(), do_ncdump_rec(), do_ncdumpx(), find_nc_att(), gen_netcdf(), get_locid(), NcAtt::is_valid(), main(), nc4_find_grp_att(), nc4_put_att(), NC_attrarray0(), nc_del_att(), nc_inq_var(), nc_inq_varnatts(), NC_lookupvar(), nc_rename_att(), ncap_att_init(), nco_aed_prc(), nco_att_cpy(), nco_cnv_ccm_ccsm_cf_inq(), nco_fl_lst_att_cat(), nco_hst_att_cat(), nco_mpi_att_cat(), nco_prn_att(), nco_thr_att_cat(), pg_att_grpa(), pr_attx(), read_grp_atts(), rec_write_metadata(), test_nc_copy_att(), test_nc_inq(), test_nc_redef(), test_nc_set_default_format(), test_ncabort(), test_ncattcopy(), test_ncattdel(), test_ncattinq(), test_ncattname(), test_ncattput(), test_ncattrename(), test_ncopen(), test_pio_attr(), test_redef(), and yyparse().

#define NC_HEIGHT_DOWN   7
 

Definition at line 147 of file netcdf.h.

Referenced by nc_def_axis_type(), nc_inq_axis_type(), and test_transform_assign().

#define NC_HEIGHT_UP   6
 

Definition at line 146 of file netcdf.h.

Referenced by nc_def_axis_type(), nc_inq_axis_type(), and test_axis().

#define NC_ISSYSERR err   )     ((err) > 0)
 

Definition at line 171 of file netcdf.h.

Referenced by nc_advise(), nc_strerror(), and test_nc_open().

#define NC_LATITUDE   1
 

Definition at line 141 of file netcdf.h.

Referenced by test_transform_assign().

#define NC_LOCK   0x0400
 

Definition at line 107 of file netcdf.h.

Referenced by nc_create_file(), and nc_open_file().

#define NC_LONG   NC_INT
 

Definition at line 973 of file netcdf.h.

Referenced by data_type_convert(), errvar(), test_ncattcopy(), test_ncattget(), test_ncattput(), test_ncendef(), test_ncinquire(), test_ncredef(), test_nctypelen(), test_ncvardef(), test_slabs(), test_varputget1(), val_cmp(), val_diff(), val_fill(), val_fill_zero(), val_out(), and val_stuff().

#define NC_LONGITUDE   2
 

Definition at line 142 of file netcdf.h.

Referenced by test_axis(), and test_transform_assign().

#define NC_MAX_ATTRS   8192
 

Definition at line 160 of file netcdf.h.

Referenced by main(), nc_copy_att(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), and nc_put_att_uchar().

#define NC_MAX_DIMS   1024
 

Definition at line 159 of file netcdf.h.

Referenced by commit_type(), do_ncdump_rec(), do_ncdumpx(), find_dim_len(), main(), nc_copy_var(), nc_def_coord_system(), nc_def_dim(), nc_inq_coord_system(), ncap_var_stretch(), nco_dmn_lst_ass_var(), nco_var_avg(), nco_var_cnf_dmn(), nco_var_dfn(), nco_var_dmn_rdr_mtd(), nco_var_dmn_rdr_val(), nco_var_lst_ass_crd_add(), pg_var(), pg_var1(), pg_vara(), pg_varm(), read_dataset(), read_type(), rec_scan_group(), vardata(), and vardatax().

#define NC_MAX_NAME   256
 

Definition at line 162 of file netcdf.h.

Referenced by alien_visitor(), alien_visitor2(), check_atts(), check_dims(), check_file(), check_vars(), check_vars_double(), check_vars_float(), check_vars_int(), check_vars_long(), check_vars_schar(), check_vars_short(), check_vars_text(), check_vars_uchar(), copy_dataset(), do_ncdump_rec(), gen_fortran(), iscoordvar(), main(), nc4_put_att_tc(), nc_abort(), nc_assign_coord_system(), nc_assign_transform(), NC_check_name(), nc_copy_var(), nc_def_axis_type(), nc_def_coord_system(), nc_def_dim(), nc_def_var_full(), nc_inq_axis_type(), nc_inq_coord_system(), nc_inq_dimid(), nc_rename_att(), nc_rename_dim(), nc_rename_var(), ncap_var_init(), nco_aed_prc(), nco_att_cpy(), nco_att_lst_mk(), nco_cpy_var_dfn(), nco_cpy_var_dfn_lmt(), nco_cpy_var_val_lmt(), nco_dmn_lst(), nco_dmn_lst_ass_var(), nco_hst_att_cat(), nco_inq_attname(), nco_inq_dim(), nco_inq_var(), nco_inq_varname(), nco_lmt_sct_mk(), nco_mss_val_get(), nco_nm_id_lst_crd_make(), nco_prn_att(), nco_prn_var_dfn(), nco_prn_var_val_lmt(), nco_prs_att(), nco_var_fll(), nco_var_lst_add_crd(), nco_var_lst_ass_crd_add(), nco_var_lst_crd_xcl(), nco_var_lst_mk(), nco_var_lst_mk_old(), nco_var_lst_xcl(), read_grp_atts(), read_scale(), read_type(), rec_scan_group(), rec_write_metadata(), test_axis(), test_nc_def_var(), test_nc_inq_attname(), test_nc_inq_dim(), test_nc_inq_dimname(), test_nc_inq_var(), test_nc_inq_varname(), test_nc_redef(), test_nc_rename_att(), test_nc_rename_dim(), test_nc_rename_var(), test_redef(), test_system(), test_system_assign(), test_transform(), test_transform_assign(), and testdims().

#define NC_MAX_VAR_DIMS   NC_MAX_DIMS
 

Definition at line 163 of file netcdf.h.

Referenced by f2c_v2imap(), load_netcdf(), odo1(), and yyparse().

#define NC_MAX_VARS   8192
 

Definition at line 161 of file netcdf.h.

Referenced by main(), nc_def_var(), nc_def_var_full(), nco_var_lst_dvd(), nco_var_lst_mrg(), and ncrecinq().

#define NC_NOAXISTYPE   0
 

Definition at line 140 of file netcdf.h.

Referenced by nc_inq_axis_type().

#define NC_NOCLOBBER   0x4
 

Definition at line 94 of file netcdf.h.

Referenced by FCALLSCSUB1(), main(), nc4_create_file(), nc_create_file(), NcFile::NcFile(), ncio_create(), nco_create_mode_mrg(), nco_fl_out_open(), test_nc_abort(), test_nc_close(), test_nc_copy_att(), test_nc_create(), test_nc_def_var(), test_nc_del_att(), test_nc_inq(), test_nc_open(), test_nc_put_att(), test_nc_put_att_double(), test_nc_put_att_float(), test_nc_put_att_int(), test_nc_put_att_long(), test_nc_put_att_schar(), test_nc_put_att_short(), test_nc_put_att_text(), test_nc_put_att_uchar(), test_nc_put_var1(), test_nc_put_vara(), test_nc_put_varm(), test_nc_put_vars(), test_nc_redef(), test_nc_rename_att(), test_nc_rename_dim(), test_nc_rename_var(), test_nc_set_fill(), test_nc_sync(), and test_nccreate().

#define NC_NOERR   0
 

Definition at line 173 of file netcdf.h.

Referenced by add_user_type(), arm_inq(), arm_time_mk(), att_list_add(), check_err(), close_netcdf4_file(), commit_type(), convert_type(), copy_dataset(), createtestdims(), createtestvars(), data_type_convert(), delete_hdf5_att(), dim_list_add(), dimsizes(), do_ncdump(), do_ncdump_rec(), do_ncdumpx(), dup_NC(), dup_NC_attrarrayV(), dup_NC_dimarrayV(), dup_NC_var(), dup_NC_vararrayV(), f2c_v2imap(), field_list_add(), file_list_add(), fill_added(), fill_added_recs(), fill_NC_var(), fill_seq(), fillerup(), find_dim(), find_dim_len(), find_grp_h5(), find_grp_var(), find_grp_var_nc(), find_nc4_file(), find_nc4_grp(), find_nc_att(), find_nc_grp_h5(), find_type(), find_var(), find_var_shape_grp(), get_att_grp(), get_fill_value(), get_hdf_typeid(), get_locid(), get_netcdf_type(), getNCvx_char_char(), getNCvx_double_double(), getNCvx_double_float(), getNCvx_double_int(), getNCvx_double_long(), getNCvx_double_schar(), getNCvx_double_short(), getNCvx_double_uchar(), getNCvx_float_double(), getNCvx_float_float(), getNCvx_float_int(), getNCvx_float_long(), getNCvx_float_schar(), getNCvx_float_short(), getNCvx_float_uchar(), getNCvx_int_double(), getNCvx_int_float(), getNCvx_int_int(), getNCvx_int_long(), getNCvx_int_schar(), getNCvx_int_short(), getNCvx_int_uchar(), getNCvx_schar_double(), getNCvx_schar_float(), getNCvx_schar_int(), getNCvx_schar_long(), getNCvx_schar_schar(), getNCvx_schar_short(), getNCvx_schar_uchar(), getNCvx_short_double(), getNCvx_short_float(), getNCvx_short_int(), getNCvx_short_long(), getNCvx_short_schar(), getNCvx_short_short(), getNCvx_short_uchar(), has_c_format_att(), incr_NC_attrarray(), incr_NC_dimarray(), incr_NC_vararray(), load_netcdf(), main(), move_recs_r(), move_vars_r(), nc4_create_file(), nc4_enum_member_add(), nc4_find_grp_att(), nc4_get_att(), nc4_get_typelen_mem(), nc4_grp_list_add(), nc4_open_file(), nc4_put_att(), nc4_type_list_add(), nc4_var_list_add(), nc__create_mp(), nc__enddef(), nc__open_mp(), nc_abort(), nc_advise(), nc_assign_coord_system(), nc_assign_transform(), NC_begins(), NC_calcsize(), nc_check_for_hdf5(), NC_check_id(), NC_check_name(), NC_check_vlens(), nc_cktype(), nc_close(), nc_copy_att(), nc_copy_var(), nc_def_axis_type(), nc_def_coord_system(), nc_def_dim(), nc_def_grp(), nc_def_transform(), nc_def_var(), nc_del_att(), nc_delete_mp(), nc_enddef(), NC_endef(), nc_get_att(), nc_get_att_double(), nc_get_att_float(), nc_get_att_int(), nc_get_att_long(), nc_get_att_opaque(), nc_get_att_schar(), nc_get_att_short(), nc_get_att_text(), nc_get_att_uchar(), nc_get_file_version(), nc_get_rec(), nc_get_var1(), nc_get_var1_double(), nc_get_var1_float(), nc_get_var1_int(), nc_get_var1_long(), nc_get_var1_schar(), nc_get_var1_short(), nc_get_var1_text(), nc_get_var1_uchar(), nc_get_var_double(), nc_get_var_float(), nc_get_var_int(), nc_get_var_long(), nc_get_var_schar(), nc_get_var_short(), nc_get_var_text(), nc_get_var_uchar(), nc_get_vara(), nc_get_vara_double(), nc_get_vara_float(), nc_get_vara_int(), nc_get_vara_long(), nc_get_vara_schar(), nc_get_vara_short(), nc_get_vara_text(), nc_get_vara_uchar(), nc_get_varm(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_inq(), nc_inq_att(), nc_inq_attid(), nc_inq_attlen(), nc_inq_attname(), nc_inq_atttype(), nc_inq_axis_type(), nc_inq_base_pe(), nc_inq_compound(), nc_inq_compound_field(), nc_inq_compound_fieldindex(), nc_inq_coord_system(), nc_inq_dim(), nc_inq_dimid(), nc_inq_dimids(), nc_inq_dimlen(), nc_inq_dimname(), nc_inq_enum(), nc_inq_enum_member(), nc_inq_format(), nc_inq_grpname(), nc_inq_grps(), nc_inq_natts(), nc_inq_ncid(), nc_inq_ndims(), nc_inq_nvars(), nc_inq_opaque(), nc_inq_rec(), nc_inq_transform(), nc_inq_type(), nc_inq_typeids(), nc_inq_unlimdim(), nc_inq_unlimdims(), nc_inq_user_type(), nc_inq_var(), nc_inq_vardimid(), nc_inq_varid(), nc_inq_varids(), nc_inq_varname(), nc_inq_varnatts(), nc_inq_varndims(), nc_inq_vartype(), nc_inq_vlen(), nc_insert_array_compound(), nc_insert_enum(), NC_lookupattr(), nc_put_att_double(), nc_put_att_float(), nc_put_att_int(), nc_put_att_long(), nc_put_att_opaque(), nc_put_att_schar(), nc_put_att_short(), nc_put_att_text(), nc_put_att_uchar(), nc_put_rec(), nc_put_var1(), nc_put_var1_double(), nc_put_var1_float(), nc_put_var1_int(), nc_put_var1_long(), nc_put_var1_schar(), nc_put_var1_short(), nc_put_var1_text(), nc_put_var1_uchar(), nc_put_var_double(), nc_put_var_float(), nc_put_var_int(), nc_put_var_long(), nc_put_var_schar(), nc_put_var_short(), nc_put_var_text(), nc_put_var_uchar(), nc_put_vara(), nc_put_vara_double(), nc_put_vara_float(), nc_put_vara_int(), nc_put_vara_long(), nc_put_vara_schar(), nc_put_vara_short(), nc_put_vara_text(), nc_put_vara_uchar(), nc_put_varm(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), nc_redef(), nc_rename_att(), nc_rename_dim(), nc_rename_var(), nc_set_base_pe(), nc_set_default_format(), nc_set_fill(), nc_strerror(), nc_sync(), NC_sync(), nc_var_par_access(), NC_var_shape(), ncabort(), ncap_att_init(), ncap_var_init(), ncap_var_write(), ncattcopy(), ncattdel(), ncattget(), ncattinq(), ncattname(), ncattput(), ncattrename(), ncclose(), NCcoordck(), nccreate(), ncdimdef(), ncdimid(), ncdiminq(), ncdimrename(), NCedgeck(), ncendef(), NcFile::NcFile(), NCfillrecord(), ncinquire(), ncio_pad_length(), nco__enddef(), nco_abort(), nco_aed_prc(), nco_arm_time_install(), nco_att_cpy(), nco_att_lst_mk(), nco_close(), nco_cnv_ccm_ccsm_cf_date(), nco_cnv_ccm_ccsm_cf_inq(), nco_copy_att(), nco_copy_var(), nco_cpy_var_dfn(), nco_cpy_var_dfn_lmt(), nco_create(), nco_create_mode_prs(), nco_def_dim(), nco_def_var(), nco_del_att(), nco_dmn_dfn(), nco_dmn_fll(), nco_enddef(), nco_err_exit(), nco_fl_mk_lcl(), nco_fl_out_cls(), nco_get_att(), nco_get_var(), nco_get_var1(), nco_get_vara(), nco_get_varm(), nco_inq(), nco_inq_att(), nco_inq_att_flg(), nco_inq_attid(), nco_inq_attid_flg(), nco_inq_attlen(), nco_inq_attname(), nco_inq_atttype(), nco_inq_dim(), nco_inq_dim_flg(), nco_inq_dimid(), nco_inq_dimid_flg(), nco_inq_dimlen(), nco_inq_dimname(), nco_inq_natts(), nco_inq_ndims(), nco_inq_nvars(), nco_inq_unlimdim(), nco_inq_var(), nco_inq_vardimid(), nco_inq_varid(), nco_inq_varid_flg(), nco_inq_varname(), nco_inq_varnatts(), nco_inq_varndims(), nco_inq_vartype(), nco_lmt_evl(), nco_lmt_udu_cnv(), nco_msa_prn_var_val(), nco_nm_id_lst_crd_make(), nco_open(), nco_prn_var_dfn(), nco_prn_var_val_lmt(), nco_put_att(), nco_put_var(), nco_put_var1(), nco_put_vara(), nco_put_varm(), nco_redef(), nco_rename_att(), nco_rename_dim(), nco_rename_var(), nco_set_fill(), nco_sync(), nco_var_dfn(), nco_var_lst_add_crd(), nco_var_lst_ass_crd_add(), nco_var_lst_crd_xcl(), nco_var_lst_mk_old(), ncopen(), ncrecget(), ncrecinq(), ncrecput(), ncrecsize(), ncredef(), ncsetfill(), ncsync(), ncvardef(), ncvarget(), ncvarget1(), ncvargetg(), ncvargets(), ncvarid(), ncvarinq(), ncvarput(), ncvarput1(), ncvarputg(), ncvarputs(), ncvarrename(), NCvnrecs(), NCxvarcpy(), numrecvars(), open_var_grp(), pg_att_grpa(), pg_vara(), pg_varm(), putNCvx_char_char(), putNCvx_double_double(), putNCvx_double_float(), putNCvx_double_int(), putNCvx_double_long(), putNCvx_double_schar(), putNCvx_double_short(), putNCvx_double_uchar(), putNCvx_float_double(), putNCvx_float_float(), putNCvx_float_int(), putNCvx_float_long(), putNCvx_float_schar(), putNCvx_float_short(), putNCvx_float_uchar(), putNCvx_int_double(), putNCvx_int_float(), putNCvx_int_int(), putNCvx_int_long(), putNCvx_int_schar(), putNCvx_int_short(), putNCvx_int_uchar(), putNCvx_schar_double(), putNCvx_schar_float(), putNCvx_schar_int(), putNCvx_schar_long(), putNCvx_schar_schar(), putNCvx_schar_short(), putNCvx_schar_uchar(), putNCvx_short_double(), putNCvx_short_float(), putNCvx_short_int(), putNCvx_short_long(), putNCvx_short_schar(), putNCvx_short_short(), putNCvx_short_uchar(), read_dataset(), read_grp_atts(), read_NC(), read_numrecs(), read_scale(), read_type(), read_var(), rec_detach_scales(), rec_grp_del(), rec_match_dimscales(), rec_match_types(), rec_read_metadata(), rec_reattach_scales(), rec_write_metadata(), set_NC_string(), test_nc_open(), test_nc_strerror(), test_pio(), test_pio_attr(), test_pio_hyper(), testdims(), type_list_del(), var_create_dataset(), write_NC(), write_nc3_strict_att(), and write_numrecs().

#define NC_NOFILL   0x100
 

Definition at line 82 of file netcdf.h.

Referenced by gen_netcdf(), main(), nc_set_fill(), test_nc_redef(), and test_nc_set_fill().

#define NC_NOWRITE   0
 

Definition at line 87 of file netcdf.h.

Referenced by check_file(), check_vars_double(), check_vars_float(), check_vars_int(), check_vars_long(), check_vars_schar(), check_vars_short(), check_vars_text(), check_vars_uchar(), do_ncdump(), do_ncdumpx(), FCALLSCFUN3(), main(), nc4_open_file(), nc_delete_mp(), NcFile::NcFile(), nco_fl_mk_lcl(), test_axis(), test_nc_abort(), test_nc_close(), test_nc_copy_att(), test_nc_create(), test_nc_get_att(), test_nc_get_att_double(), test_nc_get_att_float(), test_nc_get_att_int(), test_nc_get_att_long(), test_nc_get_att_schar(), test_nc_get_att_short(), test_nc_get_att_text(), test_nc_get_att_uchar(), test_nc_get_var1(), test_nc_get_var1_double(), test_nc_get_var1_float(), test_nc_get_var1_int(), test_nc_get_var1_long(), test_nc_get_var1_schar(), test_nc_get_var1_short(), test_nc_get_var1_text(), test_nc_get_var1_uchar(), test_nc_get_var_double(), test_nc_get_var_float(), test_nc_get_var_int(), test_nc_get_var_long(), test_nc_get_var_schar(), test_nc_get_var_short(), test_nc_get_var_text(), test_nc_get_var_uchar(), test_nc_get_vara(), test_nc_get_vara_double(), test_nc_get_vara_float(), test_nc_get_vara_int(), test_nc_get_vara_long(), test_nc_get_vara_schar(), test_nc_get_vara_short(), test_nc_get_vara_text(), test_nc_get_vara_uchar(), test_nc_get_varm(), test_nc_get_varm_double(), test_nc_get_varm_float(), test_nc_get_varm_int(), test_nc_get_varm_long(), test_nc_get_varm_schar(), test_nc_get_varm_short(), test_nc_get_varm_text(), test_nc_get_varm_uchar(), test_nc_get_vars(), test_nc_get_vars_double(), test_nc_get_vars_float(), test_nc_get_vars_int(), test_nc_get_vars_long(), test_nc_get_vars_schar(), test_nc_get_vars_short(), test_nc_get_vars_text(), test_nc_get_vars_uchar(), test_nc_inq(), test_nc_inq_att(), test_nc_inq_attid(), test_nc_inq_attlen(), test_nc_inq_attname(), test_nc_inq_atttype(), test_nc_inq_dim(), test_nc_inq_dimid(), test_nc_inq_dimlen(), test_nc_inq_dimname(), test_nc_inq_natts(), test_nc_inq_ndims(), test_nc_inq_nvars(), test_nc_inq_unlimdim(), test_nc_inq_var(), test_nc_inq_vardimid(), test_nc_inq_varid(), test_nc_inq_varname(), test_nc_inq_varnatts(), test_nc_inq_varndims(), test_nc_inq_vartype(), test_nc_open(), test_nc_redef(), test_nc_set_fill(), test_nc_sync(), test_ncabort(), test_nccreate(), test_ncopen(), test_ncsync(), test_redef(), test_system(), test_system_assign(), test_transform(), and test_transform_assign().

#define NC_PRESSURE   8
 

Definition at line 148 of file netcdf.h.

#define NC_RADAZ   10
 

Definition at line 150 of file netcdf.h.

#define NC_RADDIST   12
 

Definition at line 152 of file netcdf.h.

Referenced by nc_def_axis_type(), and nc_inq_axis_type().

#define NC_RADEL   11
 

Definition at line 151 of file netcdf.h.

#define NC_SHARE   0x0800
 

Definition at line 100 of file netcdf.h.

Referenced by main(), nc__create_mp(), nc__open_mp(), nc_create_file(), nc_open_file(), nc_redef(), ncio_create(), ncio_new(), and ncio_open().

#define NC_SIZEHINT_DEFAULT   0
 

Definition at line 122 of file netcdf.h.

Referenced by new_NC().

#define NC_STRICT_NC3   (0x8)
 

Definition at line 101 of file netcdf.h.

#define NC_SYSERR   (-31)
 

Definition at line 982 of file netcdf.h.

Referenced by nc_advise(), and test_ncopen().

#define NC_TIME   9
 

Definition at line 149 of file netcdf.h.

Referenced by test_transform_assign().

#define NC_UNLIMITED   0L
 

Definition at line 132 of file netcdf.h.

Referenced by add_dim(), NcFile::add_dim(), cl_fortran(), copy_dataset(), def_dims(), find_NC_Udim(), gen_c(), gen_fortran(), main(), nc_def_dim(), nc_inq_dim(), nc_inq_dimlen(), NC_var_shape(), nco_cpy_var_dfn(), nco_cpy_var_dfn_lmt(), nco_dmn_dfn(), test_nc_def_dim(), test_ncdimdef(), test_ncinquire(), test_pio(), test_system_assign(), test_transform_assign(), test_varputget(), test_varputget1(), and yyparse().

#define NC_VERBOSE   2
 

Definition at line 997 of file netcdf.h.

Referenced by main(), nc_advise(), off_errs(), and on_errs().

#define NC_WRITE   0x1
 

Definition at line 88 of file netcdf.h.

Referenced by FCALLSCFUN3(), main(), nc4_create_file(), nc4_open_file(), nc_open_file(), NcFile::NcFile(), ncio_create(), ncio_open(), ncio_pad_length(), ncio_px_get(), ncio_px_move(), ncio_px_rel(), ncio_spx_get(), ncio_spx_rel(), nco_fl_out_open(), test_nc_copy_att(), test_nc_del_att(), test_nc_open(), test_nc_redef(), test_nc_rename_att(), test_ncabort(), test_ncattcopy(), test_ncattdel(), test_ncattget(), test_ncattinq(), test_ncattname(), test_ncattput(), test_ncattrename(), test_ncclose(), test_ncdimdef(), test_ncdimid(), test_ncdiminq(), test_ncdimrename(), test_ncendef(), test_ncinquire(), test_ncopen(), test_ncrecget(), test_ncrecinq(), test_ncrecput(), test_ncredef(), test_ncsync(), test_ncvardef(), test_ncvarget(), test_ncvarget1(), test_ncvargetg(), test_ncvarid(), test_ncvarinq(), test_ncvarput(), test_ncvarput1(), test_ncvarputg(), test_ncvarrename(), and test_redef().

#define ncvarcpy ncid_in,
varid,
ncid_out   )     ncvarcopy((ncid_in), (varid), (ncid_out))
 

Definition at line 502 of file netcdf.h.


Typedef Documentation

typedef int nclong
 

Definition at line 1010 of file netcdf.h.


Enumeration Type Documentation

enum nc_type
 

Enumerator:
NC_NAT 
NC_BYTE 
NC_CHAR 
NC_SHORT 
NC_INT 
NC_FLOAT 
NC_DOUBLE 

Definition at line 48 of file netcdf.h.

00048              {
00049         NC_NAT =        0,      /* NAT = 'Not A Type' (c.f. NaN) */
00050         NC_BYTE =       1,      /* signed 1 byte integer */
00051         NC_CHAR =       2,      /* ISO/ASCII character */
00052         NC_SHORT =      3,      /* signed 2 byte integer */
00053         NC_INT =        4,      /* signed 4 byte integer */
00054         NC_FLOAT =      5,      /* single precision floating point number */
00055         NC_DOUBLE =     6       /* double precision floating point number */
00056 } nc_type;


Function Documentation

EXTERNL int nc__create const char *  path,
int  cmode,
size_t  initialsz,
size_t *  chunksizehintp,
int *  ncidp
 

Definition at line 900 of file nc.c.

00902 {
00903         return nc__create_mp(path, ioflags, initialsz, 0,
00904                 chunksizehintp, ncid_ptr);
00905 }

EXTERNL int nc__create_mp const char *  path,
int  cmode,
size_t  initialsz,
int  basepe,
size_t *  chunksizehintp,
int *  ncidp
 

Definition at line 908 of file nc.c.

00910 {
00911         NC *ncp;
00912         int status;
00913         void *xp = NULL;
00914         int sizeof_off_t = 0;
00915 
00916 #if ALWAYS_NC_SHARE /* DEBUG */
00917         fSet(ioflags, NC_SHARE);
00918 #endif
00919 
00920         ncp = new_NC(chunksizehintp);
00921         if(ncp == NULL)
00922                 return NC_ENOMEM;
00923 
00924 #if defined(LOCKNUMREC) /* && _CRAYMPP */
00925         if (status = NC_init_pe(ncp, basepe)) {
00926                 return status;
00927         }
00928 #else
00929         /*
00930          * !_CRAYMPP, only pe 0 is valid
00931          */
00932         if(basepe != 0)
00933                 return NC_EINVAL;
00934 #endif
00935 
00936         assert(ncp->flags == 0);
00937 
00938         /* Apply default create format. */
00939         if (default_create_format == NC_FORMAT_64BIT)
00940           ioflags |= NC_64BIT_OFFSET;
00941 
00942         if (fIsSet(ioflags, NC_64BIT_OFFSET)) {
00943           fSet(ncp->flags, NC_64BIT_OFFSET);
00944           sizeof_off_t = 8;
00945         } else {
00946           sizeof_off_t = 4;
00947         }
00948 
00949         assert(ncp->xsz == ncx_len_NC(ncp,sizeof_off_t));
00950         
00951         status = ncio_create(path, ioflags,
00952                 initialsz,
00953                 0, ncp->xsz, &ncp->chunk,
00954                 &ncp->nciop, &xp);
00955         if(status != NC_NOERR)
00956         {
00957                 /* translate error status */
00958                 if(status == EEXIST)
00959                         status = NC_EEXIST;
00960                 goto unwind_alloc;
00961         }
00962 
00963         fSet(ncp->flags, NC_CREAT);
00964 
00965         if(fIsSet(ncp->nciop->ioflags, NC_SHARE))
00966         {
00967                 /*
00968                  * NC_SHARE implies sync up the number of records as well.
00969                  * (File format version one.)
00970                  * Note that other header changes are not shared
00971                  * automatically.  Some sort of IPC (external to this package)
00972                  * would be used to trigger a call to nc_sync().
00973                  */
00974                 fSet(ncp->flags, NC_NSYNC);
00975         }
00976 
00977         status = ncx_put_NC(ncp, &xp, sizeof_off_t, ncp->xsz);
00978         if(status != NC_NOERR)
00979                 goto unwind_ioc;
00980 
00981         add_to_NCList(ncp);
00982 
00983         if(chunksizehintp != NULL)
00984                 *chunksizehintp = ncp->chunk;
00985         *ncid_ptr = ncp->nciop->fd;
00986         return NC_NOERR;
00987 
00988 unwind_ioc:
00989         (void) ncio_close(ncp->nciop, 1); /* N.B.: unlink */
00990         ncp->nciop = NULL;
00991         /*FALLTHRU*/
00992 unwind_alloc:
00993         free_NC(ncp);
00994         return status;
00995 }

EXTERNL int nc__enddef int  ncid,
size_t  h_minfree,
size_t  v_align,
size_t  v_minfree,
size_t  r_align
 

Definition at line 1111 of file nc.c.

01114 {
01115         int status;
01116         NC *ncp;
01117 
01118         status = NC_check_id(ncid, &ncp); 
01119         if(status != NC_NOERR)
01120                 return status;
01121 
01122         if(!NC_indef(ncp))
01123                 return(NC_ENOTINDEFINE);
01124 
01125         return (NC_endef(ncp, h_minfree, v_align, v_minfree, r_align));
01126 }

EXTERNL int nc__open const char *  path,
int  mode,
size_t *  chunksizehintp,
int *  ncidp
 

Definition at line 1029 of file nc.c.

01031 {
01032         return nc__open_mp(path, ioflags, 0,
01033                 chunksizehintp, ncid_ptr);
01034 }

EXTERNL int nc__open_mp const char *  path,
int  mode,
int  basepe,
size_t *  chunksizehintp,
int *  ncidp
 

Definition at line 1037 of file nc.c.

01039 {
01040         NC *ncp;
01041         int status;
01042 
01043 #if ALWAYS_NC_SHARE /* DEBUG */
01044         fSet(ioflags, NC_SHARE);
01045 #endif
01046 
01047         ncp = new_NC(chunksizehintp);
01048         if(ncp == NULL)
01049                 return NC_ENOMEM;
01050 
01051 #if defined(LOCKNUMREC) /* && _CRAYMPP */
01052         if (status = NC_init_pe(ncp, basepe)) {
01053                 return status;
01054         }
01055 #else
01056         /*
01057          * !_CRAYMPP, only pe 0 is valid
01058          */
01059         if(basepe != 0)
01060                 return NC_EINVAL;
01061 #endif
01062 
01063         status = ncio_open(path, ioflags,
01064                 0, 0, &ncp->chunk,
01065                 &ncp->nciop, 0);
01066         if(status)
01067                 goto unwind_alloc;
01068 
01069         assert(ncp->flags == 0);
01070 
01071         if(fIsSet(ncp->nciop->ioflags, NC_SHARE))
01072         {
01073                 /*
01074                  * NC_SHARE implies sync up the number of records as well.
01075                  * (File format version one.)
01076                  * Note that other header changes are not shared
01077                  * automatically.  Some sort of IPC (external to this package)
01078                  * would be used to trigger a call to nc_sync().
01079                  */
01080                 fSet(ncp->flags, NC_NSYNC);
01081         }
01082 
01083         status = nc_get_NC(ncp);
01084         if(status != NC_NOERR)
01085                 goto unwind_ioc;
01086 
01087         add_to_NCList(ncp);
01088 
01089         if(chunksizehintp != NULL)
01090                 *chunksizehintp = ncp->chunk;
01091         *ncid_ptr = ncp->nciop->fd;
01092         return NC_NOERR;
01093 
01094 unwind_ioc:
01095         (void) ncio_close(ncp->nciop, 0);
01096         ncp->nciop = NULL;
01097         /*FALLTHRU*/
01098 unwind_alloc:
01099         free_NC(ncp);
01100         return status;
01101 }

EXTERNL int nc_abort int  ncid  ) 
 

Definition at line 1265 of file nc.c.

01266 {
01267         int status;
01268         NC *ncp;
01269         int doUnlink = 0;
01270 
01271         status = NC_check_id(ncid, &ncp); 
01272         if(status != NC_NOERR)
01273                 return status;
01274 
01275         doUnlink = NC_IsNew(ncp);
01276 
01277         if(ncp->old != NULL)
01278         {
01279                 /* a plain redef, not a create */
01280                 assert(!NC_IsNew(ncp));
01281                 assert(fIsSet(ncp->flags, NC_INDEF));
01282                 free_NC(ncp->old);
01283                 ncp->old = NULL;
01284                 fClr(ncp->flags, NC_INDEF);
01285         }
01286         else if(!NC_readonly(ncp))
01287         {
01288                 status = NC_sync(ncp);
01289                 if(status != NC_NOERR)
01290                         return status;
01291         }
01292 
01293 
01294         (void) ncio_close(ncp->nciop, doUnlink);
01295         ncp->nciop = NULL;
01296 
01297         del_from_NCList(ncp);
01298 
01299         free_NC(ncp);
01300 
01301         return NC_NOERR;
01302 }

EXTERNL void nc_advise const char *  cdf_routine_name,
int  err,
const char *  fmt,
  ...
 

Definition at line 372 of file v2i.c.

Referenced by FCALLSCFUN3(), FCALLSCSUB1(), FCALLSCSUB4(), FCALLSCSUB5(), FCALLSCSUB6(), FCALLSCSUB7(), FCALLSCSUB8(), ncabort(), NCadvise(), ncattcopy(), ncattdel(), ncattget(), ncattinq(), ncattname(), ncattput(), ncattrename(), ncclose(), nccreate(), ncdimdef(), ncdimid(), ncdiminq(), ncdimrename(), ncendef(), NcFile::NcFile(), ncinquire(), ncopen(), ncrecget(), ncrecinq(), ncrecput(), ncredef(), ncsetfill(), ncsync(), ncvardef(), ncvarget(), ncvarget1(), ncvargetg(), ncvargets(), ncvarid(), ncvarinq(), ncvarput(), ncvarput1(), ncvarputg(), ncvarputs(), and ncvarrename().

00373 {
00374         va_list args;
00375 
00376         if(NC_ISSYSERR(err))
00377                 ncerr = NC_SYSERR;
00378         else
00379                 ncerr = err;
00380 
00381         if( ncopts & NC_VERBOSE )
00382         {
00383                 (void) fprintf(stderr,"%s: ", routine_name);
00384                 va_start(args ,fmt);
00385                 (void) vfprintf(stderr,fmt,args);
00386                 va_end(args);
00387                 if(err != NC_NOERR)
00388                 {
00389                         (void) fprintf(stderr,": %s",
00390                                 nc_strerror(err));
00391                 }
00392                 (void) fputc('\n',stderr);
00393                 (void) fflush(stderr);  /* to ensure log files are current */
00394         }
00395 
00396         if( (ncopts & NC_FATAL) && err != NC_NOERR )
00397         {
00398                 exit(ncopts);
00399         }
00400 }

EXTERNL int nc_assign_coord_system int  ncid,
int  varid,
int  system_varid
 

Definition at line 242 of file nccoord.c.

00243 {
00244    char system_name[NC_MAX_NAME + 1];
00245    char *systems_str;
00246    size_t len, new_len = 0;
00247    int retval;
00248 
00249    /* Find the name of this system. */
00250    if ((retval = nc_inq_varname(ncid, system_varid, system_name)))
00251       return retval;
00252 
00253    /* Is the att already here? If so, get it's length, then it's
00254     * contents, then append a space and the new system name. */
00255    retval = nc_inq_att(ncid, varid, COORDINATE_SYSTEMS, NULL, &len);
00256    if (retval != NC_ENOTATT && retval != NC_NOERR)
00257       return retval;
00258    if (!retval)
00259       new_len += len;
00260    new_len += strlen(system_name) + 1;
00261    if (!(systems_str = malloc(new_len)))
00262       return NC_NOERR;
00263    systems_str[0] = 0;
00264    if (!retval)
00265    {
00266       if ((retval = nc_get_att_text(ncid, varid, COORDINATE_SYSTEMS, 
00267                                     systems_str)))
00268          return retval;
00269       strcat(systems_str, " ");
00270    }
00271    strcat(systems_str, system_name);
00272 
00273    /* Write an att, called _CoordinateSystems, which
00274     * contains a list of the system names related to this variable. */
00275    retval = nc_put_att_text(ncid, varid, COORDINATE_SYSTEMS, 
00276                             strlen(systems_str) + 1, systems_str);
00277       
00278 
00279    /* Free the memory we allocated. */
00280    free(systems_str);
00281    
00282    return retval;
00283 }

EXTERNL int nc_assign_transform int  ncid,
int  system_varid,
int  transform_varid
 

Definition at line 357 of file nccoord.c.

00358 {
00359    char transform_name[NC_MAX_NAME + 1];
00360    int retval;
00361 
00362    /* Find the name of the transform. */
00363    if ((retval = nc_inq_varname(ncid, transform_varid, transform_name)))
00364       return retval;
00365 
00366    /* Write the transform name as an att of the system to which it
00367     * applies. */
00368    if ((retval = nc_put_att_text(ncid, system_varid, COORDINATE_TRANSFORMS, 
00369                                  strlen(transform_name) + 1, transform_name)))
00370       return retval;
00371    
00372    return NC_NOERR;
00373 }

EXTERNL int nc_close int  ncid  ) 
 

Definition at line 1147 of file nc.c.

01148 {
01149         int status = NC_NOERR;
01150         NC *ncp; 
01151 
01152         status = NC_check_id(ncid, &ncp); 
01153         if(status != NC_NOERR)
01154                 return status;
01155 
01156         if(NC_indef(ncp))
01157         {
01158                 status = NC_endef(ncp, 0, 1, 0, 1); /* TODO: defaults */
01159                 if(status != NC_NOERR )
01160                 {
01161                         (void) nc_abort(ncid);
01162                         return status;
01163                 }
01164         }
01165         else if(!NC_readonly(ncp))
01166         {
01167                 status = NC_sync(ncp);
01168         }
01169 
01170         /* 
01171          * If file opened for writing and file size is different from
01172          * what it should be (due to previous use of NOFILL mode),
01173          * change it to correct size, as reported by NC_calcsize().
01174          */
01175         {
01176             off_t filesize;     /* current size of open file */
01177             off_t calcsize;     /* calculated file size, from header */
01178             status = ncio_filesize(ncp->nciop, &filesize);
01179             if(status != ENOERR)
01180                 return status;
01181             status = NC_calcsize(ncp, &calcsize);
01182             if(status != NC_NOERR)
01183                 return status;
01184             if(filesize < calcsize && !NC_readonly(ncp)) {
01185                 status = ncio_pad_length(ncp->nciop, calcsize);
01186                 if(status != ENOERR)
01187                     return status;
01188             }
01189             
01190         }
01191 
01192         (void) ncio_close(ncp->nciop, 0);
01193         ncp->nciop = NULL;
01194 
01195         del_from_NCList(ncp);
01196 
01197         free_NC(ncp);
01198 
01199         return status;
01200 }

EXTERNL int nc_copy_att int  ncid_in,
int  varid_in,
const char *  name,
int  ncid_out,
int  varid_out
 

Definition at line 556 of file attr.c.

00557 {
00558         int status;
00559         NC_attr *iattrp;
00560         NC *ncp;
00561         NC_attrarray *ncap;
00562         NC_attr **attrpp;
00563         NC_attr *old = NULL;
00564         NC_attr *attrp;
00565 
00566         status = NC_lookupattr(ncid_in, varid_in, name, &iattrp);
00567         if(status != NC_NOERR)
00568                 return status;
00569 
00570         status = NC_check_id(ncid_out, &ncp);
00571         if(status != NC_NOERR)
00572                 return status;
00573 
00574         if(NC_readonly(ncp))
00575                 return NC_EPERM;
00576 
00577         ncap = NC_attrarray0(ncp, ovarid);
00578         if(ncap == NULL)
00579                 return NC_ENOTVAR;
00580 
00581         attrpp = NC_findattr(ncap, name);
00582         if(attrpp != NULL) /* name in use */
00583         {
00584                 if(!NC_indef(ncp) )
00585                 {
00586                         attrp = *attrpp; /* convenience */
00587         
00588                         if(iattrp->xsz > attrp->xsz)
00589                                 return NC_ENOTINDEFINE;
00590                         /* else, we can reuse existing without redef */
00591                         
00592                         attrp->xsz = iattrp->xsz;
00593                         attrp->type = iattrp->type;
00594                         attrp->nelems = iattrp->nelems;
00595 
00596                         (void) memcpy(attrp->xvalue, iattrp->xvalue,
00597                                 iattrp->xsz);
00598                         
00599                         set_NC_hdirty(ncp);
00600 
00601                         if(NC_doHsync(ncp))
00602                         {
00603                                 status = NC_sync(ncp);
00604                                 if(status != NC_NOERR)
00605                                         return status;
00606                         }
00607 
00608                         return NC_NOERR;
00609                 }
00610                 /* else, redefine using existing array slot */
00611                 old = *attrpp;
00612         } 
00613         else
00614         {
00615                 if(!NC_indef(ncp))
00616                         return NC_ENOTINDEFINE;
00617 
00618                 if(ncap->nelems >= NC_MAX_ATTRS)
00619                         return NC_EMAXATTS;
00620         }
00621 
00622         attrp = new_NC_attr(name, iattrp->type, iattrp->nelems);
00623         if(attrp == NULL)
00624                 return NC_ENOMEM;
00625 
00626         (void) memcpy(attrp->xvalue, iattrp->xvalue,
00627                 iattrp->xsz);
00628 
00629         if(attrpp != NULL)
00630         {
00631                 assert(old != NULL);
00632                 *attrpp = attrp;
00633                 free_NC_attr(old);
00634         }
00635         else
00636         {
00637                 status = incr_NC_attrarray(ncap, attrp);
00638                 if(status != NC_NOERR)
00639                 {
00640                         free_NC_attr(attrp);
00641                         return status;
00642                 }
00643         }
00644 
00645         return NC_NOERR;
00646 }

EXTERNL int nc_copy_var int  ncid_in,
int  varid,
int  ncid_out
 

Definition at line 11005 of file putget.c.

11006 {
11007         int status = NC_NOERR;
11008         NC *inncp, *outncp;
11009         NC_var *invp, *outvp;
11010 
11011         status = NC_check_id(ncid_in, &inncp); 
11012         if(status != NC_NOERR)
11013                 return status;
11014 
11015 
11016         if(NC_indef(inncp))
11017         {
11018                 return NC_EINDEFINE;
11019         }
11020 
11021         status = NC_check_id(ncid_out, &outncp); 
11022         if(status != NC_NOERR)
11023                 return status;
11024 
11025         if(NC_readonly(outncp))
11026         {
11027                 /* output file isn't writable */
11028                 return NC_EPERM;
11029         }
11030 
11031         if(NC_indef(outncp))
11032         {
11033                 return NC_EINDEFINE;
11034         }
11035 
11036         /* find the variable in the input cdf */
11037         invp = NC_lookupvar(inncp, varid);
11038         if(invp == NULL)
11039         {
11040                 return NC_ENOTVAR;
11041         }
11042 
11043         /* find the variable in the output cdf */
11044         if(NC_findvar(&outncp->vars, invp->name->cp, &outvp) == -1)
11045         {
11046                 return NC_ENOTVAR;
11047         }
11048 
11049         /* can we even attempt to copy without conversion? */
11050         if(outvp->type != invp->type)
11051         {
11052                 return NC_EINVAL;
11053         }
11054 
11055         if(        (invp->ndims == 0 && outvp->ndims != 0)
11056                 || (invp->ndims != 0 && outvp->ndims == 0)
11057                 || (IS_RECVAR(invp) && !IS_RECVAR(outvp))
11058                 || (!IS_RECVAR(invp) && IS_RECVAR(outvp))
11059                 || (invp->len != outvp->len)
11060         )
11061         {
11062                 return NC_EINVAL;
11063         }
11064 
11065         /*
11066          * Check coordinates
11067          */
11068         {
11069         ALLOC_ONSTACK(coord, size_t, invp->ndims);
11070         const size_t nrecs = NC_get_numrecs(inncp);
11071         (void) memcpy(coord, invp->shape, invp->ndims * sizeof(size_t));
11072         if(IS_RECVAR(invp))
11073                 *coord = nrecs;
11074         
11075         {
11076         size_t ii = 0;
11077         for(; ii < invp->ndims; ii++)
11078                 coord[ii] --;
11079         }
11080         /* at this point, coord is the largest valid coord of invp */
11081 
11082         if(NCcoordck(outncp, outvp, coord) != NC_NOERR)
11083         {
11084                 return NC_EINVAL;
11085         }
11086         /* else */
11087 
11088         (void) memset(coord, 0, invp->ndims * sizeof(size_t));
11089         
11090         if(!IS_RECVAR(invp))
11091         {
11092                 status = NCxvarcpy(inncp, invp, coord,
11093                                 outncp, outvp, coord,
11094                                 invp->len);
11095                 goto done;
11096         }
11097         /* else */
11098 
11099         status = NCvnrecs(outncp, nrecs);
11100         if(status != NC_NOERR)
11101                 goto done;
11102 
11103         for( /*NADA*/; *coord < nrecs; (*coord)++)
11104         {
11105                 status = NCxvarcpy(inncp, invp, coord,
11106                                 outncp, outvp, coord,
11107                                 invp->len);
11108                 if(status != NC_NOERR)
11109                         break;
11110         }
11111 done:
11112         FREE_ONSTACK(coord);
11113         }
11114         return status;
11115 }

EXTERNL int nc_create const char *  path,
int  cmode,
int *  ncidp
 

Definition at line 1023 of file nc.c.

01024 {
01025         return nc__create(path, ioflags, 0, NULL, ncid_ptr);
01026 }

EXTERNL int nc_def_axis_type int  ncid,
int  varid,
int  axis_type
 

Definition at line 35 of file nccoord.c.

00036 {
00037    int dimid;
00038    char var_name[NC_MAX_NAME + 1];
00039    int retval;
00040 
00041    /* Is the axis type valid? */
00042    if (axis_type < 0 || axis_type > NC_RADDIST)
00043       return NC_EINVAL;
00044 
00045    /* Make sure there's a dimension with the same name in this
00046     * ncid. */
00047    if ((retval = nc_inq_varname(ncid, varid, var_name)))
00048       return retval;
00049    if ((retval = nc_inq_dimid(ncid, var_name, &dimid)))
00050       return retval;
00051 
00052    /* Now write the attribute which stores the axis type. */
00053    if ((retval = nc_put_att_text(ncid, varid, COORDINATE_AXIS_TYPE, 
00054                                  strlen(axis_type_name[axis_type]) + 1, 
00055                                  axis_type_name[axis_type])))
00056       return retval;
00057 
00058    /* For height we write another attribute, indicating up
00059     * vs. down. */
00060    if (axis_type == NC_HEIGHT_UP)
00061    {
00062       if ((retval = nc_put_att_text(ncid, varid, COORDINATE_Z_IS_POSITIVE, 
00063                                     strlen(Z_UP) + 1, Z_UP)))
00064          return retval;
00065    }
00066    else if (axis_type == NC_HEIGHT_DOWN)
00067    {
00068       if ((retval = nc_put_att_text(ncid, varid, COORDINATE_Z_IS_POSITIVE, 
00069                                     strlen(Z_UP) + 1, Z_UP)))
00070          return retval;
00071    }
00072 
00073    return NC_NOERR;
00074 }

EXTERNL int nc_def_coord_system int  ncid,
const char *  name,
int  naxes,
int *  axis_varids,
int *  system_varid
 

Definition at line 120 of file nccoord.c.

00122 {
00123    int dimid, a;
00124    int varid;
00125    char var_name[NC_MAX_NAME + 1];
00126    char *coord_axes_str;
00127    int retval;
00128    
00129    /* naxes must be positive and less than max_dims. */
00130    if (naxes < 0)
00131       return NC_EINVAL;
00132    if (naxes > NC_MAX_DIMS)
00133       return NC_EMAXDIMS;
00134 
00135    /* Create a scalar var, type NC_CHAR, to hold the attribute that
00136     * defines this system. */
00137    if ((retval = nc_def_var(ncid, name, NC_CHAR, 0, NULL, &varid)))
00138       return retval;
00139    
00140    /* If the user wants it, return the varid of this system. */
00141    if (system_varid)
00142       *system_varid = varid;
00143 
00144    /* malloc space for the string which will hold the names of all the
00145     * axes. */
00146    if (!(coord_axes_str = malloc(naxes * NC_MAX_NAME + naxes)))
00147       return NC_NOERR;
00148    coord_axes_str[0] = 0;
00149 
00150    /* Store the names of the axes in an attribute. At the same time,
00151     * make sure that all the axis_varids are actually coordinate
00152     * variables - that is, there is a dimension withn the same
00153     * name. */
00154    for (a = 0; a < naxes; a++)
00155    {
00156       if ((retval = nc_inq_varname(ncid, axis_varids[a], var_name)))
00157          break;
00158       if ((retval = nc_inq_dimid(ncid, var_name, &dimid)))
00159          break;
00160       strcat(coord_axes_str, var_name);
00161       if (a < naxes - 1)
00162          strcat(coord_axes_str, " ");
00163    }
00164    
00165    /* If we arrived here without error, then write the coord_axes_str
00166     * to the appropriate attribute, to save the system in the file. */
00167    if (!retval)
00168       retval = nc_put_att_text(ncid, varid, COORDINATE_AXES, 
00169                                strlen(coord_axes_str) + 1, coord_axes_str);
00170 
00171    /* Free the memory we allocated. */
00172    free(coord_axes_str);
00173    
00174    return retval;
00175 }

EXTERNL int nc_def_dim int  ncid,
const char *  name,
size_t  len,
int *  idp
 

Definition at line 306 of file dim.c.

00307 {
00308         int status;
00309         NC *ncp;
00310         int dimid;
00311         NC_dim *dimp;
00312 
00313         status = NC_check_id(ncid, &ncp); 
00314         if(status != NC_NOERR)
00315                 return status;
00316 
00317         if(!NC_indef(ncp))
00318                 return NC_ENOTINDEFINE;
00319 
00320         status = NC_check_name(name);
00321         if(status != NC_NOERR)
00322                 return status;
00323 
00324         if ((ncp->flags & NC_64BIT_OFFSET) && sizeof(off_t) > 4) {
00325             /* CDF2 format and LFS */
00326             if(size > X_UINT_MAX - 3) /* "- 3" handles rounded-up size */
00327                 return NC_EDIMSIZE;
00328         } else {
00329             /* CDF1 format */
00330             if(size > X_INT_MAX - 3)
00331                 return NC_EDIMSIZE;
00332         }
00333 
00334         if(size == NC_UNLIMITED)
00335         {
00336                 dimid = find_NC_Udim(&ncp->dims, &dimp);
00337                 if(dimid != -1)
00338                 {
00339                         assert(dimid != -1);
00340                         return NC_EUNLIMIT;
00341                 }
00342         }
00343 
00344         if(ncp->dims.nelems >= NC_MAX_DIMS)
00345                 return NC_EMAXDIMS;
00346 
00347         dimid = NC_finddim(&ncp->dims, name, &dimp);
00348         if(dimid != -1)
00349                 return NC_ENAMEINUSE;
00350         
00351         dimp = new_NC_dim(name, size);
00352         if(dimp == NULL)
00353                 return NC_ENOMEM;
00354         status = incr_NC_dimarray(&ncp->dims, dimp);
00355         if(status != NC_NOERR)
00356         {
00357                 free_NC_dim(dimp);
00358                 return status;
00359         }
00360 
00361         if(dimidp != NULL)
00362                 *dimidp = (int)ncp->dims.nelems -1;
00363         return NC_NOERR;
00364 }

EXTERNL int nc_def_transform int  ncid,
const char *  name,
const char *  transform_type,
const char *  transform_name,
int *  transform_varid
 

Definition at line 288 of file nccoord.c.

00290 {
00291    int varid;
00292    int retval;
00293    
00294    /* Create a scalar var, type NC_CHAR, to hold the attribute that
00295     * defines this transform. */
00296    if ((retval = nc_def_var(ncid, name, NC_CHAR, 0, NULL, &varid)))
00297       return retval;
00298    
00299    /* If the user wants it, return the varid of this system. */
00300    if (transform_varid)
00301       *transform_varid = varid;
00302 
00303    /* Store the transform_type, if provided by the user. */
00304    if (transform_type)
00305       if ((retval = nc_put_att_text(ncid, varid, TRANSFORM_TYPE, 
00306                                     strlen(transform_type) + 1, transform_type)))
00307          return retval;
00308 
00309    /* Store the transform name, if provided by the user. */
00310    if (transform_type)
00311       if ((retval = nc_put_att_text(ncid, varid, TRANSFORM_NAME, 
00312                                     strlen(transform_name) + 1, transform_name)))
00313          return retval;
00314 
00315    return NC_NOERR;
00316 }

EXTERNL int nc_def_var int  ncid,
const char *  name,
nc_type  xtype,
int  ndims,
const int *  dimidsp,
int *  varidp
 

Definition at line 489 of file var.c.

00491 {
00492         int status;
00493         NC *ncp;
00494         int varid;
00495         NC_var *varp;
00496 
00497         status = NC_check_id(ncid, &ncp); 
00498         if(status != NC_NOERR)
00499                 return status;
00500 
00501         if(!NC_indef(ncp))
00502         {
00503                 return NC_ENOTINDEFINE;
00504         }
00505 
00506         status = NC_check_name(name);
00507         if(status != NC_NOERR)
00508                 return status;
00509 
00510         status = nc_cktype(type);
00511         if(status != NC_NOERR)
00512                 return status;
00513 
00514                 /* cast needed for braindead systems with signed size_t */
00515         if((unsigned long) ndims > X_INT_MAX) /* Backward compat */
00516         {
00517                 return NC_EINVAL;
00518         } 
00519 
00520         if(ncp->vars.nelems >= NC_MAX_VARS)
00521         {
00522                 return NC_EMAXVARS;
00523         }
00524 
00525         varid = NC_findvar(&ncp->vars, name, &varp);
00526         if(varid != -1)
00527         {
00528                 return NC_ENAMEINUSE;
00529         }
00530         
00531         varp = new_NC_var(name, type, ndims, dimids);
00532         if(varp == NULL)
00533                 return NC_ENOMEM;
00534 
00535         status = NC_var_shape(varp, &ncp->dims);
00536         if(status != NC_NOERR)
00537         {
00538                 free_NC_var(varp);
00539                 return status;
00540         }
00541 
00542         status = incr_NC_vararray(&ncp->vars, varp);
00543         if(status != NC_NOERR)
00544         {
00545                 free_NC_var(varp);
00546                 return status;
00547         }
00548 
00549         if(varidp != NULL)
00550                 *varidp = (int)ncp->vars.nelems -1; /* varid */
00551         return NC_NOERR;
00552 }

EXTERNL int nc_del_att int  ncid,
int  varid,
const char *  name
 

Definition at line 650 of file attr.c.

00651 {
00652         int status;
00653         NC *ncp;
00654         NC_attrarray *ncap;
00655         NC_attr **attrpp;
00656         NC_attr *old = NULL;
00657         int attrid;
00658         size_t slen;
00659 
00660         status = NC_check_id(ncid, &ncp);
00661         if(status != NC_NOERR)
00662                 return status;
00663 
00664         if(!NC_indef(ncp))
00665                 return NC_ENOTINDEFINE;
00666 
00667         ncap = NC_attrarray0(ncp, varid);
00668         if(ncap == NULL)
00669                 return NC_ENOTVAR;
00670 
00671                         /* sortof inline NC_findattr() */
00672         slen = strlen(name);
00673 
00674         attrpp = (NC_attr **) ncap->value;
00675         for(attrid = 0; (size_t) attrid < ncap->nelems; attrid++, attrpp++)
00676         {
00677                 if( slen == (*attrpp)->name->nchars &&
00678                         strncmp(name, (*attrpp)->name->cp, slen) == 0)
00679                 {
00680                         old = *attrpp;
00681                         break;
00682                 }
00683         }
00684         if( (size_t) attrid == ncap->nelems )
00685                 return NC_ENOTATT;
00686                         /* end inline NC_findattr() */
00687 
00688         /* shuffle down */
00689         for(attrid++; (size_t) attrid < ncap->nelems; attrid++)
00690         {
00691                 *attrpp = *(attrpp + 1);
00692                 attrpp++;
00693         }
00694         *attrpp = NULL;
00695         /* decrement count */
00696         ncap->nelems--;
00697 
00698         free_NC_attr(old);
00699 
00700         return NC_NOERR;
00701 }

EXTERNL int nc_delete const char *  path  ) 
 

Definition at line 1204 of file nc.c.

01205 {
01206         return nc_delete_mp(path, 0);
01207 }

EXTERNL int nc_delete_mp const char *  path,
int  basepe
 

Definition at line 1210 of file nc.c.

01211 {
01212         NC *ncp;
01213         int status;
01214         size_t chunk = 512;
01215 
01216         ncp = new_NC(&chunk);
01217         if(ncp == NULL)
01218                 return NC_ENOMEM;
01219         
01220 #if defined(LOCKNUMREC) /* && _CRAYMPP */
01221         if (status = NC_init_pe(ncp, basepe)) {
01222                 return status;
01223         }
01224 #else
01225         /*
01226          * !_CRAYMPP, only pe 0 is valid
01227          */
01228         if(basepe != 0)
01229                 return NC_EINVAL;
01230 #endif
01231         status = ncio_open(path, NC_NOWRITE,
01232                 0, 0, &ncp->chunk,
01233                 &ncp->nciop, 0);
01234         if(status)
01235                 goto unwind_alloc;
01236 
01237         assert(ncp->flags == 0);
01238 
01239         status = nc_get_NC(ncp);
01240         if(status != NC_NOERR)
01241         {
01242                 /* Not a netcdf file, don't delete */
01243                 /* ??? is this the right semantic? what if it was just too big? */
01244                 (void) ncio_close(ncp->nciop, 0);
01245         }
01246         else
01247         {
01248                 /* ncio_close does the unlink */
01249                 status = ncio_close(ncp->nciop, 1); /* ncio_close does the unlink */
01250         }
01251 
01252         ncp->nciop = NULL;
01253 unwind_alloc:
01254         free_NC(ncp);
01255         return status;
01256 }

EXTERNL int nc_enddef int  ncid  ) 
 

Definition at line 1129 of file nc.c.

01130 {
01131         int status;
01132         NC *ncp;
01133 
01134         status = NC_check_id(ncid, &ncp); 
01135         if(status != NC_NOERR)
01136                 return status;
01137 
01138         if(!NC_indef(ncp))
01139                 return(NC_ENOTINDEFINE);
01140 
01141         /* return(NC_endef(ncp, 0, 4096, 0, 4096)); */
01142         return (NC_endef(ncp, 0, 1, 0, 1));
01143 }

EXTERNL int nc_get_att int  ncid,
int  varid,
const char *  name,
void *  value
 

Definition at line 11119 of file putget.c.

11120 {
11121         int status;
11122         nc_type atttype;
11123 
11124         status = nc_inq_atttype(ncid, varid, name, &atttype);
11125         if(status != NC_NOERR)
11126                 return status;
11127 
11128         switch (atttype) {
11129         case NC_BYTE:
11130                 return nc_get_att_schar(ncid, varid, name,
11131                         (schar *)value);
11132         case NC_CHAR:
11133                 return nc_get_att_text(ncid, varid, name,
11134                         (char *)value);
11135         case NC_SHORT:
11136                 return nc_get_att_short(ncid, varid, name,
11137                         (short *)value);
11138         case NC_INT:
11139 #if (SIZEOF_INT >= X_SIZEOF_INT)
11140                 return nc_get_att_int(ncid, varid, name,
11141                         (int *)value);
11142 #elif SIZEOF_LONG == X_SIZEOF_INT
11143                 return nc_get_att_long(ncid, varid, name,
11144                         (long *)value);
11145 #endif
11146         case NC_FLOAT:
11147                 return nc_get_att_float(ncid, varid, name,
11148                         (float *)value);
11149         case NC_DOUBLE:
11150                 return nc_get_att_double(ncid, varid, name,
11151                         (double *)value);
11152         }
11153         return NC_EBADTYPE;
11154 }

EXTERNL int nc_get_att_double int  ncid,
int  varid,
const char *  name,
double *  ip
 

Definition at line 2151 of file attr.c.

02152 {
02153         int status;
02154         NC_attr *attrp;
02155 
02156         status = NC_lookupattr(ncid, varid, name, &attrp);
02157         if(status != NC_NOERR)
02158                 return status;
02159 
02160         if(attrp->nelems == 0)
02161                 return NC_NOERR;
02162 
02163         if(attrp->type == NC_CHAR)
02164                 return NC_ECHAR;
02165 
02166         {
02167         const void *xp = attrp->xvalue;
02168         return ncx_pad_getn_Idouble(&xp, attrp->nelems, tp, attrp->type);
02169         }
02170 }

EXTERNL int nc_get_att_float int  ncid,
int  varid,
const char *  name,
float *  ip
 

Definition at line 2004 of file attr.c.

02005 {
02006         int status;
02007         NC_attr *attrp;
02008 
02009         status = NC_lookupattr(ncid, varid, name, &attrp);
02010         if(status != NC_NOERR)
02011                 return status;
02012 
02013         if(attrp->nelems == 0)
02014                 return NC_NOERR;
02015 
02016         if(attrp->type == NC_CHAR)
02017                 return NC_ECHAR;
02018 
02019         {
02020         const void *xp = attrp->xvalue;
02021         return ncx_pad_getn_Ifloat(&xp, attrp->nelems, tp, attrp->type);
02022         }
02023 }

EXTERNL int nc_get_att_int int  ncid,
int  varid,
const char *  name,
int *  ip
 

Definition at line 1710 of file attr.c.

01711 {
01712         int status;
01713         NC_attr *attrp;
01714 
01715         status = NC_lookupattr(ncid, varid, name, &attrp);
01716         if(status != NC_NOERR)
01717                 return status;
01718 
01719         if(attrp->nelems == 0)
01720                 return NC_NOERR;
01721 
01722         if(attrp->type == NC_CHAR)
01723                 return NC_ECHAR;
01724 
01725         {
01726         const void *xp = attrp->xvalue;
01727         return ncx_pad_getn_Iint(&xp, attrp->nelems, tp, attrp->type);
01728         }
01729 }

EXTERNL int nc_get_att_long int  ncid,
int  varid,
const char *  name,
long *  ip
 

Definition at line 1857 of file attr.c.

01858 {
01859         int status;
01860         NC_attr *attrp;
01861 
01862         status = NC_lookupattr(ncid, varid, name, &attrp);
01863         if(status != NC_NOERR)
01864                 return status;
01865 
01866         if(attrp->nelems == 0)
01867                 return NC_NOERR;
01868 
01869         if(attrp->type == NC_CHAR)
01870                 return NC_ECHAR;
01871 
01872         {
01873         const void *xp = attrp->xvalue;
01874         return ncx_pad_getn_Ilong(&xp, attrp->nelems, tp, attrp->type);
01875         }
01876 }

EXTERNL int nc_get_att_schar int  ncid,
int  varid,
const char *  name,
signed char *  ip
 

Definition at line 1269 of file attr.c.

01270 {
01271         int status;
01272         NC_attr *attrp;
01273 
01274         status = NC_lookupattr(ncid, varid, name, &attrp);
01275         if(status != NC_NOERR)
01276                 return status;
01277 
01278         if(attrp->nelems == 0)
01279                 return NC_NOERR;
01280 
01281         if(attrp->type == NC_CHAR)
01282                 return NC_ECHAR;
01283 
01284         {
01285         const void *xp = attrp->xvalue;
01286         return ncx_pad_getn_Ischar(&xp, attrp->nelems, tp, attrp->type);
01287         }
01288 }

EXTERNL int nc_get_att_short int  ncid,
int  varid,
const char *  name,
short *  ip
 

Definition at line 1563 of file attr.c.

01564 {
01565         int status;
01566         NC_attr *attrp;
01567 
01568         status = NC_lookupattr(ncid, varid, name, &attrp);
01569         if(status != NC_NOERR)
01570                 return status;
01571 
01572         if(attrp->nelems == 0)
01573                 return NC_NOERR;
01574 
01575         if(attrp->type == NC_CHAR)
01576                 return NC_ECHAR;
01577 
01578         {
01579         const void *xp = attrp->xvalue;
01580         return ncx_pad_getn_Ishort(&xp, attrp->nelems, tp, attrp->type);
01581         }
01582 }

EXTERNL int nc_get_att_text int  ncid,
int  varid,
const char *  name,
char *  ip
 

Definition at line 1119 of file attr.c.

01120 {
01121         int status;
01122         NC_attr *attrp;
01123 
01124         status = NC_lookupattr(ncid, varid, name, &attrp);
01125         if(status != NC_NOERR)
01126                 return status;
01127 
01128         if(attrp->nelems == 0)
01129                 return NC_NOERR;
01130 
01131         if(attrp->type != NC_CHAR)
01132                 return NC_ECHAR;
01133 
01134         /* else */
01135         {
01136                 const void *xp = attrp->xvalue;
01137                 return ncx_pad_getn_text(&xp, attrp->nelems, str);
01138         }
01139 }

EXTERNL int nc_get_att_uchar int  ncid,
int  varid,
const char *  name,
unsigned char *  ip
 

Definition at line 1416 of file attr.c.

01417 {
01418         int status;
01419         NC_attr *attrp;
01420 
01421         status = NC_lookupattr(ncid, varid, name, &attrp);
01422         if(status != NC_NOERR)
01423                 return status;
01424 
01425         if(attrp->nelems == 0)
01426                 return NC_NOERR;
01427 
01428         if(attrp->type == NC_CHAR)
01429                 return NC_ECHAR;
01430 
01431         {
01432         const void *xp = attrp->xvalue;
01433         return ncx_pad_getn_Iuchar(&xp, attrp->nelems, tp, attrp->type);
01434         }
01435 }

EXTERNL int nc_get_var1 int  ncid,
int  varid,
const size_t *  index,
void *  value
 

Definition at line 11196 of file putget.c.

11197 {
11198         int status;
11199         nc_type vartype;
11200 
11201         status = nc_inq_vartype(ncid, varid, &vartype); 
11202         if(status != NC_NOERR)
11203                 return status;
11204 
11205         switch(vartype){
11206         case NC_CHAR:
11207                 return nc_get_var1_text(ncid, varid, coord,
11208                         (char *) value);
11209         case NC_BYTE:
11210                 return nc_get_var1_schar(ncid, varid, coord,
11211                         (schar *) value);
11212         case NC_SHORT:
11213                 return nc_get_var1_short(ncid, varid, coord,
11214                         (short *) value);
11215         case NC_INT:
11216                 return nc_get_var1_int(ncid, varid, coord,
11217                         (int *) value);
11218         case NC_FLOAT:
11219                 return nc_get_var1_float(ncid, varid, coord,
11220                         (float *) value);
11221         case NC_DOUBLE: 
11222                 return nc_get_var1_double(ncid, varid, coord,
11223                         (double *) value);
11224         }
11225         return NC_EBADTYPE;
11226 }

EXTERNL int nc_get_var1_double int  ncid,
int  varid,
const size_t *  indexp,
double *  ip
 

Definition at line 4878 of file putget.c.

04879 {
04880         int status;
04881         NC *ncp;
04882         const NC_var *varp;
04883 
04884         status = NC_check_id(ncid, &ncp); 
04885         if(status != NC_NOERR)
04886                 return status;
04887 
04888         if(NC_indef(ncp))
04889                 return NC_EINDEFINE;
04890 
04891         varp = NC_lookupvar(ncp, varid);
04892         if(varp == NULL)
04893                 return NC_ENOTVAR; /* TODO: lost NC_EGLOBAL */
04894 
04895         if(varp->type == NC_CHAR)
04896                 return NC_ECHAR;
04897 
04898         status = NCcoordck(ncp, varp, coord);
04899         if(status != NC_NOERR)
04900                 return status;
04901 
04902         return getNCv_double(ncp, varp, coord, 1, value);
04903 }

EXTERNL int nc_get_var1_float int  ncid,
int  varid,
const size_t *  indexp,
float *  ip
 

Definition at line 4850 of file putget.c.

04851 {
04852         int status;
04853         NC *ncp;
04854         const NC_var *varp;
04855 
04856         status = NC_check_id(ncid, &ncp); 
04857         if(status != NC_NOERR)
04858                 return status;
04859 
04860         if(NC_indef(ncp))
04861                 return NC_EINDEFINE;
04862 
04863         varp = NC_lookupvar(ncp, varid);
04864         if(varp == NULL)
04865                 return NC_ENOTVAR; /* TODO: lost NC_EGLOBAL */
04866 
04867         if(varp->type == NC_CHAR)
04868                 return NC_ECHAR;
04869 
04870         status = NCcoordck(ncp, varp, coord);
04871         if(status != NC_NOERR)
04872                 return status;
04873 
04874         return getNCv_float(ncp, varp, coord, 1, value);
04875 }

EXTERNL int nc_get_var1_int int  ncid,
int  varid,
const size_t *  indexp,
int *  ip
 

Definition at line 4794 of file putget.c.

04795 {
04796         int status;
04797         NC *ncp;
04798         const NC_var *varp;
04799 
04800         status = NC_check_id(ncid, &ncp); 
04801         if(status != NC_NOERR)
04802                 return status;
04803 
04804         if(NC_indef(ncp))
04805                 return NC_EINDEFINE;
04806 
04807         varp = NC_lookupvar(ncp, varid);
04808         if(varp == NULL)
04809                 return NC_ENOTVAR; /* TODO: lost NC_EGLOBAL */
04810 
04811         if(varp->type == NC_CHAR)
04812                 return NC_ECHAR;
04813 
04814         status = NCcoordck(ncp, varp, coord);
04815         if(status != NC_NOERR)
04816                 return status;
04817 
04818         return getNCv_int(ncp, varp, coord, 1, value);
04819 }

EXTERNL int nc_get_var1_long int  ncid,
int  varid,
const size_t *  indexp,
long *  ip
 

Definition at line 4822 of file putget.c.

04823 {
04824         int status;
04825         NC *ncp;
04826         const NC_var *varp;
04827 
04828         status = NC_check_id(ncid, &ncp); 
04829         if(status != NC_NOERR)
04830                 return status;
04831 
04832         if(NC_indef(ncp))
04833                 return NC_EINDEFINE;
04834 
04835         varp = NC_lookupvar(ncp, varid);
04836         if(varp == NULL)
04837                 return NC_ENOTVAR; /* TODO: lost NC_EGLOBAL */
04838 
04839         if(varp->type == NC_CHAR)
04840                 return NC_ECHAR;
04841 
04842         status = NCcoordck(ncp, varp, coord);
04843         if(status != NC_NOERR)
04844                 return status;
04845 
04846         return getNCv_long(ncp, varp, coord, 1, value);
04847 }