![]() |
NetCDF
4.4.0-rc3
|
Main header file for the C API. More...
#include <stddef.h>
#include <errno.h>
Go to the source code of this file.
Data Structures | |
struct | nc_vlen_t |
This is the type of arrays of vlens. More... | |
Macros | |
#define | NC_NAT 0 |
Not A Type. | |
#define | NC_BYTE 1 |
signed 1 byte integer | |
#define | NC_CHAR 2 |
ISO/ASCII character. | |
#define | NC_SHORT 3 |
signed 2 byte integer | |
#define | NC_INT 4 |
signed 4 byte integer | |
#define | NC_LONG NC_INT |
deprecated, but required for backward compatibility. More... | |
#define | NC_FLOAT 5 |
single precision floating point number | |
#define | NC_DOUBLE 6 |
double precision floating point number | |
#define | NC_UBYTE 7 |
unsigned 1 byte int | |
#define | NC_USHORT 8 |
unsigned 2-byte int | |
#define | NC_UINT 9 |
unsigned 4-byte int | |
#define | NC_INT64 10 |
signed 8-byte int | |
#define | NC_UINT64 11 |
unsigned 8-byte int | |
#define | NC_STRING 12 |
string | |
#define | NC_MAX_ATOMIC_TYPE NC_STRING |
#define | NC_VLEN 13 |
vlen (variable-length) types | |
#define | NC_OPAQUE 14 |
opaque types | |
#define | NC_ENUM 15 |
enum types | |
#define | NC_COMPOUND 16 |
compound types | |
#define | NC_FIRSTUSERTYPEID 32 |
#define | _FillValue "_FillValue" |
Name of fill value attribute. More... | |
#define | NC_FILL 0 |
Argument to nc_set_fill() to clear NC_NOFILL. | |
#define | NC_NOFILL 0x100 |
Argument to nc_set_fill() to turn off filling of data. More... | |
#define | NC_NOWRITE 0x0000 |
Set read-only access for nc_open(). More... | |
#define | NC_WRITE 0x0001 |
Set read-write access for nc_open(). More... | |
#define | NC_CLOBBER 0x0000 |
Destroy existing file. More... | |
#define | NC_NOCLOBBER 0x0004 |
Don't destroy existing file. More... | |
#define | NC_DISKLESS 0x0008 |
Use diskless file. More... | |
#define | NC_MMAP 0x0010 |
Use diskless file with mmap. More... | |
#define | NC_INMEMORY 0x0020 |
Read from memory. More... | |
#define | NC_CLASSIC_MODEL 0x0100 |
Enforce classic model. More... | |
#define | NC_64BIT_OFFSET 0x0200 |
Use large (64-bit) file offsets. More... | |
#define | NC_LOCK 0x0400 |
#define | NC_SHARE 0x0800 |
Share updates, limit caching. More... | |
#define | NC_NETCDF4 0x1000 |
Use netCDF-4/HDF5 format. More... | |
#define | NC_MPIIO 0x2000 |
Turn on MPI I/O. More... | |
#define | NC_MPIPOSIX 0x4000 |
Turn on MPI POSIX I/O. More... | |
#define | NC_PNETCDF 0x8000 |
Use parallel-netcdf library. More... | |
#define | NC_SIZEHINT_DEFAULT 0 |
Let nc__create() or nc__open() figure out a suitable buffer size. More... | |
#define | NC_ALIGN_CHUNK ((size_t)(-1)) |
In nc__enddef(), align to the buffer size. More... | |
#define | NC_UNLIMITED 0L |
Size argument to nc_def_dim() for an unlimited dimension. More... | |
#define | NC_GLOBAL -1 |
Attribute id to put/get a global attribute. More... | |
#define | NC_MAX_HDF4_NAME 64 |
This is the max size of an SD dataset name in HDF4 (from HDF4 documentation). More... | |
#define | NC_ISSYSERR(err) ((err) > 0) |
The netcdf version 3 functions all return integer error status. More... | |
#define | NC_NOERR 0 |
No Error. | |
#define | NC2_ERR (-1) |
Returned for all errors in the v2 API. More... | |
#define | NC_EBADID (-33) |
Not a netcdf id. More... | |
#define | NC_ENFILE (-34) |
Too many netcdfs open. | |
#define | NC_EEXIST (-35) |
netcdf file exists && NC_NOCLOBBER | |
#define | NC_EINVAL (-36) |
Invalid Argument. | |
#define | NC_EPERM (-37) |
Write to read only. | |
#define | NC_ENOTINDEFINE (-38) |
Operation not allowed in data mode. More... | |
#define | NC_EINDEFINE (-39) |
Operation not allowed in define mode. More... | |
#define | NC_EINVALCOORDS (-40) |
Index exceeds dimension bound. More... | |
#define | NC_EMAXDIMS (-41) |
NC_MAX_DIMS exceeded. | |
#define | NC_ENAMEINUSE (-42) |
String match to name in use. | |
#define | NC_ENOTATT (-43) |
Attribute not found. | |
#define | NC_EMAXATTS (-44) |
NC_MAX_ATTRS exceeded. | |
#define | NC_EBADTYPE (-45) |
Not a netcdf data type. | |
#define | NC_EBADDIM (-46) |
Invalid dimension id or name. | |
#define | NC_EUNLIMPOS (-47) |
NC_UNLIMITED in the wrong index. | |
#define | NC_EMAXVARS (-48) |
NC_MAX_VARS exceeded. More... | |
#define | NC_ENOTVAR (-49) |
Variable not found. More... | |
#define | NC_EGLOBAL (-50) |
Action prohibited on NC_GLOBAL varid. | |
#define | NC_ENOTNC (-51) |
Not a netcdf file. | |
#define | NC_ESTS (-52) |
In Fortran, string too short. | |
#define | NC_EMAXNAME (-53) |
NC_MAX_NAME exceeded. | |
#define | NC_EUNLIMIT (-54) |
NC_UNLIMITED size already in use. | |
#define | NC_ENORECVARS (-55) |
nc_rec op when there are no record vars | |
#define | NC_ECHAR (-56) |
Attempt to convert between text & numbers. | |
#define | NC_EEDGE (-57) |
Start+count exceeds dimension bound. More... | |
#define | NC_ESTRIDE (-58) |
Illegal stride. | |
#define | NC_EBADNAME (-59) |
Attribute or variable name contains illegal characters. | |
#define | NC_ERANGE (-60) |
Math result not representable. More... | |
#define | NC_ENOMEM (-61) |
Memory allocation (malloc) failure. | |
#define | NC_EVARSIZE (-62) |
One or more variable sizes violate format constraints. | |
#define | NC_EDIMSIZE (-63) |
Invalid dimension size. | |
#define | NC_ETRUNC (-64) |
File likely truncated or possibly corrupted. | |
#define | NC_EAXISTYPE (-65) |
Unknown axis type. More... | |
#define | NC_EDAP (-66) |
Generic DAP error. | |
#define | NC_ECURL (-67) |
Generic libcurl error. | |
#define | NC_EIO (-68) |
Generic IO error. | |
#define | NC_ENODATA (-69) |
Attempt to access variable with no data. | |
#define | NC_EDAPSVC (-70) |
DAP server error. | |
#define | NC_EDAS (-71) |
Malformed or inaccessible DAS. | |
#define | NC_EDDS (-72) |
Malformed or inaccessible DDS. | |
#define | NC_EDATADDS (-73) |
Malformed or inaccessible DATADDS. | |
#define | NC_EDAPURL (-74) |
Malformed DAP URL. | |
#define | NC_EDAPCONSTRAINT (-75) |
Malformed DAP Constraint. | |
#define | NC_ETRANSLATION (-76) |
Untranslatable construct. | |
#define | NC_EACCESS (-77) |
Access Failure. | |
#define | NC_EAUTH (-78) |
Authorization Failure. | |
#define | NC_ENOTFOUND (-90) |
No such file. | |
#define | NC_ECANTREMOVE (-91) |
Can't remove file. | |
#define | NC4_FIRST_ERROR (-100) |
#define | NC_EHDFERR (-101) |
Error at HDF5 layer. More... | |
#define | NC_ECANTREAD (-102) |
Can't read. More... | |
#define | NC_ECANTWRITE (-103) |
Can't write. More... | |
#define | NC_ECANTCREATE (-104) |
Can't create. More... | |
#define | NC_EFILEMETA (-105) |
Problem with file metadata. More... | |
#define | NC_EDIMMETA (-106) |
Problem with dimension metadata. More... | |
#define | NC_EATTMETA (-107) |
Problem with attribute metadata. More... | |
#define | NC_EVARMETA (-108) |
Problem with variable metadata. More... | |
#define | NC_ENOCOMPOUND (-109) |
Not a compound type. More... | |
#define | NC_EATTEXISTS (-110) |
Attribute already exists. More... | |
#define | NC_ENOTNC4 (-111) |
Attempting netcdf-4 operation on netcdf-3 file. More... | |
#define | NC_ESTRICTNC3 (-112) |
Attempting netcdf-4 operation on strict nc3 netcdf-4 file. More... | |
#define | NC_ENOTNC3 (-113) |
Attempting netcdf-3 operation on netcdf-4 file. More... | |
#define | NC_ENOPAR (-114) |
Parallel operation on file opened for non-parallel access. More... | |
#define | NC_EPARINIT (-115) |
Error initializing for parallel access. More... | |
#define | NC_EBADGRPID (-116) |
Bad group ID. More... | |
#define | NC_EBADTYPID (-117) |
Bad type ID. More... | |
#define | NC_ETYPDEFINED (-118) |
Type has already been defined and may not be edited. More... | |
#define | NC_EBADFIELD (-119) |
Bad field ID. More... | |
#define | NC_EBADCLASS (-120) |
Bad class. More... | |
#define | NC_EMAPTYPE (-121) |
Mapped access for atomic types only. More... | |
#define | NC_ELATEFILL (-122) |
Attempt to define fill value when data already exists. More... | |
#define | NC_ELATEDEF (-123) |
Attempt to define var properties, like deflate, after enddef. More... | |
#define | NC_EDIMSCALE (-124) |
Problem with HDF5 dimscales. More... | |
#define | NC_ENOGRP (-125) |
No group found. More... | |
#define | NC_ESTORAGE (-126) |
Can't specify both contiguous and chunking. More... | |
#define | NC_EBADCHUNK (-127) |
Bad chunksize. More... | |
#define | NC_ENOTBUILT (-128) |
Attempt to use feature that was not turned on when netCDF was built. More... | |
#define | NC_EDISKLESS (-129) |
Error in using diskless access. More... | |
#define | NC_ECANTEXTEND (-130) |
Attempt to extend dataset during ind. More... | |
#define | NC_EMPI (-131) |
MPI operation failed. More... | |
#define | NC4_LAST_ERROR (-131) |
#define | DIM_WITHOUT_VARIABLE "This is a netCDF dimension but not a netCDF variable." |
#define | NC_HAVE_NEW_CHUNKING_API 1 |
#define | NC_EURL (NC_EDAPURL) /* Malformed URL */ |
#define | NC_ECONSTRAINT (NC_EDAPCONSTRAINT) /* Malformed Constraint*/ |
#define | MSC_EXTRA |
#define | EXTERNL MSC_EXTRA extern |
#define | NC_COMPOUND_OFFSET(S, M) (offsetof(S,M)) |
Calculate an offset for creating a compound type. More... | |
#define | ncvarcpy(ncid_in, varid, ncid_out) ncvarcopy((ncid_in), (varid), (ncid_out)) |
#define | nc_set_log_level(e) |
#define | NC_ENTOOL NC_EMAXNAME /* Backward compatibility */ |
#define | NC_EXDR (-32) /* */ |
#define | NC_SYSERR (-31) |
#define | NC_FATAL 1 |
#define | NC_VERBOSE 2 |
#define | END_OF_MAIN() |
NO_NETCDF_2. | |
#define | NC_HAVE_RENAME_GRP |
rename_grp() support. More... | |
#define | NC_HAVE_INQ_FORMAT_EXTENDED |
inq_format_extended() support. More... | |
#define | NC_HAVE_META_H |
#define | NC_FILL_BYTE ((signed char)-127) |
Default fill value. More... | |
#define | NC_FILL_CHAR ((char)0) |
Default fill value. More... | |
#define | NC_FILL_SHORT ((short)-32767) |
Default fill value. More... | |
#define | NC_FILL_INT (-2147483647L) |
Default fill value. More... | |
#define | NC_FILL_FLOAT (9.9692099683868690e+36f) /* near 15 * 2^119 */ |
Default fill value. More... | |
#define | NC_FILL_DOUBLE (9.9692099683868690e+36) |
Default fill value. More... | |
#define | NC_FILL_UBYTE (255) |
Default fill value. More... | |
#define | NC_FILL_USHORT (65535) |
Default fill value. More... | |
#define | NC_FILL_UINT (4294967295U) |
Default fill value. More... | |
#define | NC_FILL_INT64 ((long long)-9223372036854775806LL) |
Default fill value. More... | |
#define | NC_FILL_UINT64 ((unsigned long long)18446744073709551614ULL) |
Default fill value. More... | |
#define | NC_FILL_STRING ((char *)"") |
Default fill value. More... | |
#define | NC_MAX_BYTE 127 |
Max or min values for a type. More... | |
#define | NC_MIN_BYTE (-NC_MAX_BYTE-1) |
Max or min values for a type. More... | |
#define | NC_MAX_CHAR 255 |
Max or min values for a type. More... | |
#define | NC_MAX_SHORT 32767 |
Max or min values for a type. More... | |
#define | NC_MIN_SHORT (-NC_MAX_SHORT - 1) |
Max or min values for a type. More... | |
#define | NC_MAX_INT 2147483647 |
Max or min values for a type. More... | |
#define | NC_MIN_INT (-NC_MAX_INT - 1) |
Max or min values for a type. More... | |
#define | NC_MAX_FLOAT 3.402823466e+38f |
Max or min values for a type. More... | |
#define | NC_MIN_FLOAT (-NC_MAX_FLOAT) |
Max or min values for a type. More... | |
#define | NC_MAX_DOUBLE 1.7976931348623157e+308 |
Max or min values for a type. More... | |
#define | NC_MIN_DOUBLE (-NC_MAX_DOUBLE) |
Max or min values for a type. More... | |
#define | NC_MAX_UBYTE NC_MAX_CHAR |
Max or min values for a type. More... | |
#define | NC_MAX_USHORT 65535U |
Max or min values for a type. More... | |
#define | NC_MAX_UINT 4294967295U |
Max or min values for a type. More... | |
#define | NC_MAX_INT64 (9223372036854775807LL) |
Max or min values for a type. More... | |
#define | NC_MIN_INT64 (-9223372036854775807LL-1) |
Max or min values for a type. More... | |
#define | NC_MAX_UINT64 (18446744073709551615ULL) |
Max or min values for a type. More... | |
#define | X_INT64_MAX (9223372036854775807LL) |
Max or min values for a type. More... | |
#define | X_INT64_MIN (-X_INT64_MAX - 1) |
Max or min values for a type. More... | |
#define | X_UINT64_MAX (18446744073709551615ULL) |
Max or min values for a type. More... | |
#define | NC_FORMAT_CLASSIC (1) |
Format specifier for nc_set_default_format() and returned by nc_inq_format. More... | |
#define | NC_FORMAT_64BIT (2) |
Format specifier for nc_set_default_format() and returned by nc_inq_format. More... | |
#define | NC_FORMAT_NETCDF4 (3) |
Format specifier for nc_set_default_format() and returned by nc_inq_format. More... | |
#define | NC_FORMAT_NETCDF4_CLASSIC (4) |
Format specifier for nc_set_default_format() and returned by nc_inq_format. More... | |
#define | NC_FORMAT_NC3 (1) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_NC_HDF5 (2) /* netCDF-4 subset of HDF5 */ |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_NC_HDF4 (3) /* netCDF-4 subset of HDF4 */ |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_PNETCDF (4) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_DAP2 (5) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_DAP4 (6) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_FORMAT_UNDEFINED (0) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1. More... | |
#define | NC_MAX_DIMS 1024 |
Maximum for classic library. More... | |
#define | NC_MAX_ATTRS 8192 |
Maximum for classic library. More... | |
#define | NC_MAX_VARS 8192 |
Maximum for classic library. More... | |
#define | NC_MAX_NAME 256 |
Maximum for classic library. More... | |
#define | NC_MAX_VAR_DIMS 1024 |
max per variable dimensions | |
#define | NC_ENDIAN_NATIVE 0 |
In HDF5 files you can set the endianness of variables with nc_def_var_endian(). More... | |
#define | NC_ENDIAN_LITTLE 1 |
In HDF5 files you can set the endianness of variables with nc_def_var_endian(). More... | |
#define | NC_ENDIAN_BIG 2 |
In HDF5 files you can set the endianness of variables with nc_def_var_endian(). More... | |
#define | NC_CHUNKED 0 |
In HDF5 files you can set storage for each variable to be either contiguous or chunked, with nc_def_var_chunking(). More... | |
#define | NC_CONTIGUOUS 1 |
In HDF5 files you can set storage for each variable to be either contiguous or chunked, with nc_def_var_chunking(). More... | |
#define | NC_NOCHECKSUM 0 |
In HDF5 files you can set check-summing for each variable. More... | |
#define | NC_FLETCHER32 1 |
In HDF5 files you can set check-summing for each variable. More... | |
#define | NC_NOSHUFFLE 0 |
Control the HDF5 shuffle filter. More... | |
#define | NC_SHUFFLE 1 |
Control the HDF5 shuffle filter. More... | |
#define | FILL_BYTE NC_FILL_BYTE |
Backward compatible alias. More... | |
#define | FILL_CHAR NC_FILL_CHAR |
Backward compatible alias. More... | |
#define | FILL_SHORT NC_FILL_SHORT |
Backward compatible alias. More... | |
#define | FILL_LONG NC_FILL_INT |
Backward compatible alias. More... | |
#define | FILL_FLOAT NC_FILL_FLOAT |
Backward compatible alias. More... | |
#define | FILL_DOUBLE NC_FILL_DOUBLE |
Backward compatible alias. More... | |
#define | MAX_NC_DIMS NC_MAX_DIMS |
Backward compatible alias. More... | |
#define | MAX_NC_ATTRS NC_MAX_ATTRS |
Backward compatible alias. More... | |
#define | MAX_NC_VARS NC_MAX_VARS |
Backward compatible alias. More... | |
#define | MAX_NC_NAME NC_MAX_NAME |
Backward compatible alias. More... | |
#define | MAX_VAR_DIMS NC_MAX_VAR_DIMS |
Backward compatible alias. More... | |
Typedefs | |
typedef int | nc_type |
The nc_type type is just an int. More... | |
typedef int | nclong |
Functions | |
EXTERNL const char * | nc_inq_libvers (void) |
EXTERNL const char * | nc_strerror (int ncerr) |
Given an error number, return an error message. More... | |
EXTERNL int | nc__create (const char *path, int cmode, size_t initialsz, size_t *chunksizehintp, int *ncidp) |
Create a netCDF file with some extra parameters controlling classic file cacheing. More... | |
EXTERNL int | nc_create (const char *path, int cmode, int *ncidp) |
Create a new netCDF file. More... | |
EXTERNL int | nc__open (const char *path, int mode, size_t *chunksizehintp, int *ncidp) |
Open a netCDF file with extra performance parameters for the classic library. More... | |
EXTERNL int | nc_open (const char *path, int mode, int *ncidp) |
Open an existing netCDF file. More... | |
EXTERNL int | nc_inq_path (int ncid, size_t *pathlen, char *path) |
Get the file pathname (or the opendap URL) which was used to open/create the ncid's file. More... | |
EXTERNL int | nc_inq_ncid (int ncid, const char *name, int *grp_ncid) |
EXTERNL int | nc_inq_grps (int ncid, int *numgrps, int *ncids) |
EXTERNL int | nc_inq_grpname (int ncid, char *name) |
EXTERNL int | nc_inq_grpname_full (int ncid, size_t *lenp, char *full_name) |
EXTERNL int | nc_inq_grpname_len (int ncid, size_t *lenp) |
EXTERNL int | nc_inq_grp_parent (int ncid, int *parent_ncid) |
EXTERNL int | nc_inq_grp_ncid (int ncid, const char *grp_name, int *grp_ncid) |
This has same semantics as nc_inq_ncid. More... | |
EXTERNL int | nc_inq_grp_full_ncid (int ncid, const char *full_name, int *grp_ncid) |
EXTERNL int | nc_inq_varids (int ncid, int *nvars, int *varids) |
EXTERNL int | nc_inq_dimids (int ncid, int *ndims, int *dimids, int include_parents) |
EXTERNL int | nc_inq_typeids (int ncid, int *ntypes, int *typeids) |
EXTERNL int | nc_inq_type_equal (int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equal) |
EXTERNL int | nc_def_grp (int parent_ncid, const char *name, int *new_ncid) |
EXTERNL int | nc_rename_grp (int grpid, const char *name) |
EXTERNL int | nc_def_compound (int ncid, size_t size, const char *name, nc_type *typeidp) |
Create a compound type. More... | |
EXTERNL int | nc_insert_compound (int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid) |
Insert a named field into a compound type. More... | |
EXTERNL int | nc_insert_array_compound (int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid, int ndims, const int *dim_sizes) |
Insert a named array field into a compound type. More... | |
EXTERNL int | nc_inq_type (int ncid, nc_type xtype, char *name, size_t *size) |
Inquire about a type. More... | |
EXTERNL int | nc_inq_typeid (int ncid, const char *name, nc_type *typeidp) |
Find a type by name. More... | |
EXTERNL int | nc_inq_compound (int ncid, nc_type xtype, char *name, size_t *sizep, size_t *nfieldsp) |
Learn about a compound type. More... | |
EXTERNL int | nc_inq_compound_name (int ncid, nc_type xtype, char *name) |
Learn the name of a compound type. More... | |
EXTERNL int | nc_inq_compound_size (int ncid, nc_type xtype, size_t *sizep) |
Learn the size of a compound type. More... | |
EXTERNL int | nc_inq_compound_nfields (int ncid, nc_type xtype, size_t *nfieldsp) |
Learn the number of fields in a compound type. More... | |
EXTERNL int | nc_inq_compound_field (int ncid, nc_type xtype, int fieldid, char *name, size_t *offsetp, nc_type *field_typeidp, int *ndimsp, int *dim_sizesp) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_inq_compound_fieldname (int ncid, nc_type xtype, int fieldid, char *name) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_inq_compound_fieldindex (int ncid, nc_type xtype, const char *name, int *fieldidp) |
Learn the Index of a Named Field in a Compound Type. More... | |
EXTERNL int | nc_inq_compound_fieldoffset (int ncid, nc_type xtype, int fieldid, size_t *offsetp) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_inq_compound_fieldtype (int ncid, nc_type xtype, int fieldid, nc_type *field_typeidp) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_inq_compound_fieldndims (int ncid, nc_type xtype, int fieldid, int *ndimsp) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_inq_compound_fielddim_sizes (int ncid, nc_type xtype, int fieldid, int *dim_sizes) |
Get information about one of the fields of a compound type. More... | |
EXTERNL int | nc_def_vlen (int ncid, const char *name, nc_type base_typeid, nc_type *xtypep) |
Use this function to define a variable length array type. More... | |
EXTERNL int | nc_inq_vlen (int ncid, nc_type xtype, char *name, size_t *datum_sizep, nc_type *base_nc_typep) |
Learn about a VLEN type. More... | |
EXTERNL int | nc_free_vlen (nc_vlen_t *vl) |
Free memory in a VLEN object. More... | |
EXTERNL int | nc_free_vlens (size_t len, nc_vlen_t vlens[]) |
Free an array of vlens given the number of elements and an array. More... | |
EXTERNL int | nc_put_vlen_element (int ncid, int typeid1, void *vlen_element, size_t len, const void *data) |
EXTERNL int | nc_get_vlen_element (int ncid, int typeid1, const void *vlen_element, size_t *len, void *data) |
EXTERNL int | nc_free_string (size_t len, char **data) |
Free string space allocated by the library. More... | |
EXTERNL int | nc_inq_user_type (int ncid, nc_type xtype, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp) |
Learn about a user defined type. More... | |
EXTERNL int | nc_put_att (int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *op) |
Write an attribute. More... | |
EXTERNL int | nc_get_att (int ncid, int varid, const char *name, void *ip) |
Get an attribute of any type. More... | |
EXTERNL int | nc_def_enum (int ncid, nc_type base_typeid, const char *name, nc_type *typeidp) |
Create an enum type. More... | |
EXTERNL int | nc_insert_enum (int ncid, nc_type xtype, const char *name, const void *value) |
Insert a named member into a enum type. More... | |
EXTERNL int | nc_inq_enum (int ncid, nc_type xtype, char *name, nc_type *base_nc_typep, size_t *base_sizep, size_t *num_membersp) |
Learn about a user-define enumeration type. More... | |
EXTERNL int | nc_inq_enum_member (int ncid, nc_type xtype, int idx, char *name, void *value) |
Learn about a about a member of an enum type. More... | |
EXTERNL int | nc_inq_enum_ident (int ncid, nc_type xtype, long long value, char *identifier) |
Get the name which is associated with an enum member value. More... | |
EXTERNL int | nc_def_opaque (int ncid, size_t size, const char *name, nc_type *xtypep) |
Create an opaque type. More... | |
EXTERNL int | nc_inq_opaque (int ncid, nc_type xtype, char *name, size_t *sizep) |
Learn about an opaque type. More... | |
EXTERNL int | nc_put_var (int ncid, int varid, const void *op) |
Write an entire variable with one call. More... | |
EXTERNL int | nc_get_var (int ncid, int varid, void *ip) |
Read an entire variable in one call. More... | |
EXTERNL int | nc_put_var1 (int ncid, int varid, const size_t *indexp, const void *op) |
Write one datum. More... | |
EXTERNL int | nc_get_var1 (int ncid, int varid, const size_t *indexp, void *ip) |
Read a single datum from a variable. More... | |
EXTERNL int | nc_put_vara (int ncid, int varid, const size_t *startp, const size_t *countp, const void *op) |
Write an array of values to a variable. More... | |
EXTERNL int | nc_get_vara (int ncid, int varid, const size_t *startp, const size_t *countp, void *ip) |
Read an array of values from a variable. More... | |
EXTERNL int | nc_put_vars (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const void *op) |
Write a strided array of values to a variable. More... | |
EXTERNL int | nc_get_vars (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, void *ip) |
Read a strided array from a variable. More... | |
EXTERNL int | nc_put_varm (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const void *op) |
Write a mapped array of values to a variable. More... | |
EXTERNL int | nc_get_varm (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, void *ip) |
Read a mapped array from a variable. More... | |
EXTERNL int | nc_def_var_deflate (int ncid, int varid, int shuffle, int deflate, int deflate_level) |
EXTERNL int | nc_inq_var_deflate (int ncid, int varid, int *shufflep, int *deflatep, int *deflate_levelp) |
Learn the storage and deflate settings for a variable. More... | |
EXTERNL int | nc_inq_var_szip (int ncid, int varid, int *options_maskp, int *pixels_per_blockp) |
Learn the szip settings of a variable. More... | |
EXTERNL int | nc_def_var_fletcher32 (int ncid, int varid, int fletcher32) |
EXTERNL int | nc_inq_var_fletcher32 (int ncid, int varid, int *fletcher32p) |
Learn the checksum settings for a variable. More... | |
EXTERNL int | nc_def_var_chunking (int ncid, int varid, int storage, const size_t *chunksizesp) |
EXTERNL int | nc_inq_var_chunking (int ncid, int varid, int *storagep, size_t *chunksizesp) |
This is a wrapper for nc_inq_var_all(). More... | |
EXTERNL int | nc_def_var_fill (int ncid, int varid, int no_fill, const void *fill_value) |
EXTERNL int | nc_inq_var_fill (int ncid, int varid, int *no_fill, void *fill_valuep) |
Learn the fill mode of a variable. More... | |
EXTERNL int | nc_def_var_endian (int ncid, int varid, int endian) |
EXTERNL int | nc_inq_var_endian (int ncid, int varid, int *endianp) |
Find the endianness of a variable. More... | |
EXTERNL int | nc_set_fill (int ncid, int fillmode, int *old_modep) |
Change the fill-value mode to improve write performance. More... | |
EXTERNL int | nc_set_default_format (int format, int *old_formatp) |
EXTERNL int | nc_set_chunk_cache (size_t size, size_t nelems, float preemption) |
EXTERNL int | nc_get_chunk_cache (size_t *sizep, size_t *nelemsp, float *preemptionp) |
EXTERNL int | nc_set_var_chunk_cache (int ncid, int varid, size_t size, size_t nelems, float preemption) |
EXTERNL int | nc_get_var_chunk_cache (int ncid, int varid, size_t *sizep, size_t *nelemsp, float *preemptionp) |
EXTERNL int | nc_redef (int ncid) |
Put open netcdf dataset into define mode. More... | |
EXTERNL int | nc__enddef (int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align) |
Leave define mode with performance tuning. More... | |
EXTERNL int | nc_enddef (int ncid) |
Leave define mode. More... | |
EXTERNL int | nc_sync (int ncid) |
Synchronize an open netcdf dataset to disk. More... | |
EXTERNL int | nc_abort (int ncid) |
EXTERNL int | nc_close (int ncid) |
Close an open netCDF dataset. More... | |
EXTERNL int | nc_inq (int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp) |
Inquire about a file or group. More... | |
EXTERNL int | nc_inq_ndims (int ncid, int *ndimsp) |
Find the number of dimensions. More... | |
EXTERNL int | nc_inq_nvars (int ncid, int *nvarsp) |
EXTERNL int | nc_inq_natts (int ncid, int *nattsp) |
Find number of global or group attributes. More... | |
EXTERNL int | nc_inq_unlimdim (int ncid, int *unlimdimidp) |
Find the ID of the unlimited dimension. More... | |
EXTERNL int | nc_inq_unlimdims (int ncid, int *nunlimdimsp, int *unlimdimidsp) |
Return number and list of unlimited dimensions. More... | |
EXTERNL int | nc_inq_format (int ncid, int *formatp) |
Inquire about the binary format of a netCDF file as presented by the API. More... | |
EXTERNL int | nc_inq_format_extended (int ncid, int *formatp, int *modep) |
Obtain more detailed (vis-a-vis nc_inq_format) format information about an open dataset. More... | |
EXTERNL int | nc_def_dim (int ncid, const char *name, size_t len, int *idp) |
Define a new dimension. More... | |
EXTERNL int | nc_inq_dimid (int ncid, const char *name, int *idp) |
Find the ID of a dimension from the name. More... | |
EXTERNL int | nc_inq_dim (int ncid, int dimid, char *name, size_t *lenp) |
Find the name and length of a dimension. More... | |
EXTERNL int | nc_inq_dimname (int ncid, int dimid, char *name) |
Find out the name of a dimension. More... | |
EXTERNL int | nc_inq_dimlen (int ncid, int dimid, size_t *lenp) |
Find the length of a dimension. More... | |
EXTERNL int | nc_rename_dim (int ncid, int dimid, const char *name) |
Rename a dimension. More... | |
EXTERNL int | nc_inq_att (int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp) |
Return information about a netCDF attribute. More... | |
EXTERNL int | nc_inq_attid (int ncid, int varid, const char *name, int *idp) |
Find an attribute ID. More... | |
EXTERNL int | nc_inq_atttype (int ncid, int varid, const char *name, nc_type *xtypep) |
Find the type of an attribute. More... | |
EXTERNL int | nc_inq_attlen (int ncid, int varid, const char *name, size_t *lenp) |
Find the length of an attribute. More... | |
EXTERNL int | nc_inq_attname (int ncid, int varid, int attnum, char *name) |
Find the name of an attribute. More... | |
EXTERNL int | nc_copy_att (int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out) |
EXTERNL int | nc_rename_att (int ncid, int varid, const char *name, const char *newname) |
Rename an attribute. More... | |
EXTERNL int | nc_del_att (int ncid, int varid, const char *name) |
Delete an attribute. More... | |
EXTERNL int | nc_put_att_text (int ncid, int varid, const char *name, size_t len, const char *op) |
Write a text attribute. More... | |
EXTERNL int | nc_get_att_text (int ncid, int varid, const char *name, char *ip) |
Get an attribute. More... | |
EXTERNL int | nc_put_att_uchar (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op) |
EXTERNL int | nc_get_att_uchar (int ncid, int varid, const char *name, unsigned char *ip) |
EXTERNL int | nc_put_att_schar (int ncid, int varid, const char *name, nc_type xtype, size_t len, const signed char *op) |
EXTERNL int | nc_get_att_schar (int ncid, int varid, const char *name, signed char *ip) |
EXTERNL int | nc_put_att_short (int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *op) |
EXTERNL int | nc_get_att_short (int ncid, int varid, const char *name, short *ip) |
EXTERNL int | nc_put_att_int (int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *op) |
EXTERNL int | nc_get_att_int (int ncid, int varid, const char *name, int *ip) |
EXTERNL int | nc_put_att_long (int ncid, int varid, const char *name, nc_type xtype, size_t len, const long *op) |
EXTERNL int | nc_get_att_long (int ncid, int varid, const char *name, long *ip) |
EXTERNL int | nc_put_att_float (int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *op) |
EXTERNL int | nc_get_att_float (int ncid, int varid, const char *name, float *ip) |
EXTERNL int | nc_put_att_double (int ncid, int varid, const char *name, nc_type xtype, size_t len, const double *op) |
EXTERNL int | nc_get_att_double (int ncid, int varid, const char *name, double *ip) |
EXTERNL int | nc_put_att_ushort (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned short *op) |
EXTERNL int | nc_get_att_ushort (int ncid, int varid, const char *name, unsigned short *ip) |
EXTERNL int | nc_put_att_uint (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned int *op) |
EXTERNL int | nc_get_att_uint (int ncid, int varid, const char *name, unsigned int *ip) |
EXTERNL int | nc_put_att_longlong (int ncid, int varid, const char *name, nc_type xtype, size_t len, const long long *op) |
EXTERNL int | nc_get_att_longlong (int ncid, int varid, const char *name, long long *ip) |
EXTERNL int | nc_put_att_ulonglong (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned long long *op) |
EXTERNL int | nc_get_att_ulonglong (int ncid, int varid, const char *name, unsigned long long *ip) |
EXTERNL int | nc_put_att_string (int ncid, int varid, const char *name, size_t len, const char **op) |
Write a string attribute. More... | |
EXTERNL int | nc_get_att_string (int ncid, int varid, const char *name, char **ip) |
EXTERNL int | nc_def_var (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp) |
Define a new variable. More... | |
EXTERNL int | nc_inq_var (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp) |
Learn about a variable. More... | |
EXTERNL int | nc_inq_varid (int ncid, const char *name, int *varidp) |
Find the ID of a variable, from the name. More... | |
EXTERNL int | nc_inq_varname (int ncid, int varid, char *name) |
Learn the name of a variable. More... | |
EXTERNL int | nc_inq_vartype (int ncid, int varid, nc_type *xtypep) |
Learn the type of a variable. More... | |
EXTERNL int | nc_inq_varndims (int ncid, int varid, int *ndimsp) |
Learn how many dimensions are associated with a variable. More... | |
EXTERNL int | nc_inq_vardimid (int ncid, int varid, int *dimidsp) |
Learn the dimension IDs associated with a variable. More... | |
EXTERNL int | nc_inq_varnatts (int ncid, int varid, int *nattsp) |
Learn how many attributes are associated with a variable. More... | |
EXTERNL int | nc_rename_var (int ncid, int varid, const char *name) |
Rename a variable. More... | |
EXTERNL int | nc_copy_var (int ncid_in, int varid, int ncid_out) |
EXTERNL int | nc_put_var1_text (int ncid, int varid, const size_t *indexp, const char *op) |
EXTERNL int | nc_get_var1_text (int ncid, int varid, const size_t *indexp, char *ip) |
EXTERNL int | nc_put_var1_uchar (int ncid, int varid, const size_t *indexp, const unsigned char *op) |
EXTERNL int | nc_get_var1_uchar (int ncid, int varid, const size_t *indexp, unsigned char *ip) |
EXTERNL int | nc_put_var1_schar (int ncid, int varid, const size_t *indexp, const signed char *op) |
EXTERNL int | nc_get_var1_schar (int ncid, int varid, const size_t *indexp, signed char *ip) |
EXTERNL int | nc_put_var1_short (int ncid, int varid, const size_t *indexp, const short *op) |
EXTERNL int | nc_get_var1_short (int ncid, int varid, const size_t *indexp, short *ip) |
EXTERNL int | nc_put_var1_int (int ncid, int varid, const size_t *indexp, const int *op) |
EXTERNL int | nc_get_var1_int (int ncid, int varid, const size_t *indexp, int *ip) |
EXTERNL int | nc_put_var1_long (int ncid, int varid, const size_t *indexp, const long *op) |
EXTERNL int | nc_get_var1_long (int ncid, int varid, const size_t *indexp, long *ip) |
EXTERNL int | nc_put_var1_float (int ncid, int varid, const size_t *indexp, const float *op) |
EXTERNL int | nc_get_var1_float (int ncid, int varid, const size_t *indexp, float *ip) |
EXTERNL int | nc_put_var1_double (int ncid, int varid, const size_t *indexp, const double *op) |
EXTERNL int | nc_get_var1_double (int ncid, int varid, const size_t *indexp, double *ip) |
EXTERNL int | nc_put_var1_ushort (int ncid, int varid, const size_t *indexp, const unsigned short *op) |
EXTERNL int | nc_get_var1_ushort (int ncid, int varid, const size_t *indexp, unsigned short *ip) |
EXTERNL int | nc_put_var1_uint (int ncid, int varid, const size_t *indexp, const unsigned int *op) |
EXTERNL int | nc_get_var1_uint (int ncid, int varid, const size_t *indexp, unsigned int *ip) |
EXTERNL int | nc_put_var1_longlong (int ncid, int varid, const size_t *indexp, const long long *op) |
EXTERNL int | nc_get_var1_longlong (int ncid, int varid, const size_t *indexp, long long *ip) |
EXTERNL int | nc_put_var1_ulonglong (int ncid, int varid, const size_t *indexp, const unsigned long long *op) |
EXTERNL int | nc_get_var1_ulonglong (int ncid, int varid, const size_t *indexp, unsigned long long *ip) |
EXTERNL int | nc_put_var1_string (int ncid, int varid, const size_t *indexp, const char **op) |
EXTERNL int | nc_get_var1_string (int ncid, int varid, const size_t *indexp, char **ip) |
EXTERNL int | nc_put_vara_text (int ncid, int varid, const size_t *startp, const size_t *countp, const char *op) |
EXTERNL int | nc_get_vara_text (int ncid, int varid, const size_t *startp, const size_t *countp, char *ip) |
EXTERNL int | nc_put_vara_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op) |
EXTERNL int | nc_get_vara_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip) |
EXTERNL int | nc_put_vara_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const signed char *op) |
EXTERNL int | nc_get_vara_schar (int ncid, int varid, const size_t *startp, const size_t *countp, signed char *ip) |
EXTERNL int | nc_put_vara_short (int ncid, int varid, const size_t *startp, const size_t *countp, const short *op) |
EXTERNL int | nc_get_vara_short (int ncid, int varid, const size_t *startp, const size_t *countp, short *ip) |
EXTERNL int | nc_put_vara_int (int ncid, int varid, const size_t *startp, const size_t *countp, const int *op) |
EXTERNL int | nc_get_vara_int (int ncid, int varid, const size_t *startp, const size_t *countp, int *ip) |
EXTERNL int | nc_put_vara_long (int ncid, int varid, const size_t *startp, const size_t *countp, const long *op) |
EXTERNL int | nc_get_vara_long (int ncid, int varid, const size_t *startp, const size_t *countp, long *ip) |
EXTERNL int | nc_put_vara_float (int ncid, int varid, const size_t *startp, const size_t *countp, const float *op) |
EXTERNL int | nc_get_vara_float (int ncid, int varid, const size_t *startp, const size_t *countp, float *ip) |
EXTERNL int | nc_put_vara_double (int ncid, int varid, const size_t *startp, const size_t *countp, const double *op) |
EXTERNL int | nc_get_vara_double (int ncid, int varid, const size_t *startp, const size_t *countp, double *ip) |
EXTERNL int | nc_put_vara_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned short *op) |
EXTERNL int | nc_get_vara_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned short *ip) |
EXTERNL int | nc_put_vara_uint (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned int *op) |
EXTERNL int | nc_get_vara_uint (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned int *ip) |
EXTERNL int | nc_put_vara_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, const long long *op) |
EXTERNL int | nc_get_vara_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, long long *ip) |
EXTERNL int | nc_put_vara_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned long long *op) |
EXTERNL int | nc_get_vara_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned long long *ip) |
EXTERNL int | nc_put_vara_string (int ncid, int varid, const size_t *startp, const size_t *countp, const char **op) |
EXTERNL int | nc_get_vara_string (int ncid, int varid, const size_t *startp, const size_t *countp, char **ip) |
EXTERNL int | nc_put_vars_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char *op) |
EXTERNL int | nc_get_vars_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char *ip) |
EXTERNL int | nc_put_vars_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned char *op) |
EXTERNL int | nc_get_vars_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip) |
EXTERNL int | nc_put_vars_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const signed char *op) |
EXTERNL int | nc_get_vars_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, signed char *ip) |
EXTERNL int | nc_put_vars_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const short *op) |
EXTERNL int | nc_get_vars_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, short *ip) |
EXTERNL int | nc_put_vars_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const int *op) |
EXTERNL int | nc_get_vars_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, int *ip) |
EXTERNL int | nc_put_vars_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long *op) |
EXTERNL int | nc_get_vars_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long *ip) |
EXTERNL int | nc_put_vars_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const float *op) |
EXTERNL int | nc_get_vars_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, float *ip) |
EXTERNL int | nc_put_vars_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const double *op) |
EXTERNL int | nc_get_vars_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, double *ip) |
EXTERNL int | nc_put_vars_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned short *op) |
EXTERNL int | nc_get_vars_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned short *ip) |
EXTERNL int | nc_put_vars_uint (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned int *op) |
EXTERNL int | nc_get_vars_uint (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned int *ip) |
EXTERNL int | nc_put_vars_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long long *op) |
EXTERNL int | nc_get_vars_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long long *ip) |
EXTERNL int | nc_put_vars_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned long long *op) |
EXTERNL int | nc_get_vars_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned long long *ip) |
EXTERNL int | nc_put_vars_string (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char **op) |
EXTERNL int | nc_get_vars_string (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char **ip) |
EXTERNL int | nc_put_varm_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const char *op) |
EXTERNL int | nc_get_varm_text (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, char *ip) |
EXTERNL int | nc_put_varm_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned char *op) |
EXTERNL int | nc_get_varm_uchar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned char *ip) |
EXTERNL int | nc_put_varm_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const signed char *op) |
EXTERNL int | nc_get_varm_schar (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, signed char *ip) |
EXTERNL int | nc_put_varm_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const short *op) |
EXTERNL int | nc_get_varm_short (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, short *ip) |
EXTERNL int | nc_put_varm_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const int *op) |
EXTERNL int | nc_get_varm_int (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, int *ip) |
EXTERNL int | nc_put_varm_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const long *op) |
EXTERNL int | nc_get_varm_long (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, long *ip) |
EXTERNL int | nc_put_varm_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const float *op) |
EXTERNL int | nc_get_varm_float (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, float *ip) |
EXTERNL int | nc_put_varm_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const double *op) |
EXTERNL int | nc_get_varm_double (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, double *ip) |
EXTERNL int | nc_put_varm_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned short *op) |
EXTERNL int | nc_get_varm_ushort (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned short *ip) |
EXTERNL int | nc_put_varm_uint (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned int *op) |
EXTERNL int | nc_get_varm_uint (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned int *ip) |
EXTERNL int | nc_put_varm_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const long long *op) |
EXTERNL int | nc_get_varm_longlong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, long long *ip) |
EXTERNL int | nc_put_varm_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned long long *op) |
EXTERNL int | nc_get_varm_ulonglong (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned long long *ip) |
EXTERNL int | nc_put_varm_string (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const char **op) |
EXTERNL int | nc_get_varm_string (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, char **ip) |
EXTERNL int | nc_put_var_text (int ncid, int varid, const char *op) |
EXTERNL int | nc_get_var_text (int ncid, int varid, char *ip) |
EXTERNL int | nc_put_var_uchar (int ncid, int varid, const unsigned char *op) |
EXTERNL int | nc_get_var_uchar (int ncid, int varid, unsigned char *ip) |
EXTERNL int | nc_put_var_schar (int ncid, int varid, const signed char *op) |
EXTERNL int | nc_get_var_schar (int ncid, int varid, signed char *ip) |
EXTERNL int | nc_put_var_short (int ncid, int varid, const short *op) |
EXTERNL int | nc_get_var_short (int ncid, int varid, short *ip) |
EXTERNL int | nc_put_var_int (int ncid, int varid, const int *op) |
EXTERNL int | nc_get_var_int (int ncid, int varid, int *ip) |
EXTERNL int | nc_put_var_long (int ncid, int varid, const long *op) |
EXTERNL int | nc_get_var_long (int ncid, int varid, long *ip) |
EXTERNL int | nc_put_var_float (int ncid, int varid, const float *op) |
EXTERNL int | nc_get_var_float (int ncid, int varid, float *ip) |
EXTERNL int | nc_put_var_double (int ncid, int varid, const double *op) |
EXTERNL int | nc_get_var_double (int ncid, int varid, double *ip) |
EXTERNL int | nc_put_var_ushort (int ncid, int varid, const unsigned short *op) |
EXTERNL int | nc_get_var_ushort (int ncid, int varid, unsigned short *ip) |
EXTERNL int | nc_put_var_uint (int ncid, int varid, const unsigned int *op) |
EXTERNL int | nc_get_var_uint (int ncid, int varid, unsigned int *ip) |
EXTERNL int | nc_put_var_longlong (int ncid, int varid, const long long *op) |
EXTERNL int | nc_get_var_longlong (int ncid, int varid, long long *ip) |
EXTERNL int | nc_put_var_ulonglong (int ncid, int varid, const unsigned long long *op) |
EXTERNL int | nc_get_var_ulonglong (int ncid, int varid, unsigned long long *ip) |
EXTERNL int | nc_put_var_string (int ncid, int varid, const char **op) |
EXTERNL int | nc_get_var_string (int ncid, int varid, char **ip) |
EXTERNL int | nc_put_att_ubyte (int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op) |
EXTERNL int | nc_get_att_ubyte (int ncid, int varid, const char *name, unsigned char *ip) |
EXTERNL int | nc_put_var1_ubyte (int ncid, int varid, const size_t *indexp, const unsigned char *op) |
EXTERNL int | nc_get_var1_ubyte (int ncid, int varid, const size_t *indexp, unsigned char *ip) |
EXTERNL int | nc_put_vara_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op) |
EXTERNL int | nc_get_vara_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip) |
EXTERNL int | nc_put_vars_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned char *op) |
EXTERNL int | nc_get_vars_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip) |
EXTERNL int | nc_put_varm_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned char *op) |
EXTERNL int | nc_get_varm_ubyte (int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned char *ip) |
EXTERNL int | nc_put_var_ubyte (int ncid, int varid, const unsigned char *op) |
EXTERNL int | nc_get_var_ubyte (int ncid, int varid, unsigned char *ip) |
EXTERNL int | nc_show_metadata (int ncid) |
EXTERNL int | nc__create_mp (const char *path, int cmode, size_t initialsz, int basepe, size_t *chunksizehintp, int *ncidp) |
EXTERNL int | nc__open_mp (const char *path, int mode, int basepe, size_t *chunksizehintp, int *ncidp) |
EXTERNL int | nc_delete (const char *path) |
EXTERNL int | nc_delete_mp (const char *path, int basepe) |
EXTERNL int | nc_set_base_pe (int ncid, int pe) |
EXTERNL int | nc_inq_base_pe (int ncid, int *pe) |
EXTERNL int | nctypelen (nc_type datatype) |
EXTERNL void | nc_advise (const char *cdf_routine_name, int err, const char *fmt,...) |
EXTERNL int | nccreate (const char *path, int cmode) |
EXTERNL int | ncopen (const char *path, int mode) |
EXTERNL int | ncsetfill (int ncid, int fillmode) |
EXTERNL int | ncredef (int ncid) |
EXTERNL int | ncendef (int ncid) |
EXTERNL int | ncsync (int ncid) |
EXTERNL int | ncabort (int ncid) |
EXTERNL int | ncclose (int ncid) |
EXTERNL int | ncinquire (int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp) |
EXTERNL int | ncdimdef (int ncid, const char *name, long len) |
EXTERNL int | ncdimid (int ncid, const char *name) |
EXTERNL int | ncdiminq (int ncid, int dimid, char *name, long *lenp) |
EXTERNL int | ncdimrename (int ncid, int dimid, const char *name) |
EXTERNL int | ncattput (int ncid, int varid, const char *name, nc_type xtype, int len, const void *op) |
EXTERNL int | ncattinq (int ncid, int varid, const char *name, nc_type *xtypep, int *lenp) |
EXTERNL int | ncattget (int ncid, int varid, const char *name, void *ip) |
EXTERNL int | ncattcopy (int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out) |
EXTERNL int | ncattname (int ncid, int varid, int attnum, char *name) |
EXTERNL int | ncattrename (int ncid, int varid, const char *name, const char *newname) |
EXTERNL int | ncattdel (int ncid, int varid, const char *name) |
EXTERNL int | ncvardef (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp) |
EXTERNL int | ncvarid (int ncid, const char *name) |
EXTERNL int | ncvarinq (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp) |
EXTERNL int | ncvarput1 (int ncid, int varid, const long *indexp, const void *op) |
EXTERNL int | ncvarget1 (int ncid, int varid, const long *indexp, void *ip) |
EXTERNL int | ncvarput (int ncid, int varid, const long *startp, const long *countp, const void *op) |
EXTERNL int | ncvarget (int ncid, int varid, const long *startp, const long *countp, void *ip) |
EXTERNL int | ncvarputs (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const void *op) |
EXTERNL int | ncvargets (int ncid, int varid, const long *startp, const long *countp, const long *stridep, void *ip) |
EXTERNL int | ncvarputg (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, const void *op) |
EXTERNL int | ncvargetg (int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, void *ip) |
EXTERNL int | ncvarrename (int ncid, int varid, const char *name) |
EXTERNL int | ncrecinq (int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp) |
EXTERNL int | ncrecget (int ncid, long recnum, void **datap) |
EXTERNL int | ncrecput (int ncid, long recnum, void *const *datap) |
Variables | |
EXTERNL int | ncerr |
EXTERNL int | ncopts |
Main header file for the C API.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 University Corporation for Atmospheric Research/Unidata.
See COPYRIGHT file for more info.
Definition in file netcdf.h.
#define _FillValue "_FillValue" |
Name of fill value attribute.
If you wish a variable to use a different value than the above defaults, create an attribute with the same type as the variable and this reserved name. The value you give the attribute will be used as the fill value for that variable.
#define FILL_BYTE NC_FILL_BYTE |
#define FILL_CHAR NC_FILL_CHAR |
#define FILL_DOUBLE NC_FILL_DOUBLE |
#define FILL_FLOAT NC_FILL_FLOAT |
#define FILL_LONG NC_FILL_INT |
#define FILL_SHORT NC_FILL_SHORT |
#define MAX_NC_ATTRS NC_MAX_ATTRS |
#define MAX_NC_DIMS NC_MAX_DIMS |
#define MAX_NC_NAME NC_MAX_NAME |
#define MAX_NC_VARS NC_MAX_VARS |
#define MAX_VAR_DIMS NC_MAX_VAR_DIMS |
#define NC2_ERR (-1) |
#define NC_64BIT_OFFSET 0x0200 |
Use large (64-bit) file offsets.
Mode flag for nc_create().
#define NC_ALIGN_CHUNK ((size_t)(-1)) |
In nc__enddef(), align to the buffer size.
#define NC_CHUNKED 0 |
#define NC_CLASSIC_MODEL 0x0100 |
#define NC_CLOBBER 0x0000 |
Destroy existing file.
Mode flag for nc_create().
#define NC_COMPOUND_OFFSET | ( | S, | |
M | |||
) | (offsetof(S,M)) |
#define NC_CONTIGUOUS 1 |
#define NC_DISKLESS 0x0008 |
#define NC_EATTMETA (-107) |
#define NC_EBADID (-33) |
#define NC_ECANTEXTEND (-130) |
#define NC_EDIMMETA (-106) |
#define NC_EDISKLESS (-129) |
#define NC_EEDGE (-57) |
Start+count exceeds dimension bound.
The specified edge lengths added to the specified corner would have referenced data out of range for the rank of the specified variable. For example, an edge length that is larger than the corresponding dimension length minus the corner index will cause an error.
#define NC_EINDEFINE (-39) |
Operation not allowed in define mode.
The specified netCDF is in define mode rather than data mode.
With netCDF-4/HDF5 files, this error will not occur, unless NC_CLASSIC_MODEL was used in nc_create().
#define NC_EINVALCOORDS (-40) |
#define NC_ELATEDEF (-123) |
#define NC_ELATEFILL (-122) |
#define NC_EMAPTYPE (-121) |
#define NC_EMAXVARS (-48) |
NC_MAX_VARS exceeded.
Max number of variables exceeded in a classic or 64-bit offset file, or an netCDF-4 file with NC_CLASSIC_MODEL on.
#define NC_ENDIAN_BIG 2 |
#define NC_ENDIAN_LITTLE 1 |
#define NC_ENDIAN_NATIVE 0 |
#define NC_ENOPAR (-114) |
#define NC_ENOTBUILT (-128) |
#define NC_ENOTINDEFINE (-38) |
Operation not allowed in data mode.
This is returned for netCDF classic or 64-bit offset files, or for netCDF-4 files, when they were been created with NC_CLASSIC_MODEL flag in nc_create().
#define NC_ENOTNC3 (-113) |
#define NC_ENOTNC4 (-111) |
#define NC_ENOTVAR (-49) |
#define NC_EPARINIT (-115) |
#define NC_ERANGE (-60) |
#define NC_ESTORAGE (-126) |
#define NC_ESTRICTNC3 (-112) |
#define NC_ETYPDEFINED (-118) |
#define NC_FILL_BYTE ((signed char)-127) |
#define NC_FILL_CHAR ((char)0) |
#define NC_FILL_DOUBLE (9.9692099683868690e+36) |
#define NC_FILL_FLOAT (9.9692099683868690e+36f) /* near 15 * 2^119 */ |
#define NC_FILL_INT (-2147483647L) |
#define NC_FILL_INT64 ((long long)-9223372036854775806LL) |
#define NC_FILL_SHORT ((short)-32767) |
#define NC_FILL_STRING ((char *)"") |
#define NC_FILL_UBYTE (255) |
#define NC_FILL_UINT (4294967295U) |
#define NC_FILL_UINT64 ((unsigned long long)18446744073709551614ULL) |
#define NC_FILL_USHORT (65535) |
#define NC_FLETCHER32 1 |
#define NC_FORMAT_64BIT (2) |
Format specifier for nc_set_default_format() and returned by nc_inq_format.
This returns the format as provided by the API. See nc_inq_format_extended to see the true file format. Starting with version 3.6, there are different format netCDF files. 4.0 introduces the third one.
#define NC_FORMAT_CLASSIC (1) |
Format specifier for nc_set_default_format() and returned by nc_inq_format.
This returns the format as provided by the API. See nc_inq_format_extended to see the true file format. Starting with version 3.6, there are different format netCDF files. 4.0 introduces the third one.
#define NC_FORMAT_DAP2 (5) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_DAP4 (6) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_NC3 (1) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_NC_HDF4 (3) /* netCDF-4 subset of HDF4 */ |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_NC_HDF5 (2) /* netCDF-4 subset of HDF5 */ |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_NETCDF4 (3) |
Format specifier for nc_set_default_format() and returned by nc_inq_format.
This returns the format as provided by the API. See nc_inq_format_extended to see the true file format. Starting with version 3.6, there are different format netCDF files. 4.0 introduces the third one.
#define NC_FORMAT_NETCDF4_CLASSIC (4) |
Format specifier for nc_set_default_format() and returned by nc_inq_format.
This returns the format as provided by the API. See nc_inq_format_extended to see the true file format. Starting with version 3.6, there are different format netCDF files. 4.0 introduces the third one.
#define NC_FORMAT_PNETCDF (4) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_FORMAT_UNDEFINED (0) |
Extended format specifier returned by nc_inq_format_extended() Added in version 4.3.1.
This returns the true format of the underlying data. The function returns two values
#define NC_GLOBAL -1 |
#define NC_HAVE_INQ_FORMAT_EXTENDED |
#define NC_INMEMORY 0x0020 |
#define NC_ISSYSERR | ( | err | ) | ((err) > 0) |
#define NC_LOCK 0x0400 |
#define NC_LONG NC_INT |
#define NC_MAX_ATTRS 8192 |
Maximum for classic library.
In the classic netCDF model there are maximum values for the number of dimensions in the file (NC_MAX_DIMS), the number of global or per variable attributes (NC_MAX_ATTRS), the number of variables in the file (NC_MAX_VARS), and the length of a name (NC_MAX_NAME).
These maximums are enforced by the interface, to facilitate writing applications and utilities. However, nothing is statically allocated to these sizes internally.
These maximums are not used for netCDF-4/HDF5 files unless they were created with the NC_CLASSIC_MODEL flag.
As a rule, NC_MAX_VAR_DIMS <= NC_MAX_DIMS.
#define NC_MAX_BYTE 127 |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_CHAR 255 |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_DIMS 1024 |
Maximum for classic library.
In the classic netCDF model there are maximum values for the number of dimensions in the file (NC_MAX_DIMS), the number of global or per variable attributes (NC_MAX_ATTRS), the number of variables in the file (NC_MAX_VARS), and the length of a name (NC_MAX_NAME).
These maximums are enforced by the interface, to facilitate writing applications and utilities. However, nothing is statically allocated to these sizes internally.
These maximums are not used for netCDF-4/HDF5 files unless they were created with the NC_CLASSIC_MODEL flag.
As a rule, NC_MAX_VAR_DIMS <= NC_MAX_DIMS.
#define NC_MAX_DOUBLE 1.7976931348623157e+308 |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_FLOAT 3.402823466e+38f |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_HDF4_NAME 64 |
#define NC_MAX_INT 2147483647 |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_INT64 (9223372036854775807LL) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_NAME 256 |
Maximum for classic library.
In the classic netCDF model there are maximum values for the number of dimensions in the file (NC_MAX_DIMS), the number of global or per variable attributes (NC_MAX_ATTRS), the number of variables in the file (NC_MAX_VARS), and the length of a name (NC_MAX_NAME).
These maximums are enforced by the interface, to facilitate writing applications and utilities. However, nothing is statically allocated to these sizes internally.
These maximums are not used for netCDF-4/HDF5 files unless they were created with the NC_CLASSIC_MODEL flag.
As a rule, NC_MAX_VAR_DIMS <= NC_MAX_DIMS.
#define NC_MAX_SHORT 32767 |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_UBYTE NC_MAX_CHAR |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_UINT 4294967295U |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_UINT64 (18446744073709551615ULL) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_USHORT 65535U |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MAX_VARS 8192 |
Maximum for classic library.
In the classic netCDF model there are maximum values for the number of dimensions in the file (NC_MAX_DIMS), the number of global or per variable attributes (NC_MAX_ATTRS), the number of variables in the file (NC_MAX_VARS), and the length of a name (NC_MAX_NAME).
These maximums are enforced by the interface, to facilitate writing applications and utilities. However, nothing is statically allocated to these sizes internally.
These maximums are not used for netCDF-4/HDF5 files unless they were created with the NC_CLASSIC_MODEL flag.
As a rule, NC_MAX_VAR_DIMS <= NC_MAX_DIMS.
#define NC_MIN_BYTE (-NC_MAX_BYTE-1) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MIN_DOUBLE (-NC_MAX_DOUBLE) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MIN_FLOAT (-NC_MAX_FLOAT) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MIN_INT (-NC_MAX_INT - 1) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MIN_INT64 (-9223372036854775807LL-1) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MIN_SHORT (-NC_MAX_SHORT - 1) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define NC_MMAP 0x0010 |
Use diskless file with mmap.
Mode flag for nc_open() or nc_create().
#define NC_MPIIO 0x2000 |
Turn on MPI I/O.
Use this in mode flags for both nc_create() and nc_open().
#define NC_MPIPOSIX 0x4000 |
Turn on MPI POSIX I/O.
Use this in mode flags for both nc_create() and nc_open().
#define NC_NETCDF4 0x1000 |
Use netCDF-4/HDF5 format.
Mode flag for nc_create().
#define NC_NOCHECKSUM 0 |
#define NC_NOCLOBBER 0x0004 |
#define NC_NOFILL 0x100 |
Argument to nc_set_fill() to turn off filling of data.
#define NC_NOSHUFFLE 0 |
#define NC_NOWRITE 0x0000 |
Set read-only access for nc_open().
#define NC_PNETCDF 0x8000 |
#define NC_SHARE 0x0800 |
Share updates, limit caching.
Use this in mode flags for both nc_create() and nc_open().
#define NC_SHUFFLE 1 |
Control the HDF5 shuffle filter.
In HDF5 files you can specify that a shuffle filter should be used on each chunk of a variable to improve compression for that variable. This per-variable shuffle property can be set with the function nc_def_var_deflate().
#define NC_SIZEHINT_DEFAULT 0 |
Let nc__create() or nc__open() figure out a suitable buffer size.
#define NC_UNLIMITED 0L |
Size argument to nc_def_dim() for an unlimited dimension.
#define NC_WRITE 0x0001 |
#define X_INT64_MAX (9223372036854775807LL) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define X_INT64_MIN (-X_INT64_MAX - 1) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
#define X_UINT64_MAX (18446744073709551615ULL) |
Max or min values for a type.
Nothing greater/smaller can be stored in a netCDF file for their associated types. Recall that a C compiler may define int to be any length it wants, but a NC_INT is always a 4 byte signed int. On a platform with 64 bit ints, there will be many ints which are outside the range supported by NC_INT. But since NC_INT is an external format, it has to mean the same thing everywhere.
EXTERNL int nc_inq_unlimdims | ( | int | ncid, |
int * | nunlimdimsp, | ||
int * | unlimdimidsp | ||
) |
Return number and list of unlimited dimensions.
In netCDF-4 files, it's possible to have multiple unlimited dimensions. This function returns a list of the unlimited dimension ids visible in a group.
Dimensions are visible in a group if they have been defined in that group, or any ancestor group.
ncid | NetCDF group ID, from a previous call to nc_open, nc_create, nc_def_grp, etc. |
nunlimdimsp | A pointer to an int which will get the number of visible unlimited dimensions. Ignored if NULL. |
unlimdimidsp | A pointer to an already allocated array of int which will get the ids of all visible unlimited dimensions. Ignored if NULL. To allocate the correct length for this array, call nc_inq_unlimdims with a NULL for this parameter and use the nunlimdimsp parameter to get the number of visible unlimited dimensions. |
This function will return one of the following values.