NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
cdfdispatch.h File Reference

Public types and prototypes for the CDF UDF dispatch layer. More...

#include "config.h"
#include "ncdispatch.h"
#include "nep.h"

Go to the source code of this file.

Data Structures

struct  NC_VAR_CDF_INFO
 
struct  NC_CDF_FILE_INFO
 

Macros

#define NC_FORMATX_NC_CDF   NC_FORMATX_UDF0
 
#define NC_MAX_CDF_DIMS   32
 
#define CDF_INIT_OK()   (NC_CDF_initialize() != NULL)
 
#define CDF_INIT_AND_ASSIGN(ret)
 

Typedefs

typedef struct NC_VAR_CDF_INFO NC_VAR_CDF_INFO_T
 
typedef struct NC_CDF_FILE_INFO NC_CDF_FILE_INFO_T
 

Functions

int NC_CDF_open (const char *path, int mode, int basepe, size_t *chunksizehintp, void *parameters, const NC_Dispatch *, int)
 
int NC_CDF_abort (int ncid)
 
int NC_CDF_close (int ncid, void *ignore)
 
int NC_CDF_inq_format (int ncid, int *formatp)
 
int NC_CDF_inq_format_extended (int ncid, int *formatp, int *modep)
 
int NC_CDF_get_vara (int ncid, int varid, const size_t *start, const size_t *count, void *value, nc_type)
 
NC_Dispatch * NC_CDF_initialize (void)
 
int NC_CDF_finalize (void)
 

Variables

const NC_Dispatch * CDF_dispatch_table
 

Detailed Description

Public types and prototypes for the CDF UDF dispatch layer.

Author
Edward Hartnett
Date
2025-11-23

Macro Definition Documentation

◆ CDF_INIT_AND_ASSIGN

#define CDF_INIT_AND_ASSIGN (   ret)
Value:
do { \
NC_Dispatch *_d = NC_CDF_initialize(); \
(ret) = (_d != NULL) ? NC_NOERR : NC_ENOTNC; \
} while(0)
NC_Dispatch * NC_CDF_initialize(void)
Definition cdfdispatch.c:125

◆ CDF_INIT_OK

#define CDF_INIT_OK ( )    (NC_CDF_initialize() != NULL)

◆ NC_FORMATX_NC_CDF

#define NC_FORMATX_NC_CDF   NC_FORMATX_UDF0

CDF format uses UDF4 slot for dispatch table model field (see NEP.h for slot allocation)

◆ NC_MAX_CDF_DIMS

#define NC_MAX_CDF_DIMS   32

This is the max number of dimensions for a CDF SD dataset (from CDF documentation).

Typedef Documentation

◆ NC_CDF_FILE_INFO_T

◆ NC_VAR_CDF_INFO_T

Function Documentation

◆ NC_CDF_abort()

int NC_CDF_abort ( int  ncid)
extern

◆ NC_CDF_close()

int NC_CDF_close ( int  ncid,
void *  ignore 
)
extern

◆ NC_CDF_finalize()

int NC_CDF_finalize ( void  )
extern

◆ NC_CDF_get_vara()

int NC_CDF_get_vara ( int  ncid,
int  varid,
const size_t *  start,
const size_t *  count,
void *  value,
nc_type   
)
extern

◆ NC_CDF_initialize()

NC_Dispatch * NC_CDF_initialize ( void  )
extern

◆ NC_CDF_inq_format()

int NC_CDF_inq_format ( int  ncid,
int *  formatp 
)
extern

◆ NC_CDF_inq_format_extended()

int NC_CDF_inq_format_extended ( int  ncid,
int *  formatp,
int *  modep 
)
extern

◆ NC_CDF_open()

int NC_CDF_open ( const char *  path,
int  mode,
int  basepe,
size_t *  chunksizehintp,
void *  parameters,
const NC_Dispatch *  dispatch,
int  ncid 
)
extern

Variable Documentation

◆ CDF_dispatch_table

const NC_Dispatch* CDF_dispatch_table
extern