MISR Toolkit  1.5.1
Macros | Typedefs | Enumerations | Functions | Variables
hdf4_netcdf.h File Reference
#include "H4api_adpt.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, void *value))
 
HDFLIBAPI int ncvarputs 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, 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))
 

Variables

HDFLIBAPI int ncerr
 
HDFLIBAPI int ncopts
 

Macro Definition Documentation

◆ _FillValue

#define _FillValue   "_FillValue"

Definition at line 235 of file hdf4_netcdf.h.

◆ FILL_BYTE

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

Definition at line 83 of file hdf4_netcdf.h.

◆ FILL_CHAR

#define FILL_CHAR   ((char)0)

Definition at line 84 of file hdf4_netcdf.h.

◆ FILL_DOUBLE

#define FILL_DOUBLE   9.9692099683868690e+36

Definition at line 91 of file hdf4_netcdf.h.

◆ FILL_FLOAT

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

Definition at line 90 of file hdf4_netcdf.h.

◆ FILL_LONG

#define FILL_LONG   ((long)-2147483647)

Definition at line 86 of file hdf4_netcdf.h.

◆ FILL_SHORT

#define FILL_SHORT   ((short)-32767)

Definition at line 85 of file hdf4_netcdf.h.

◆ MAX_NC_ATTRS

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

Definition at line 223 of file hdf4_netcdf.h.

◆ MAX_NC_DIMS

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

Definition at line 222 of file hdf4_netcdf.h.

◆ MAX_NC_NAME

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

Definition at line 225 of file hdf4_netcdf.h.

◆ MAX_NC_OPEN

#define MAX_NC_OPEN   32

Definition at line 215 of file hdf4_netcdf.h.

◆ MAX_NC_VARS

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

Definition at line 224 of file hdf4_netcdf.h.

◆ MAX_VAR_DIMS

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

Definition at line 226 of file hdf4_netcdf.h.

◆ NC_CLOBBER

#define NC_CLOBBER   (NC_INDEF | NC_CREAT | NC_RDWR)

Definition at line 197 of file hdf4_netcdf.h.

◆ NC_CREAT

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

Definition at line 180 of file hdf4_netcdf.h.

◆ NC_EBADDIM

#define NC_EBADDIM   14 /* Invalid dimension id */

Definition at line 325 of file hdf4_netcdf.h.

◆ NC_EBADID

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

Definition at line 312 of file hdf4_netcdf.h.

◆ NC_EBADTYPE

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

Definition at line 324 of file hdf4_netcdf.h.

◆ NC_EEXIST

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

Definition at line 314 of file hdf4_netcdf.h.

◆ NC_EGLOBAL

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

Definition at line 329 of file hdf4_netcdf.h.

◆ NC_EINDEFINE

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

Definition at line 318 of file hdf4_netcdf.h.

◆ NC_EINVAL

#define NC_EINVAL   4 /* Invalid Argument */

Definition at line 315 of file hdf4_netcdf.h.

◆ NC_EINVALCOORDS

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

Definition at line 319 of file hdf4_netcdf.h.

◆ NC_EMAXATTS

#define NC_EMAXATTS   12 /* MAX_NC_ATTRS exceeded */

Definition at line 323 of file hdf4_netcdf.h.

◆ NC_EMAXDIMS

#define NC_EMAXDIMS   9 /* MAX_NC_DIMS exceeded */

Definition at line 320 of file hdf4_netcdf.h.

◆ NC_EMAXNAME

#define NC_EMAXNAME   21 /* MAX_NC_NAME exceeded */

Definition at line 332 of file hdf4_netcdf.h.

◆ NC_EMAXVARS

#define NC_EMAXVARS   16 /* MAX_NC_VARS exceeded */

Definition at line 327 of file hdf4_netcdf.h.

◆ NC_ENAMEINUSE

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

Definition at line 321 of file hdf4_netcdf.h.

◆ NC_ENFILE

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

Definition at line 313 of file hdf4_netcdf.h.

◆ NC_ENOTATT

#define NC_ENOTATT   11 /* Attribute not found */

Definition at line 322 of file hdf4_netcdf.h.

◆ NC_ENOTINDEFINE

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

Definition at line 317 of file hdf4_netcdf.h.

◆ NC_ENOTNC

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

Definition at line 330 of file hdf4_netcdf.h.

◆ NC_ENOTVAR

#define NC_ENOTVAR   17 /* Variable not found */

Definition at line 328 of file hdf4_netcdf.h.

◆ NC_ENTOOL

#define NC_ENTOOL   NC_EMAXNAME /* Backward compatibility */

Definition at line 333 of file hdf4_netcdf.h.

◆ NC_EPERM

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

