MISR Toolkit  1.5.1
Macros | Typedefs | Enumerations | Functions | Variables
netcdf.h File Reference
#include "H4api_adpt.h"
#include "hdfi.h"
#include "hdf2netcdf.h"

Go to the source code of this file.

Macros

#define ncvoid   void
 
#define USE_ENUM
 
#define NC_OLD_FILLVALUES   0
 
#define FILL_BYTE   ((char)-127) /* Largest Negative value */
 
#define FILL_CHAR   ((char)0)
 
#define FILL_SHORT   ((short)-32767)
 
#define FILL_LONG   ((long)-2147483647)
 
#define FILL_FLOAT   9.9692099683868690e+36 /* near 15 * 2^119 */
 
#define FILL_DOUBLE   9.9692099683868690e+36
 
#define NC_RDWR   1 /* read/write, 0 => readonly */
 
#define NC_CREAT   2 /* in create phase, cleared by ncendef */
 
#define NC_EXCL   4 /* on create, don't destroy existing file */
 
#define NC_INDEF   8 /* in define mode, cleared by ncendef */
 
#define NC_NSYNC   0x10 /* synchronise numrecs on change */
 
#define NC_HSYNC   0x20 /* synchronise whole header on change */
 
#define NC_NDIRTY   0x40 /* numrecs has changed */
 
#define NC_HDIRTY   0x80 /* header info has changed */
 
#define NC_NOFILL   0x100 /* Don't fill vars on endef and increase of record */
 
#define NC_LINK   0x8000 /* isa link */
 
#define NC_FILL   0 /* argument to ncsetfill to clear NC_NOFILL */
 
#define NC_NOWRITE   0
 
#define NC_WRITE   NC_RDWR
 
#define NC_CLOBBER   (NC_INDEF | NC_CREAT | NC_RDWR)
 
#define NC_NOCLOBBER   (NC_INDEF | NC_EXCL | NC_CREAT | NC_RDWR)
 
#define NC_UNLIMITED   0L
 
#define NC_GLOBAL   -1
 
#define MAX_NC_OPEN   32
 
#define MAX_NC_DIMS   5000 /* max dimensions per file */
 
#define MAX_NC_ATTRS   3000 /* max global or per variable attributes */
 
#define MAX_NC_VARS   5000 /* max variables per file */
 
#define MAX_NC_NAME   256 /* max length of a name */
 
#define MAX_VAR_DIMS   32 /* max per variable dimensions */
 
#define _FillValue   "_FillValue"
 
#define NC_NOERR   0 /* No Error */
 
#define NC_EBADID   1 /* Not a netcdf id */
 
#define NC_ENFILE   2 /* Too many netcdfs open */
 
#define NC_EEXIST   3 /* netcdf file exists && NC_NOCLOBBER */
 
#define NC_EINVAL   4 /* Invalid Argument */
 
#define NC_EPERM   5 /* Write to read only */
 
#define NC_ENOTINDEFINE   6 /* Operation not allowed in data mode */
 
#define NC_EINDEFINE   7 /* Operation not allowed in define mode */
 
#define NC_EINVALCOORDS   8 /* Coordinates out of Domain */
 
#define NC_EMAXDIMS   9 /* MAX_NC_DIMS exceeded */
 
#define NC_ENAMEINUSE   10 /* String match to name in use */
 
#define NC_ENOTATT   11 /* Attribute not found */
 
#define NC_EMAXATTS   12 /* MAX_NC_ATTRS exceeded */
 
#define NC_EBADTYPE   13 /* Not a netcdf data type */
 
#define NC_EBADDIM   14 /* Invalid dimension id */
 
#define NC_EUNLIMPOS   15 /* NC_UNLIMITED in the wrong index */
 
#define NC_EMAXVARS   16 /* MAX_NC_VARS exceeded */
 
#define NC_ENOTVAR   17 /* Variable not found */
 
