netCDF  4.2.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros | Functions | Variables
nc4file.c File Reference

The netCDF-4 file functions. More...

#include "nc4internal.h"
#include "nc.h"
#include <H5DSpublic.h>
#include "nc4dispatch.h"

Go to the source code of this file.

Macros

#define MIN_DEFLATE_LEVEL   0
 
#define MAX_DEFLATE_LEVEL   9
 
#define REFERENCE_LIST   "REFERENCE_LIST"
 
#define CLASS   "CLASS"
 
#define DIMENSION_LIST   "DIMENSION_LIST"
 
#define NAME   "NAME"
 
#define NUM_TYPES   12
 
#define MAGIC_NUMBER_LEN   4
 
#define NC_HDF5_FILE   1
 
#define NC_HDF4_FILE   2
 
#define CD_NELEMS_ZLIB   1
 
#define CD_NELEMS_SZIP   4
 
#define USE_ITERATE_CODE
 

Functions

int nc4_free_global_hdf_string_typeid ()
 
int nc_set_chunk_cache (size_t size, size_t nelems, float preemption)
 
int nc_get_chunk_cache (size_t *sizep, size_t *nelemsp, float *preemptionp)
 
int nc_set_chunk_cache_ints (int size, int nelems, int preemption)
 
int nc_get_chunk_cache_ints (int *sizep, int *nelemsp, int *preemptionp)
 
int nc4typelen (nc_type type)
 
int NC4_create (const char *path, int cmode, size_t initialsz, int basepe, size_t *chunksizehintp, int use_parallel, void *mpidata, NC_Dispatch *dispatch, NC **ncpp)
 Create a netCDF-4/HDF5 file.
 
int NC4_open (const char *path, int mode, int basepe, size_t *chunksizehintp, int use_parallel, void *mpidata, NC_Dispatch *dispatch, NC **ncpp)
 
int NC4_set_fill (int ncid, int fillmode, int *old_modep)
 
int NC4_redef (int ncid)
 
int NC4__enddef (int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align)
 
int NC4_sync (int ncid)
 
int NC4_abort (int ncid)
 
int NC4_close (int ncid)
 
int NC4_inq (int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
 
int nc4_enddef_netcdf4_file (NC_HDF5_FILE_INFO_T *h5)
 

Variables

size_t nc4_chunk_cache_size = CHUNK_CACHE_SIZE
 
size_t nc4_chunk_cache_nelems = CHUNK_CACHE_NELEMS
 
float nc4_chunk_cache_preemption = CHUNK_CACHE_PREEMPTION
 
int default_create_format
 

Detailed Description

The netCDF-4 file functions.

This file is part of netcdf-4, a netCDF-like interface for HDF5, or a HDF5 backend for netCDF, depending on your point of view.

Copyright 2003, University Corporation for Atmospheric Research. See COPYRIGHT file for copying and redistribution conditions.

Definition in file nc4file.c.

Function Documentation

int NC4_create ( const char *  path,
int  cmode,
size_t  initialsz,
int  basepe,
size_t *  chunksizehintp,
int  use_parallel,
void *  mpidata,
NC_Dispatch *  dispatch,
NC **  ncpp 
)

Create a netCDF-4/HDF5 file.

Parameters
pathThe file name of the new file.
cmodeThe creation mode flag.
initialszIgnored by this function.
basepeIgnored by this function.
chunksizehintpIgnored by this function.
use_parallel0 for sequential, non-zero for parallel I/O.
mpidatapointer to struct holdind data for parallel I/O layer. Ignored if NULL.
dispatchPointer to the dispatch table for this file.
ncppPointer to start of linked list of open files.
Returns
NC_INVAL Invalid input (check cmode).

Definition at line 354 of file nc4file.c.


Generated on Wed Aug 22 2012 14:39:41 for netCDF. NetCDF is a Unidata library.