NEP 4.3.0
NetCDF Expansion Pack
Loading...
Searching...
No Matches
cdffile.c File Reference

CDF file reader functions. More...

#include "config.h"
#include "nep_nc4.h"
#include "cdfinternal.h"
#include <cdf.h>

Macros

#define NUM_TYPES   12

Functions

int nc4_vararray_add (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
static int cdf_type_info (NC_FILE_INFO_T *h5, int cdf_typeid, nc_type *xtypep, int *endiannessp, size_t *type_sizep, char *type_name)
static int nc4_set_var_type (nc_type xtype, int endianness, size_t type_size, char *type_name, NC_TYPE_INFO_T **typep)
static int cdf_read_att (NC_FILE_INFO_T *h5, NC_VAR_INFO_T *var, int a)
static int nc4_var_list_add_full (NC_GRP_INFO_T *grp, const char *name, int ndims, nc_type xtype, int endianness, size_t type_size, char *type_name, void *fill_value, int contiguous, size_t *chunksizes, void *format_var_info, NC_VAR_INFO_T **var)
static int cdf_read_var (NC_FILE_INFO_T *h5, int v)
int NC_CDF_open (const char *path, int mode, int basepe, size_t *chunksizehintp, void *parameters, const NC_Dispatch *dispatch, int ncid)
int NC_CDF_abort (int ncid)
int NC_CDF_close (int ncid, void *ignore)

Variables

static const int ILLEGAL_OPEN_FLAGS = (NC_MMAP|NC_64BIT_OFFSET|NC_DISKLESS|NC_WRITE)

Detailed Description

CDF file reader functions.

Author
Edward Hartnett
Date
2025-11-23

Macro Definition Documentation

◆ NUM_TYPES

#define NUM_TYPES   12

Number of netCDF atomic types.

Function Documentation

◆ cdf_read_att()

int cdf_read_att ( NC_FILE_INFO_T * h5,
NC_VAR_INFO_T * var,
int a )
static

◆ cdf_read_var()

int cdf_read_var ( NC_FILE_INFO_T * h5,
int v )
static

◆ cdf_type_info()

int cdf_type_info ( NC_FILE_INFO_T * h5,
int cdf_typeid,
nc_type * xtypep,
int * endiannessp,
size_t * type_sizep,
char * type_name )
static

◆ nc4_set_var_type()

int nc4_set_var_type ( nc_type xtype,
int endianness,
size_t type_size,
char * type_name,
NC_TYPE_INFO_T ** typep )
static

◆ nc4_var_list_add_full()

int nc4_var_list_add_full ( NC_GRP_INFO_T * grp,
const char * name,
int ndims,
nc_type xtype,
int endianness,
size_t type_size,
char * type_name,
void * fill_value,
int contiguous,
size_t * chunksizes,
void * format_var_info,
NC_VAR_INFO_T ** var )
static

◆ nc4_vararray_add()

int nc4_vararray_add ( NC_GRP_INFO_T * grp,
NC_VAR_INFO_T * var )
extern

◆ NC_CDF_abort()

int NC_CDF_abort ( int ncid)

◆ NC_CDF_close()

int NC_CDF_close ( int ncid,
void * ignore )

◆ 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 )

Variable Documentation

◆ ILLEGAL_OPEN_FLAGS

const int ILLEGAL_OPEN_FLAGS = (NC_MMAP|NC_64BIT_OFFSET|NC_DISKLESS|NC_WRITE)
static