#define NC_EGLOBAL   18 /* Action prohibited on NC_GLOBAL varid */
 
#define NC_ENOTNC   19 /* Not a netcdf file */
 
#define NC_ESTS   20 /* In Fortran, string too short */
 
#define NC_EMAXNAME   21 /* MAX_NC_NAME exceeded */
 
#define NC_ENTOOL   NC_EMAXNAME /* Backward compatibility */
 
#define NC_EUNLIMIT   22 /* NC_UNLIMITED size already in use */
 
#define NC_EXDR   32 /* */
 
#define NC_SYSERR   -1
 
#define NC_FATAL   1
 
#define NC_VERBOSE   2
 
#define PROTO(x)   ()
 

Typedefs

typedef long nclong
 

Enumerations

enum  nc_type {
  NC_UNSPECIFIED,
  NC_BYTE,
  NC_CHAR,
  NC_SHORT,
  NC_LONG,
  NC_FLOAT,
  NC_DOUBLE,
  NC_BITFIELD,
  NC_STRING,
  NC_IARRAY,
  NC_DIMENSION,
  NC_VARIABLE,
  NC_ATTRIBUTE,
  NC_UNSPECIFIED,
  NC_BYTE,
  NC_CHAR,
  NC_SHORT,
  NC_LONG,
  NC_FLOAT,
  NC_DOUBLE,
  NC_BITFIELD,
  NC_STRING,
  NC_IARRAY,
  NC_DIMENSION,
  NC_VARIABLE,
  NC_ATTRIBUTE
}
 

Functions

HDFLIBAPI int nccreate PROTO ((const char *path, int cmode))
 
HDFLIBAPI int ncopen PROTO ((const char *path, int mode))
 
HDFLIBAPI int ncredef PROTO ((int cdfid))
 
HDFLIBAPI int ncinquire PROTO ((int cdfid, int *ndims, int *nvars, int *natts, int *recdim))
 
HDFLIBAPI int ncdimdef PROTO ((int cdfid, const char *name, long length))
 
HDFLIBAPI int ncdimid PROTO ((int cdfid, const char *name))
 
HDFLIBAPI int ncdiminq PROTO ((int cdfid, int dimid, char *name, long *length))
 
HDFLIBAPI int ncdimrename PROTO ((int cdfid, int dimid, const char *name))
 
HDFLIBAPI int ncvardef PROTO ((int cdfid, const char *name, nc_type datatype, int ndims, const int *dim))
 
HDFLIBAPI int ncvarinq PROTO ((int cdfid, int varid, char *name, nc_type *datatype, int *ndims, int *dim, int *natts))
 
HDFLIBAPI int ncvarput1 PROTO ((int cdfid, int varid, const long *coords, const void *value))
 
HDFLIBAPI int ncvarget1 PROTO ((int cdfid, int varid, const long *coords, void *value))
 
HDFLIBAPI int ncvarput PROTO ((int cdfid, int varid, const long *start, const long *count, const void *value))
 
HDFLIBAPI int ncvarget PROTO ((int cdfid, int varid, const long *start, const long *count, void *value))
 
HDFLIBAPI int ncvarputs PROTO ((int cdfid, int varid, const long *start, const long *count, const long *stride, const void *values))
 
HDFLIBAPI int ncvargets PROTO ((int cdfid, int varid, const long *start, const long *count, const long *stride, void *values))
 
HDFLIBAPI int ncvarputg PROTO ((int cdfid, int varid, const long *start, const long *count, const long *stride, const long *imap, const void *values))
 
HDFLIBAPI int ncvargetg PROTO ((int cdfid, int varid, const long *start, const long *count, const long *stride, const long *imap, void *values))
 
HDFLIBAPI int ncvarrename PROTO ((int cdfid, int varid, const char *name))
 
HDFLIBAPI int ncattput PROTO ((int cdfid, int varid, const char *name, nc_type datatype, int len, const void *value))
 