Definition at line 316 of file hdf4_netcdf.h.

◆ NC_ESTS

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

Definition at line 331 of file hdf4_netcdf.h.

◆ NC_EUNLIMIT

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

Definition at line 334 of file hdf4_netcdf.h.

◆ NC_EUNLIMPOS

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

Definition at line 326 of file hdf4_netcdf.h.

◆ NC_EXCL

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

Definition at line 181 of file hdf4_netcdf.h.

◆ NC_EXDR

#define NC_EXDR   32 /* */

Definition at line 336 of file hdf4_netcdf.h.

◆ NC_FATAL

#define NC_FATAL   1

Definition at line 346 of file hdf4_netcdf.h.

◆ NC_FILL

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

Definition at line 190 of file hdf4_netcdf.h.

◆ NC_GLOBAL

#define NC_GLOBAL   -1

Definition at line 208 of file hdf4_netcdf.h.

◆ NC_HDIRTY

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

Definition at line 186 of file hdf4_netcdf.h.

◆ NC_HSYNC

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

Definition at line 184 of file hdf4_netcdf.h.

◆ NC_INDEF

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

Definition at line 182 of file hdf4_netcdf.h.

◆ NC_LINK

#define NC_LINK   0x8000 /* isa link */

Definition at line 188 of file hdf4_netcdf.h.

◆ NC_NDIRTY

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

Definition at line 185 of file hdf4_netcdf.h.

◆ NC_NOCLOBBER

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

Definition at line 198 of file hdf4_netcdf.h.

◆ NC_NOERR

#define NC_NOERR   0 /* No Error */

Definition at line 311 of file hdf4_netcdf.h.

◆ NC_NOFILL

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

Definition at line 187 of file hdf4_netcdf.h.

◆ NC_NOWRITE

#define NC_NOWRITE   0

Definition at line 195 of file hdf4_netcdf.h.

◆ NC_NSYNC

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

Definition at line 183 of file hdf4_netcdf.h.

◆ NC_OLD_FILLVALUES

#define NC_OLD_FILLVALUES   0

Definition at line 74 of file hdf4_netcdf.h.

◆ NC_RDWR

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

Definition at line 179 of file hdf4_netcdf.h.

◆ NC_SYSERR

#define NC_SYSERR   -1

Definition at line 337 of file hdf4_netcdf.h.

◆ NC_UNLIMITED

#define NC_UNLIMITED   0L

Definition at line 203 of file hdf4_netcdf.h.

◆ NC_VERBOSE

#define NC_VERBOSE   2

Definition at line 347 of file hdf4_netcdf.h.

◆ NC_WRITE

#define NC_WRITE   NC_RDWR

Definition at line 196 of file hdf4_netcdf.h.

◆ ncvoid

#define ncvoid   void

Definition at line 34 of file hdf4_netcdf.h.

◆ PROTO

#define PROTO (   x)    ()

Definition at line 361 of file hdf4_netcdf.h.

◆ USE_ENUM

#define USE_ENUM

Definition at line 53 of file hdf4_netcdf.h.

Typedef Documentation

◆ nclong

typedef long nclong

Definition at line 303 of file hdf4_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 247 of file hdf4_netcdf.h.

Function Documentation

◆ PROTO() [1/26]

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

◆ PROTO() [2/26]

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

◆ PROTO() [3/26]

HDFLIBAPI int ncredef PROTO ( (int cdfid)  )

◆ PROTO() [4/26]

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

◆ PROTO() [5/26]

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

◆ PROTO() [6/26]

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

◆ PROTO() [7/26]

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

◆ PROTO() [8/26]

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

◆ PROTO() [9/26]

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

◆ PROTO() [10/26]

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

◆ PROTO() [11/26]

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

◆ PROTO() [12/26]

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

◆ PROTO() [13/26]

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

◆ PROTO() [14/26]

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

◆ PROTO() [15/26]

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

◆ PROTO() [16/26]

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

◆ PROTO() [17/26]

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

◆ PROTO() [18/26]

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

◆ PROTO() [19/26]

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

◆ PROTO() [20/26]

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

◆ PROTO() [21/26]

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

◆ PROTO() [22/26]

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

◆ PROTO() [23/26]

HDFLIBAPI int nctypelen PROTO ( (nc_type datatype )

◆ PROTO() [24/26]

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

◆ PROTO() [25/26]

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

◆ PROTO() [26/26]

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

Variable Documentation

◆ ncerr

HDFLIBAPI int ncerr

Definition at line 340 of file hdf4_netcdf.h.

◆ ncopts

HDFLIBAPI int ncopts

Definition at line 349 of file hdf4_netcdf.h.


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