HDFLIBAPI int ncattinq PROTO ((int cdfid, int varid, const char *name, nc_type *datatype, int *len))
 
HDFLIBAPI int ncattget PROTO ((int cdfid, int varid, const char *name, void *value))
 
HDFLIBAPI int ncattcopy PROTO ((int incdf, int invar, const char *name, int outcdf, int outvar))
 
HDFLIBAPI int ncattname PROTO ((int cdfid, int varid, int attnum, char *name))
 
HDFLIBAPI int ncattrename PROTO ((int cdfid, int varid, const char *name, const char *newname))
 
HDFLIBAPI int nctypelen PROTO ((nc_type datatype))
 
HDFLIBAPI int ncsetfill PROTO ((int cdfid, int fillmode))
 
HDFLIBAPI int ncrecinq PROTO ((int cdfid, int *nrecvars, int *recvarids, long *recsizes))
 
HDFLIBAPI int ncrecget PROTO ((int cdfid, long recnum, void **datap))
 
HDFLIBAPI int ncrecput PROTO ((int cdfid, long recnum, void *const *datap))
 

Variables

HDFLIBAPI int ncerr
 
HDFLIBAPI int ncopts
 

Macro Definition Documentation

◆ _FillValue

#define _FillValue   "_FillValue"

Definition at line 241 of file netcdf.h.

◆ FILL_BYTE

#define FILL_BYTE   ((char)-127) /* Largest Negative value */

Definition at line 80 of file netcdf.h.

◆ FILL_CHAR

#define FILL_CHAR   ((char)0)

Definition at line 81 of file netcdf.h.

◆ FILL_DOUBLE

#define FILL_DOUBLE   9.9692099683868690e+36

Definition at line 88 of file netcdf.h.

◆ FILL_FLOAT

#define FILL_FLOAT   9.9692099683868690e+36 /* near 15 * 2^119 */

Definition at line 87 of file netcdf.h.

◆ FILL_LONG

#define FILL_LONG   ((long)-2147483647)

Definition at line 83 of file netcdf.h.

◆ FILL_SHORT

#define FILL_SHORT   ((short)-32767)

Definition at line 82 of file netcdf.h.

◆ MAX_NC_ATTRS

#define MAX_NC_ATTRS   3000 /* max global or per variable attributes */

Definition at line 229 of file netcdf.h.

◆ MAX_NC_DIMS

#define MAX_NC_DIMS   5000 /* max dimensions per file */

Definition at line 228 of file netcdf.h.

◆ MAX_NC_NAME

#define MAX_NC_NAME   256 /* max length of a name */

Definition at line 231 of file netcdf.h.

◆ MAX_NC_OPEN

#define MAX_NC_OPEN   32

Definition at line 221 of file netcdf.h.

◆ MAX_NC_VARS

#define MAX_NC_VARS   5000 /* max variables per file */

Definition at line 230 of file netcdf.h.

◆ MAX_VAR_DIMS

#define MAX_VAR_DIMS   32 /* max per variable dimensions */

Definition at line 232 of file netcdf.h.

◆ NC_CLOBBER

#define NC_CLOBBER   (NC_INDEF | NC_CREAT | NC_RDWR)

Definition at line 203 of file netcdf.h.

◆ NC_CREAT

#define NC_CREAT   2 /* in create phase, cleared by ncendef */

Definition at line 186 of file netcdf.h.

◆ NC_EBADDIM

#define NC_EBADDIM   14 /* Invalid dimension id */

Definition at line 327 of file netcdf.h.

◆ NC_EBADID

#define NC_EBADID   1 /* Not a netcdf id */

Definition at line 314 of file netcdf.h.

◆ NC_EBADTYPE

#define NC_EBADTYPE   13 /* Not a netcdf data type */

Definition at line 326 of file netcdf.h.

◆ NC_EEXIST

#define NC_EEXIST   3 /* netcdf file exists && NC_NOCLOBBER */

Definition at line 316 of file netcdf.h.

◆ NC_EGLOBAL

#define NC_EGLOBAL   18 /* Action prohibited on NC_GLOBAL varid */

Definition at line 331 of file netcdf.h.

◆ NC_EINDEFINE

#define NC_EINDEFINE   7 /* Operation not allowed in define mode */

Definition at line 320 of file netcdf.h.

◆ NC_EINVAL

#define NC_EINVAL   4 /* Invalid Argument */

Definition at line 317 of file netcdf.h.

◆ NC_EINVALCOORDS

#define NC_EINVALCOORDS   8 /* Coordinates out of Domain */

Definition at line 321 of file netcdf.h.

◆ NC_EMAXATTS

#define NC_EMAXATTS   12 /* MAX_NC_ATTRS exceeded */

Definition at line 325 of file netcdf.h.

◆ NC_EMAXDIMS

#define NC_EMAXDIMS   9 /* MAX_NC_DIMS exceeded */

Definition at line 322 of file netcdf.h.

◆ NC_EMAXNAME

#define NC_EMAXNAME   21 /* MAX_NC_NAME exceeded */

Definition at line 334 of file netcdf.h.

◆ NC_EMAXVARS

#define NC_EMAXVARS   16 /* MAX_NC_VARS exceeded */

Definition at line 329 of file netcdf.h.

◆ NC_ENAMEINUSE

#define NC_ENAMEINUSE   10 /* String match to name in use */

Definition at line 323 of file netcdf.h.

◆ NC_ENFILE

#define NC_ENFILE   2 /* Too many netcdfs open */

Definition at line 315 of file netcdf.h.

◆ NC_ENOTATT

#define NC_ENOTATT   11 /* Attribute not found */

Definition at line 324 of file netcdf.h.

◆ NC_ENOTINDEFINE

#define NC_ENOTINDEFINE   6 /* Operation not allowed in data mode */

Definition at line 319 of file netcdf.h.

◆ NC_ENOTNC

#define NC_ENOTNC   19 /* Not a netcdf file */

Definition at line 332 of file netcdf.h.

◆ NC_ENOTVAR

#define NC_ENOTVAR   17 /* Variable not found */

Definition at line 330 of file netcdf.h.

◆ NC_ENTOOL

#define NC_ENTOOL   NC_EMAXNAME /* Backward compatibility */

Definition at line 335 of file netcdf.h.

◆ NC_EPERM

#define NC_EPERM   5 /* Write to read only */

Definition at line 318 of file netcdf.h.

◆ NC_ESTS

#define NC_ESTS   20 /* In Fortran, string too short */

Definition at line 333 of file netcdf.h.

◆ NC_EUNLIMIT

#define NC_EUNLIMIT   22 /* NC_UNLIMITED size already in use */

Definition at line 336 of file netcdf.h.

◆ NC_EUNLIMPOS

#define NC_EUNLIMPOS   15 /* NC_UNLIMITED in the wrong index */

Definition at line 328 of file netcdf.h.

◆ NC_EXCL

#define NC_EXCL   4 /* on create, don't destroy existing file */

Definition at line 187 of file netcdf.h.

◆ NC_EXDR

#define NC_EXDR   32 /* */

Definition at line 338 of file netcdf.h.

◆ NC_FATAL

#define NC_FATAL   1

Definition at line 348 of file netcdf.h.

◆ NC_FILL

#define NC_FILL   0 /* argument to ncsetfill to clear NC_NOFILL */

Definition at line 196 of file netcdf.h.

◆ NC_GLOBAL

#define NC_GLOBAL   -1

Definition at line 214 of file netcdf.h.

◆ NC_HDIRTY

#define NC_HDIRTY   0x80 /* header info has changed */

Definition at line 192 of file netcdf.h.

◆ NC_HSYNC

#define NC_HSYNC   0x20 /* synchronise whole header on change */

Definition at line 190 of file netcdf.h.

◆ NC_INDEF

#define NC_INDEF   8 /* in define mode, cleared by ncendef */

Definition at line 188 of file netcdf.h.

◆ NC_LINK

#define NC_LINK   0x8000 /* isa link */

Definition at line 194 of file netcdf.h.

◆ NC_NDIRTY

#define NC_NDIRTY   0x40 /* numrecs has changed */

Definition at line 191 of file netcdf.h.

◆ NC_NOCLOBBER

#define NC_NOCLOBBER   (NC_INDEF | NC_EXCL | NC_CREAT | NC_RDWR)

Definition at line 204 of file netcdf.h.

◆ NC_NOERR

#define NC_NOERR   0 /* No Error */

Definition at line 313 of file netcdf.h.

◆ NC_NOFILL

#define NC_NOFILL   0x100 /* Don't fill vars on endef and increase of record */

Definition at line 193 of file netcdf.h.

◆ NC_NOWRITE

#define NC_NOWRITE   0

Definition at line 201 of file netcdf.h.

◆ NC_NSYNC

#define NC_NSYNC   0x10 /* synchronise numrecs on change */

Definition at line 189 of file netcdf.h.

◆ NC_OLD_FILLVALUES

#define NC_OLD_FILLVALUES   0

Definition at line 71 of file netcdf.h.

◆ NC_RDWR

#define NC_RDWR   1 /* read/write, 0 => readonly */

Definition at line 185 of file netcdf.h.

◆ NC_SYSERR

#define NC_SYSERR   -1

Definition at line 339 of file netcdf.h.

◆ NC_UNLIMITED

#define NC_UNLIMITED   0L

Definition at line 209 of file netcdf.h.

◆ NC_VERBOSE

#define NC_VERBOSE   2

Definition at line 349 of file netcdf.h.

◆ NC_WRITE

#define NC_WRITE   NC_RDWR

Definition at line 202 of file netcdf.h.

◆ ncvoid

#define ncvoid   void

Definition at line 36 of file netcdf.h.

◆ PROTO

#define PROTO (   x)    ()

Definition at line 367 of file netcdf.h.

◆ USE_ENUM

#define USE_ENUM

Definition at line 50 of file netcdf.h.

Typedef Documentation

◆ nclong

typedef long nclong

Definition at line 305 of file netcdf.h.

Enumeration Type Documentation

◆ nc_type

enum nc_type
Enumerator
NC_UNSPECIFIED 
NC_BYTE 
NC_CHAR 
NC_SHORT 
NC_LONG 
NC_FLOAT 
NC_DOUBLE 
NC_BITFIELD 
NC_STRING 
NC_IARRAY 
NC_DIMENSION 
NC_VARIABLE 
NC_ATTRIBUTE 
NC_UNSPECIFIED 
NC_BYTE 
NC_CHAR 
NC_SHORT 
NC_LONG 
NC_FLOAT 
NC_DOUBLE 
NC_BITFIELD 
NC_STRING 
NC_IARRAY 
NC_DIMENSION 
NC_VARIABLE 
NC_ATTRIBUTE 

Definition at line 253 of file netcdf.h.

Function Documentation

◆ PROTO() [1/30]

HDFLIBAPI int nccreate PROTO ( (const char *path, int cmode)  )

◆ PROTO() [2/30]

HDFLIBAPI int ncopen PROTO ( (const char *path, int mode)  )

◆ PROTO() [3/30]

HDFLIBAPI int ncredef PROTO ( (int cdfid)  )

◆ PROTO() [4/30]

HDFLIBAPI int ncinquire PROTO ( (int cdfid, int *ndims, int *nvars, int *natts, int *recdim)  )

◆ PROTO() [5/30]

HDFLIBAPI int ncdimdef PROTO ( (int cdfid, const char *name, long length)  )

◆ PROTO() [6/30]

HDFLIBAPI int ncvarid PROTO ( (int cdfid, const char *name )

◆ PROTO() [7/30]

HDFLIBAPI int ncdiminq PROTO ( (int cdfid, int dimid, char *name, long *length)  )

◆ PROTO() [8/30]

HDFLIBAPI int ncdimrename PROTO ( (int cdfid, int dimid, const char *name )

◆ PROTO() [9/30]

HDFLIBAPI int ncvardef PROTO ( (int cdfid, const char *name, nc_type datatype, int ndims, const int *dim)  )

◆ PROTO() [10/30]

HDFLIBAPI int ncvarinq PROTO ( (int cdfid, int varid, char *name, nc_type *datatype, int *ndims, int *dim, int *natts)  )

◆ PROTO() [11/30]

HDFLIBAPI int ncvarput1 PROTO ( (int cdfid, int varid, const long *coords, const void *value)  )

◆ PROTO() [12/30]

HDFLIBAPI int ncvarget1 PROTO ( (int cdfid, int varid, const long *coords, void *value)  )

◆ PROTO() [13/30]

HDFLIBAPI int ncvarput PROTO ( (int cdfid, int varid, const long *start, const long *count, const void *value)  )

◆ PROTO() [14/30]

HDFLIBAPI int ncvarget PROTO ( (int cdfid, int varid, const long *start, const long *count, void *value)  )

◆ PROTO() [15/30]

HDFLIBAPI int ncvarputs PROTO ( (int cdfid, int varid, const long *start, const long *count, const long *stride, const void *values )

◆ PROTO() [16/30]

HDFLIBAPI int ncvargets PROTO ( (int cdfid, int varid, const long *start, const long *count, const long *stride, void *values )

◆ PROTO() [17/30]

HDFLIBAPI int ncvarputg PROTO ( (int cdfid, int varid, const long *start, const long *count, const long *stride, const long *imap, const void *values )

◆ PROTO() [18/30]

HDFLIBAPI int ncvargetg PROTO ( (int cdfid, int varid, const long *start, const long *count, const long *stride, const long *imap, void *values )

◆ PROTO() [19/30]

HDFLIBAPI int ncattdel PROTO ( (int cdfid, int varid, const char *name )

◆ PROTO() [20/30]

HDFLIBAPI int ncattput PROTO ( (int cdfid, int varid, const char *name, nc_type datatype, int len, const void *value)  )

◆ PROTO() [21/30]

HDFLIBAPI int ncattinq PROTO ( (int cdfid, int varid, const char *name, nc_type *datatype, int *len )

◆ PROTO() [22/30]

HDFLIBAPI int ncattget PROTO ( (int cdfid, int varid, const char *name, void *value)  )

◆ PROTO() [23/30]

HDFLIBAPI int ncattcopy PROTO ( (int incdf, int invar, const char *name, int outcdf, int outvar)  )

◆ PROTO() [24/30]

HDFLIBAPI int ncattname PROTO ( (int cdfid, int varid, int attnum, char *name )

◆ PROTO() [25/30]

HDFLIBAPI int ncattrename PROTO ( (int cdfid, int varid, const char *name, const char *newname)  )

◆ PROTO() [26/30]

HDFLIBAPI int nctypelen PROTO ( (nc_type datatype )

◆ PROTO() [27/30]

HDFLIBAPI int ncsetfill PROTO ( (int cdfid, int fillmode)  )

◆ PROTO() [28/30]

HDFLIBAPI int ncrecinq PROTO ( (int cdfid, int *nrecvars, int *recvarids, long *recsizes)  )

◆ PROTO() [29/30]

HDFLIBAPI int ncrecput PROTO ( (int cdfid, long recnum, void **datap)  )

◆ PROTO() [30/30]

HDFLIBAPI int ncrecput PROTO ( (int cdfid, long recnum, void *const *datap)  )

Variable Documentation

◆ ncerr

HDFLIBAPI int ncerr

Definition at line 342 of file netcdf.h.

◆ ncopts

HDFLIBAPI int ncopts

Definition at line 351 of file netcdf.h.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53