|
NetCDF
4.8.1
|
Go to the documentation of this file.
20 #if defined(_WIN32) || defined(_WIN64)
27 #if defined(__cplusplus)
39 #define NC_LONG NC_INT
49 #define NC_MAX_ATOMIC_TYPE NC_STRING
56 #define NC_COMPOUND 16
60 #define NC_FIRSTUSERTYPEID 32
67 #define NC_FILL_BYTE ((signed char)-127)
68 #define NC_FILL_CHAR ((char)0)
69 #define NC_FILL_SHORT ((short)-32767)
70 #define NC_FILL_INT (-2147483647)
71 #define NC_FILL_FLOAT (9.9692099683868690e+36f)
72 #define NC_FILL_DOUBLE (9.9692099683868690e+36)
73 #define NC_FILL_UBYTE (255)
74 #define NC_FILL_USHORT (65535)
75 #define NC_FILL_UINT (4294967295U)
76 #define NC_FILL_INT64 ((long long)-9223372036854775806LL)
77 #define NC_FILL_UINT64 ((unsigned long long)18446744073709551614ULL)
78 #define NC_FILL_STRING ((char *)"")
89 #define NC_MAX_BYTE 127
90 #define NC_MIN_BYTE (-NC_MAX_BYTE-1)
91 #define NC_MAX_CHAR 255
92 #define NC_MAX_SHORT 32767
93 #define NC_MIN_SHORT (-NC_MAX_SHORT - 1)
94 #define NC_MAX_INT 2147483647
95 #define NC_MIN_INT (-NC_MAX_INT - 1)
96 #define NC_MAX_FLOAT 3.402823466e+38f
97 #define NC_MIN_FLOAT (-NC_MAX_FLOAT)
98 #define NC_MAX_DOUBLE 1.7976931348623157e+308
99 #define NC_MIN_DOUBLE (-NC_MAX_DOUBLE)
100 #define NC_MAX_UBYTE NC_MAX_CHAR
101 #define NC_MAX_USHORT 65535U
102 #define NC_MAX_UINT 4294967295U
103 #define NC_MAX_INT64 (9223372036854775807LL)
104 #define NC_MIN_INT64 (-9223372036854775807LL-1)
105 #define NC_MAX_UINT64 (18446744073709551615ULL)
113 #define _FillValue "_FillValue"
115 #define NC_NOFILL 0x100
125 #define NC_NOWRITE 0x0000
126 #define NC_WRITE 0x0001
128 #define NC_CLOBBER 0x0000
129 #define NC_NOCLOBBER 0x0004
130 #define NC_DISKLESS 0x0008
131 #define NC_MMAP 0x0010
133 #define NC_64BIT_DATA 0x0020
134 #define NC_CDF5 NC_64BIT_DATA
136 #define NC_UDF0 0x0040
137 #define NC_UDF1 0x0080
139 #define NC_CLASSIC_MODEL 0x0100
140 #define NC_64BIT_OFFSET 0x0200
146 #define NC_LOCK 0x0400
150 #define NC_SHARE 0x0800
152 #define NC_NETCDF4 0x1000
157 #define NC_MPIIO 0x2000
158 #define NC_MPIPOSIX NC_MPIIO
159 #define NC_PNETCDF (NC_MPIIO)
161 #define NC_PERSIST 0x4000
162 #define NC_INMEMORY 0x8000
164 #define NC_MAX_MAGIC_NUMBER_LEN 8
173 #define NC_FORMAT_CLASSIC (1)
179 #define NC_FORMAT_64BIT_OFFSET (2)
180 #define NC_FORMAT_64BIT (NC_FORMAT_64BIT_OFFSET)
181 #define NC_FORMAT_NETCDF4 (3)
182 #define NC_FORMAT_NETCDF4_CLASSIC (4)
183 #define NC_FORMAT_64BIT_DATA (5)
186 #define NC_FORMAT_CDF5 NC_FORMAT_64BIT_DATA
189 #define NC_FORMAT_ALL (NC_64BIT_OFFSET|NC_64BIT_DATA|NC_CLASSIC_MODEL|NC_NETCDF4|NC_UDF0|NC_UDF1)
211 #define NC_FORMATX_NC3 (1)
212 #define NC_FORMATX_NC_HDF5 (2)
213 #define NC_FORMATX_NC4 NC_FORMATX_NC_HDF5
214 #define NC_FORMATX_NC_HDF4 (3)
215 #define NC_FORMATX_PNETCDF (4)
216 #define NC_FORMATX_DAP2 (5)
217 #define NC_FORMATX_DAP4 (6)
218 #define NC_FORMATX_UDF0 (8)
219 #define NC_FORMATX_UDF1 (9)
220 #define NC_FORMATX_NCZARR (10)
221 #define NC_FORMATX_UNDEFINED (0)
228 #define NC_FORMAT_NC3 NC_FORMATX_NC3
229 #define NC_FORMAT_NC_HDF5 NC_FORMATX_NC_HDF5
230 #define NC_FORMAT_NC4 NC_FORMATX_NC4
231 #define NC_FORMAT_NC_HDF4 NC_FORMATX_NC_HDF4
232 #define NC_FORMAT_PNETCDF NC_FORMATX_PNETCDF
233 #define NC_FORMAT_DAP2 NC_FORMATX_DAP2
234 #define NC_FORMAT_DAP4 NC_FORMATX_DAP4
235 #define NC_FORMAT_UNDEFINED NC_FORMATX_UNDEFINED
240 #define NC_SIZEHINT_DEFAULT 0
243 #define NC_ALIGN_CHUNK ((size_t)(-1))
246 #define NC_UNLIMITED 0L
273 #define NC_MAX_DIMS 1024
274 #define NC_MAX_ATTRS 8192
275 #define NC_MAX_VARS 8192
276 #define NC_MAX_NAME 256
277 #define NC_MAX_VAR_DIMS 1024
284 #define NC_MAX_HDF4_NAME NC_MAX_NAME
289 #define NC_ENDIAN_NATIVE 0
290 #define NC_ENDIAN_LITTLE 1
291 #define NC_ENDIAN_BIG 2
300 #define NC_CONTIGUOUS 1
302 #define NC_UNKNOWN_STORAGE 3
311 #define NC_NOCHECKSUM 0
312 #define NC_FLETCHER32 1
320 #define NC_NOSHUFFLE 0
324 #define NC_MIN_DEFLATE_LEVEL 0
325 #define NC_MAX_DEFLATE_LEVEL 9
331 #define NC_ISSYSERR(err) ((err) > 0)
340 #define NC_EBADID (-33)
341 #define NC_ENFILE (-34)
342 #define NC_EEXIST (-35)
343 #define NC_EINVAL (-36)
344 #define NC_EPERM (-37)
349 #define NC_ENOTINDEFINE (-38)
358 #define NC_EINDEFINE (-39)
365 #define NC_EINVALCOORDS (-40)
370 #define NC_EMAXDIMS (-41)
372 #define NC_ENAMEINUSE (-42)
373 #define NC_ENOTATT (-43)
374 #define NC_EMAXATTS (-44)
375 #define NC_EBADTYPE (-45)
376 #define NC_EBADDIM (-46)
377 #define NC_EUNLIMPOS (-47)
382 #define NC_EMAXVARS (-48)
387 #define NC_ENOTVAR (-49)
388 #define NC_EGLOBAL (-50)
389 #define NC_ENOTNC (-51)
390 #define NC_ESTS (-52)
391 #define NC_EMAXNAME (-53)
392 #define NC_EUNLIMIT (-54)
393 #define NC_ENORECVARS (-55)
394 #define NC_ECHAR (-56)
403 #define NC_EEDGE (-57)
404 #define NC_ESTRIDE (-58)
405 #define NC_EBADNAME (-59)
412 #define NC_ERANGE (-60)
413 #define NC_ENOMEM (-61)
414 #define NC_EVARSIZE (-62)
415 #define NC_EDIMSIZE (-63)
416 #define NC_ETRUNC (-64)
417 #define NC_EAXISTYPE (-65)
420 #define NC_EDAP (-66)
421 #define NC_ECURL (-67)
423 #define NC_ENODATA (-69)
424 #define NC_EDAPSVC (-70)
425 #define NC_EDAS (-71)
426 #define NC_EDDS (-72)
427 #define NC_EDMR NC_EDDS
428 #define NC_EDATADDS (-73)
429 #define NC_EDATADAP NC_EDATADDS
430 #define NC_EDAPURL (-74)
431 #define NC_EDAPCONSTRAINT (-75)
432 #define NC_ETRANSLATION (-76)
433 #define NC_EACCESS (-77)
434 #define NC_EAUTH (-78)
437 #define NC_ENOTFOUND (-90)
438 #define NC_ECANTREMOVE (-91)
439 #define NC_EINTERNAL (-92)
440 #define NC_EPNETCDF (-93)
445 #define NC4_FIRST_ERROR (-100)
446 #define NC_EHDFERR (-101)
447 #define NC_ECANTREAD (-102)
448 #define NC_ECANTWRITE (-103)
449 #define NC_ECANTCREATE (-104)
450 #define NC_EFILEMETA (-105)
451 #define NC_EDIMMETA (-106)
452 #define NC_EATTMETA (-107)
453 #define NC_EVARMETA (-108)
454 #define NC_ENOCOMPOUND (-109)
455 #define NC_EATTEXISTS (-110)
456 #define NC_ENOTNC4 (-111)
457 #define NC_ESTRICTNC3 (-112)
458 #define NC_ENOTNC3 (-113)
459 #define NC_ENOPAR (-114)
460 #define NC_EPARINIT (-115)
461 #define NC_EBADGRPID (-116)
462 #define NC_EBADTYPID (-117)
463 #define NC_ETYPDEFINED (-118)
464 #define NC_EBADFIELD (-119)
465 #define NC_EBADCLASS (-120)
466 #define NC_EMAPTYPE (-121)
467 #define NC_ELATEFILL (-122)
468 #define NC_ELATEDEF (-123)
469 #define NC_EDIMSCALE (-124)
470 #define NC_ENOGRP (-125)
471 #define NC_ESTORAGE (-126)
472 #define NC_EBADCHUNK (-127)
473 #define NC_ENOTBUILT (-128)
474 #define NC_EDISKLESS (-129)
475 #define NC_ECANTEXTEND (-130)
476 #define NC_EMPI (-131)
478 #define NC_EFILTER (-132)
479 #define NC_ERCFILE (-133)
480 #define NC_ENULLPAD (-134)
481 #define NC_EINMEMORY (-135)
482 #define NC_ENOFILTER (-136)
483 #define NC_ENCZARR (-137)
484 #define NC_ES3 (-138)
485 #define NC_EEMPTY (-139)
486 #define NC_EOBJECT (-140)
487 #define NC_ENOOBJECT (-141)
488 #define NC_EPLUGIN (-142)
490 #define NC4_LAST_ERROR (-142)
493 #define NC_EURL (NC_EDAPURL)
494 #define NC_ECONSTRAINT (NC_EDAPCONSTRAINT)
498 #define DIM_WITHOUT_VARIABLE "This is a netCDF dimension but not a netCDF variable."
503 #define NC_HAVE_NEW_CHUNKING_API 1
510 #if defined(DLL_NETCDF)
511 # if defined(DLL_EXPORT)
512 # define MSC_EXTRA __declspec(dllexport)
514 # define MSC_EXTRA __declspec(dllimport)
521 #define EXTERNL MSC_EXTRA extern
523 #if defined(DLL_NETCDF)
535 typedef struct NC_Dispatch NC_Dispatch;
543 nc__create(
const char *path,
int cmode,
size_t initialsz,
544 size_t *chunksizehintp,
int *ncidp);
547 nc_create(
const char *path,
int cmode,
int *ncidp);
550 nc__open(
const char *path,
int mode,
551 size_t *chunksizehintp,
int *ncidp);
554 nc_open(
const char *path,
int mode,
int *ncidp);
558 nc_inq_path(
int ncid,
size_t *pathlen,
char *path);
563 nc_inq_ncid(
int ncid,
const char *name,
int *grp_ncid);
602 nc_inq_dimids(
int ncid,
int *ndims,
int *dimids,
int include_parents);
616 nc_def_grp(
int parent_ncid,
const char *name,
int *new_ncid);
631 size_t offset,
nc_type field_typeid);
636 size_t offset,
nc_type field_typeid,
637 int ndims,
const int *dim_sizes);
667 size_t *offsetp,
nc_type *field_typeidp,
int *ndimsp,
712 #define NC_COMPOUND_OFFSET(S,M) (offsetof(S,M))
735 nc_put_vlen_element(
int ncid,
int typeid1,
void *vlen_element,
736 size_t len,
const void *data);
739 nc_get_vlen_element(
int ncid,
int typeid1,
const void *vlen_element,
740 size_t *len,
void *data);
752 nc_type *base_nc_typep,
size_t *nfieldsp,
int *classp);
757 size_t len,
const void *op);
761 nc_get_att(
int ncid,
int varid,
const char *name,
void *ip);
781 size_t *base_sizep,
size_t *num_membersp);
806 nc_put_var(
int ncid,
int varid,
const void *op);
814 nc_put_var1(
int ncid,
int varid,
const size_t *indexp,
819 nc_get_var1(
int ncid,
int varid,
const size_t *indexp,
void *ip);
823 nc_put_vara(
int ncid,
int varid,
const size_t *startp,
824 const size_t *countp,
const void *op);
828 nc_get_vara(
int ncid,
int varid,
const size_t *startp,
829 const size_t *countp,
void *ip);
833 nc_put_vars(
int ncid,
int varid,
const size_t *startp,
834 const size_t *countp,
const ptrdiff_t *stridep,
839 nc_get_vars(
int ncid,
int varid,
const size_t *startp,
840 const size_t *countp,
const ptrdiff_t *stridep,
845 nc_put_varm(
int ncid,
int varid,
const size_t *startp,
846 const size_t *countp,
const ptrdiff_t *stridep,
847 const ptrdiff_t *imapp,
const void *op);
851 nc_get_varm(
int ncid,
int varid,
const size_t *startp,
852 const size_t *countp,
const ptrdiff_t *stridep,
853 const ptrdiff_t *imapp,
void *ip);
866 int *deflatep,
int *deflate_levelp);
870 int pixels_per_block);
874 nc_inq_var_szip(
int ncid,
int varid,
int *options_maskp,
int *pixels_per_blockp);
897 nc_def_var_fill(
int ncid,
int varid,
int no_fill,
const void *fill_value);
913 nc_def_var_filter(
int ncid,
int varid,
unsigned int id,
size_t nparams,
const unsigned int* parms);
917 nc_inq_var_filter(
int ncid,
int varid,
unsigned int* idp,
size_t* nparams,
unsigned int* params);
921 nc_set_fill(
int ncid,
int fillmode,
int *old_modep);
926 nc_set_default_format(
int format,
int *old_formatp);
930 nc_set_chunk_cache(
size_t size,
size_t nelems,
float preemption);
934 nc_get_chunk_cache(
size_t *sizep,
size_t *nelemsp,
float *preemptionp);
951 nc__enddef(
int ncid,
size_t h_minfree,
size_t v_align,
952 size_t v_minfree,
size_t r_align);
967 nc_inq(
int ncid,
int *ndimsp,
int *nvarsp,
int *nattsp,
int *unlimdimidp);
996 nc_def_dim(
int ncid,
const char *name,
size_t len,
int *idp);
1002 nc_inq_dim(
int ncid,
int dimid,
char *name,
size_t *lenp);
1017 nc_inq_att(
int ncid,
int varid,
const char *name,
1018 nc_type *xtypep,
size_t *lenp);
1021 nc_inq_attid(
int ncid,
int varid,
const char *name,
int *idp);
1027 nc_inq_attlen(
int ncid,
int varid,
const char *name,
size_t *lenp);
1033 nc_copy_att(
int ncid_in,
int varid_in,
const char *name,
int ncid_out,
int varid_out);
1036 nc_rename_att(
int ncid,
int varid,
const char *name,
const char *newname);
1039 nc_del_att(
int ncid,
int varid,
const char *name);
1045 size_t len,
const char *op);
1052 size_t len,
const char **op);
1059 size_t len,
const unsigned char *op);
1062 nc_get_att_uchar(
int ncid,
int varid,
const char *name,
unsigned char *ip);
1066 size_t len,
const signed char *op);
1073 size_t len,
const short *op);
1080 size_t len,
const int *op);
1087 size_t len,
const long *op);
1094 size_t len,
const float *op);
1101 size_t len,
const double *op);
1108 size_t len,
const unsigned short *op);
1115 size_t len,
const unsigned int *op);
1118 nc_get_att_uint(
int ncid,
int varid,
const char *name,
unsigned int *ip);
1122 size_t len,
const long long *op);
1129 size_t len,
const unsigned long long *op);
1133 unsigned long long *ip);
1141 const int *dimidsp,
int *varidp);
1145 int *ndimsp,
int *dimidsp,
int *nattsp);
1169 nc_copy_var(
int ncid_in,
int varid,
int ncid_out);
1173 #define ncvarcpy(ncid_in, varid, ncid_out) ncvarcopy((ncid_in), (varid), (ncid_out))
1180 nc_put_var1_text(
int ncid,
int varid,
const size_t *indexp,
const char *op);
1187 const unsigned char *op);
1195 const signed char *op);
1210 nc_put_var1_int(
int ncid,
int varid,
const size_t *indexp,
const int *op);
1216 nc_put_var1_long(
int ncid,
int varid,
const size_t *indexp,
const long *op);
1235 const unsigned short *op);
1239 unsigned short *ip);
1243 const unsigned int *op);
1251 const long long *op);
1259 const unsigned long long *op);
1263 unsigned long long *ip);
1278 const size_t *countp,
const char *op);
1282 const size_t *countp,
char *ip);
1286 const size_t *countp,
const unsigned char *op);
1290 const size_t *countp,
unsigned char *ip);
1294 const size_t *countp,
const signed char *op);
1298 const size_t *countp,
signed char *ip);
1302 const size_t *countp,
const short *op);
1306 const size_t *countp,
short *ip);
1310 const size_t *countp,
const int *op);
1314 const size_t *countp,
int *ip);
1318 const size_t *countp,
const long *op);
1322 const size_t *startp,
const size_t *countp,
long *ip);
1326 const size_t *startp,
const size_t *countp,
const float *op);
1330 const size_t *startp,
const size_t *countp,
float *ip);
1334 const size_t *countp,
const double *op);
1338 const size_t *countp,
double *ip);
1342 const size_t *countp,
const unsigned short *op);
1346 const size_t *countp,
unsigned short *ip);
1350 const size_t *countp,
const unsigned int *op);
1354 const size_t *countp,
unsigned int *ip);
1358 const size_t *countp,
const long long *op);
1362 const size_t *countp,
long long *ip);
1366 const size_t *countp,
const unsigned long long *op);
1370 const size_t *countp,
unsigned long long *ip);
1374 const size_t *countp,
const char **op);
1378 const size_t *countp,
char **ip);
1385 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1390 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1395 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1396 const unsigned char *op);
1400 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1405 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1406 const signed char *op);
1410 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1415 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1420 const size_t *countp,
const ptrdiff_t *stridep,
1425 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1430 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1435 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1440 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1445 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1450 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1455 const size_t *startp,
const size_t *countp,
const ptrdiff_t *stridep,
1460 const size_t *countp,
const ptrdiff_t *stridep,
1465 const size_t *countp,
const ptrdiff_t *stridep,
1466 const unsigned short *op);
1470 const size_t *countp,
const ptrdiff_t *stridep,
1471 unsigned short *ip);
1475 const size_t *countp,
const ptrdiff_t *stridep,
1476 const unsigned int *op);
1480 const size_t *countp,
const ptrdiff_t *stridep,
1485 const size_t *countp,
const ptrdiff_t *stridep,
1486 const long long *op);
1490 const size_t *countp,
const ptrdiff_t *stridep,
1495 const size_t *countp,
const ptrdiff_t *stridep,
1496 const unsigned long long *op);
1500 const size_t *countp,
const ptrdiff_t *stridep,
1501 unsigned long long *ip);
1505 const size_t *countp,
const ptrdiff_t *stridep,
1510 const size_t *countp,
const ptrdiff_t *stridep,
1518 const size_t *countp,
const ptrdiff_t *stridep,
1519 const ptrdiff_t *imapp,
const char *op);
1523 const size_t *countp,
const ptrdiff_t *stridep,
1524 const ptrdiff_t *imapp,
char *ip);
1528 const size_t *countp,
const ptrdiff_t *stridep,
1529 const ptrdiff_t *imapp,
const unsigned char *op);
1533 const size_t *countp,
const ptrdiff_t *stridep,
1534 const ptrdiff_t *imapp,
unsigned char *ip);
1538 const size_t *countp,
const ptrdiff_t *stridep,
1539 const ptrdiff_t *imapp,
const signed char *op);
1543 const size_t *countp,
const ptrdiff_t *stridep,
1544 const ptrdiff_t *imapp,
signed char *ip);
1548 const size_t *countp,
const ptrdiff_t *stridep,
1549 const ptrdiff_t *imapp,
const short *op);
1553 const size_t *countp,
const ptrdiff_t *stridep,
1554 const ptrdiff_t *imapp,
short *ip);
1558 const size_t *countp,
const ptrdiff_t *stridep,
1559 const ptrdiff_t *imapp,
const int *op);
1563 const size_t *countp,
const ptrdiff_t *stridep,
1564 const ptrdiff_t *imapp,
int *ip);
1568 const size_t *countp,
const ptrdiff_t *stridep,
1569 const ptrdiff_t *imapp,
const long *op);
1573 const size_t *countp,
const ptrdiff_t *stridep,
1574 const ptrdiff_t *imapp,
long *ip);
1578 const size_t *countp,
const ptrdiff_t *stridep,
1579 const ptrdiff_t *imapp,
const float *op);
1583 const size_t *countp,
const ptrdiff_t *stridep,
1584 const ptrdiff_t *imapp,
float *ip);
1588 const size_t *countp,
const ptrdiff_t *stridep,
1589 const ptrdiff_t *imapp,
const double *op);
1593 const size_t *countp,
const ptrdiff_t *stridep,
1594 const ptrdiff_t * imapp,
double *ip);
1598 const size_t *countp,
const ptrdiff_t *stridep,
1599 const ptrdiff_t * imapp,
const unsigned short *op);
1603 const size_t *countp,
const ptrdiff_t *stridep,
1604 const ptrdiff_t * imapp,
unsigned short *ip);
1608 const size_t *countp,
const ptrdiff_t *stridep,
1609 const ptrdiff_t * imapp,
const unsigned int *op);
1613 const size_t *countp,
const ptrdiff_t *stridep,
1614 const ptrdiff_t * imapp,
unsigned int *ip);
1618 const size_t *countp,
const ptrdiff_t *stridep,
1619 const ptrdiff_t * imapp,
const long long *op);
1623 const size_t *countp,
const ptrdiff_t *stridep,
1624 const ptrdiff_t * imapp,
long long *ip);
1628 const size_t *countp,
const ptrdiff_t *stridep,
1629 const ptrdiff_t * imapp,
const unsigned long long *op);
1633 const size_t *countp,
const ptrdiff_t *stridep,
1634 const ptrdiff_t * imapp,
unsigned long long *ip);
1638 const size_t *countp,
const ptrdiff_t *stridep,
1639 const ptrdiff_t * imapp,
const char **op);
1643 const size_t *countp,
const ptrdiff_t *stridep,
1644 const ptrdiff_t * imapp,
char **ip);
1730 size_t len,
const unsigned char *op);
1736 const unsigned char *op);
1742 const size_t *countp,
const unsigned char *op);
1745 const size_t *countp,
unsigned char *ip);
1748 const size_t *countp,
const ptrdiff_t *stridep,
1749 const unsigned char *op);
1752 const size_t *countp,
const ptrdiff_t *stridep,
1756 const size_t *countp,
const ptrdiff_t *stridep,
1757 const ptrdiff_t * imapp,
const unsigned char *op);
1760 const size_t *countp,
const ptrdiff_t *stridep,
1761 const ptrdiff_t * imapp,
unsigned char *ip);
1771 nc_set_log_level(
int new_level);
1775 #define NC_TURN_OFF_LOGGING (-1)
1785 nc_delete(
const char *path);
1797 nc__create_mp(
const char *path,
int cmode,
size_t initialsz,
int basepe,
1798 size_t *chunksizehintp,
int *ncidp);
1801 nc__open_mp(
const char *path,
int mode,
int basepe,
1802 size_t *chunksizehintp,
int *ncidp);
1805 nc_delete_mp(
const char *path,
int basepe);
1808 nc_set_base_pe(
int ncid,
int pe);
1811 nc_inq_base_pe(
int ncid,
int *pe);
1821 #define FILL_BYTE NC_FILL_BYTE
1822 #define FILL_CHAR NC_FILL_CHAR
1823 #define FILL_SHORT NC_FILL_SHORT
1824 #define FILL_LONG NC_FILL_INT
1825 #define FILL_FLOAT NC_FILL_FLOAT
1826 #define FILL_DOUBLE NC_FILL_DOUBLE
1828 #define MAX_NC_DIMS NC_MAX_DIMS
1829 #define MAX_NC_ATTRS NC_MAX_ATTRS
1830 #define MAX_NC_VARS NC_MAX_VARS
1831 #define MAX_NC_NAME NC_MAX_NAME
1832 #define MAX_VAR_DIMS NC_MAX_VAR_DIMS
1841 #define NC_ENTOOL NC_EMAXNAME
1842 #define NC_EXDR (-32)
1843 #define NC_SYSERR (-31)
1850 #define NC_VERBOSE 2
1856 nc_advise(
const char *cdf_routine_name,
int err,
const char *fmt,...);
1866 nccreate(
const char* path,
int cmode);
1869 ncopen(
const char* path,
int mode);
1890 ncinquire(
int ncid,
int *ndimsp,
int *nvarsp,
int *nattsp,
int *unlimdimp);
1893 ncdimdef(
int ncid,
const char *name,
long len);
1896 ncdimid(
int ncid,
const char *name);
1899 ncdiminq(
int ncid,
int dimid,
char *name,
long *lenp);
1902 ncdimrename(
int ncid,
int dimid,
const char *name);
1906 int len,
const void *op);
1909 ncattinq(
int ncid,
int varid,
const char *name,
nc_type *xtypep,
int *lenp);
1912 ncattget(
int ncid,
int varid,
const char *name,
void *ip);
1915 ncattcopy(
int ncid_in,
int varid_in,
const char *name,
int ncid_out,
1919 ncattname(
int ncid,
int varid,
int attnum,
char *name);
1922 ncattrename(
int ncid,
int varid,
const char *name,
const char *newname);
1925 ncattdel(
int ncid,
int varid,
const char *name);
1929 int ndims,
const int *dimidsp);
1932 ncvarid(
int ncid,
const char *name);
1936 int *ndimsp,
int *dimidsp,
int *nattsp);
1939 ncvarput1(
int ncid,
int varid,
const long *indexp,
const void *op);
1942 ncvarget1(
int ncid,
int varid,
const long *indexp,
void *ip);
1945 ncvarput(
int ncid,
int varid,
const long *startp,
const long *countp,
1949 ncvarget(
int ncid,
int varid,
const long *startp,
const long *countp,
1953 ncvarputs(
int ncid,
int varid,
const long *startp,
const long *countp,
1954 const long *stridep,
const void *op);
1957 ncvargets(
int ncid,
int varid,
const long *startp,
const long *countp,
1958 const long *stridep,
void *ip);
1961 ncvarputg(
int ncid,
int varid,
const long *startp,
const long *countp,
1962 const long *stridep,
const long *imapp,
const void *op);
1965 ncvargetg(
int ncid,
int varid,
const long *startp,
const long *countp,
1966 const long *stridep,
const long *imapp,
void *ip);
1969 ncvarrename(
int ncid,
int varid,
const char *name);
1972 ncrecinq(
int ncid,
int *nrecvarsp,
int *recvaridsp,
long *recsizesp);
1975 ncrecget(
int ncid,
long recnum,
void **datap);
1978 ncrecput(
int ncid,
long recnum,
void *
const *datap);
1983 EXTERNL int nc_initialize(
void);
1989 EXTERNL int nc_finalize(
void);
1991 #if defined(__cplusplus)
2001 #ifndef NC_HAVE_RENAME_GRP
2002 #define NC_HAVE_RENAME_GRP
2005 #ifndef NC_HAVE_INQ_FORMAT_EXTENDED
2006 #define NC_HAVE_INQ_FORMAT_EXTENDED
2009 #define NC_HAVE_META_H
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_inq_varids(int ncid, int *nvars, int *varids)
Get a list of varids associated with a group given a group ID.
EXTERNL int nc_inq_varname(int ncid, int varid, char *name)
EXTERNL int nc_get_att_ubyte(int ncid, int varid, const char *name, unsigned char *ip)
int nc_put_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
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)
EXTERNL int nc_get_att_ulonglong(int ncid, int varid, const char *name, unsigned long long *ip)
int nc_put_var_ubyte(int ncid, int varid, const unsigned char *op)
int nclong
C data type corresponding to a netCDF NC_LONG argument, a signed 32 bit object.
int nc_get_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, double *ip)
EXTERNL int nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp)
EXTERNL int ncvardef(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp)
EXTERNL int nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp)
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_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp)
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_inq_attid(int ncid, int varid, const char *name, int *idp)
#define EXTERNL
Needed for DLL build.
int nc_get_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
int nc_put_vars_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long *op)
int nc_get_vars_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, double *ip)
int nc_get_vars_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char *ip)
int nc_put_var1_short(int ncid, int varid, const size_t *indexp, const short *op)
int nc_put_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char **op)
This is the type of arrays of vlens.
int nc_get_var1_double(int ncid, int varid, const size_t *indexp, double *ip)
EXTERNL int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
Get the full ncid given a group name.
EXTERNL int ncdimid(int ncid, const char *name)
EXTERNL int nc_inq_varnatts(int ncid, int varid, int *nattsp)
Learn how many attributes are associated with a variable.
int nc_put_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, const short *op)
int nc_put_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned int *op)
EXTERNL int nc_def_user_format(int mode_flag, NC_Dispatch *dispatch_table, char *magic_number)
Add handling of user-defined format.
EXTERNL int nc_def_vlen(int ncid, const char *name, nc_type base_typeid, nc_type *xtypep)
int nc_put_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const signed char *op)
int nc_get_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned short *ip)
int nc_get_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, char **ip)
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)
EXTERNL int nc_inq_varndims(int ncid, int varid, int *ndimsp)
Learn how many dimensions are associated with a variable.
int nc_get_vars_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
int nc_put_var_int(int ncid, int varid, const int *op)
int nc_put_var1_double(int ncid, int varid, const size_t *indexp, const double *op)
EXTERNL int ncclose(int ncid)
int nc_put_var1_uchar(int ncid, int varid, const size_t *indexp, const unsigned char *op)
EXTERNL int ncvarid(int ncid, const char *name)
EXTERNL int nc_get_att_string(int ncid, int varid, const char *name, char **ip)
EXTERNL int nc_def_var_szip(int ncid, int varid, int options_mask, int pixels_per_block)
Set szip compression settings on a variable.
int nc_put_var_string(int ncid, int varid, const char **op)
EXTERNL int nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *op)
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)
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_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier)
int nc_put_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
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_redef(int ncid)
int nc_get_var1_longlong(int ncid, int varid, const size_t *indexp, long long *ip)
int nc_get_var_uint(int ncid, int varid, unsigned int *ip)
EXTERNL int nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
int nc_put_var_long(int ncid, int varid, const long *op)
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 ncattdel(int ncid, int varid, const char *name)
EXTERNL int nc_def_var(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
Define a new variable.
EXTERNL int nc_def_opaque(int ncid, size_t size, const char *name, nc_type *xtypep)
int nc_put_var1_float(int ncid, int varid, const size_t *indexp, const float *op)
int nc_put_var1_string(int ncid, int varid, const size_t *indexp, const char **op)
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_insert_compound(int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid)
EXTERNL int nc__enddef(int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align)
EXTERNL int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
Retrieve a list of dimension ids associated with a group.
int nc_get_var_long(int ncid, int varid, long *ip)
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)
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 ncvargets(int ncid, int varid, const long *startp, const long *countp, const long *stridep, void *ip)
EXTERNL int ncrecinq(int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp)
EXTERNL int nc_def_dim(int ncid, const char *name, size_t len, int *idp)
Define a new dimension.
EXTERNL int nc_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp)
Define storage and, if chunked storage is used, chunking parameters for a variable.
EXTERNL int ncredef(int ncid)
EXTERNL int nc_get_att_float(int ncid, int varid, const char *name, float *ip)
EXTERNL int ncvargetg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, void *ip)
EXTERNL int ncattcopy(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
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)
int nc_get_var1_float(int ncid, int varid, const size_t *indexp, float *ip)
int nc_put_var_uint(int ncid, int varid, const unsigned int *op)
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_insert_enum(int ncid, nc_type xtype, const char *name, const void *value)
EXTERNL int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep)
EXTERNL int nc_inq_format(int ncid, int *formatp)
int nc_get_var_int(int ncid, int varid, int *ip)
int nc_put_var_schar(int ncid, int varid, const signed char *op)
EXTERNL int nc_inq_natts(int ncid, int *nattsp)
int nc_get_var_schar(int ncid, int varid, signed char *ip)
EXTERNL int nc_inq_grpname(int ncid, char *name)
Get the name of a group given an ID.
EXTERNL int nc_inq_var_endian(int ncid, int varid, int *endianp)
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_inq_grpname_len(int ncid, size_t *lenp)
Get the length of a group name given an ID.
int nc_put_var1_schar(int ncid, int varid, const size_t *indexp, const signed char *op)
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_inq_format_extended(int ncid, int *formatp, int *modep)
EXTERNL int nc_inq_ndims(int ncid, int *ndimsp)
Find the number of dimensions.
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_put_att_text(int ncid, int varid, const char *name, size_t len, const char *op)
EXTERNL int nc_inq_grps(int ncid, int *numgrps, int *ncids)
Get a list of groups or subgroups from a file or groupID.
EXTERNL int nc_copy_var(int ncid_in, int varid, int ncid_out)
This will copy a variable that is an array of primitive type and its attributes from one file to anot...
EXTERNL int ncdiminq(int ncid, int dimid, char *name, long *lenp)
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_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
int nc_get_var_ulonglong(int ncid, int varid, unsigned long long *ip)
EXTERNL int nc_put_vars(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const void *op)
EXTERNL int ncattget(int ncid, int varid, const char *name, void *ip)
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 ncdimrename(int ncid, int dimid, const char *name)
EXTERNL int ncvarput(int ncid, int varid, const long *startp, const long *countp, const void *op)
EXTERNL int nc_get_var_chunk_cache(int ncid, int varid, size_t *sizep, size_t *nelemsp, float *preemptionp)
Get the per-variable chunk cache settings from the HDF5 layer.
EXTERNL int nc_get_var(int ncid, int varid, void *ip)
int nc_get_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned int *ip)
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)
EXTERNL int ncinquire(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp)
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)
int nc_get_vara_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned long long *ip)
EXTERNL int nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
EXTERNL int nc_put_vara(int ncid, int varid, const size_t *startp, const size_t *countp, const void *op)
EXTERNL int nc_def_var_deflate(int ncid, int varid, int shuffle, int deflate, int deflate_level)
Set the zlib compression and shuffle settings for a variable in an netCDF/HDF5 file.
int nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip)
EXTERNL int nc__open(const char *path, int mode, size_t *chunksizehintp, int *ncidp)
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)
int nc_get_var_text(int ncid, int varid, char *ip)
EXTERNL int ncvarget1(int ncid, int varid, const long *indexp, void *ip)
EXTERNL int nc_del_att(int ncid, int varid, const char *name)
Delete an attribute.
EXTERNL int nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
Find the name and length of a dimension.
EXTERNL int nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
Find the length of a dimension.
EXTERNL int nccreate(const char *path, int cmode)
int nc_get_var_double(int ncid, int varid, double *ip)
int nc_put_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, const char **op)
int nc_put_var_ulonglong(int ncid, int varid, const unsigned long long *op)
EXTERNL int nc_put_var1(int ncid, int varid, const size_t *indexp, const void *op)
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_rename_var(int ncid, int varid, const char *name)
Rename a variable.
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 ncsync(int ncid)
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)
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 ncattrename(int ncid, int varid, const char *name, const char *newname)
void * p
Pointer to VL data.
EXTERNL int nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
Get the full path/groupname of a group/subgroup given an ID.
EXTERNL int nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *ip)
EXTERNL int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
Retrieve a list of types associated with a group.
int nc_get_var_ubyte(int ncid, int varid, unsigned char *ip)
EXTERNL int nc_get_att_long(int ncid, int varid, const char *name, long *ip)
int nc_put_var_longlong(int ncid, int varid, const long long *op)
EXTERNL int nc_free_vlens(size_t len, nc_vlen_t vlens[])
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)
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 ncendef(int ncid)
int nc_get_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, float *ip)
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)
int nc_get_var_short(int ncid, int varid, short *ip)
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)
int nc_put_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const short *op)
int nc_put_var1_long(int ncid, int varid, const size_t *indexp, const long *op)
EXTERNL int nc_put_var(int ncid, int varid, const void *op)
int nc_put_var_ushort(int ncid, int varid, const unsigned short *op)
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_inq_var_deflate(int ncid, int varid, int *shufflep, int *deflatep, int *deflate_levelp)
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 ncvarputs(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const void *op)
EXTERNL int nc_inq_grp_parent(int ncid, int *parent_ncid)
Get the ID of the parent based on a group ID.
EXTERNL int ncvarputg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, const void *op)
EXTERNL int nc_close(int ncid)
int nc_get_var1_ushort(int ncid, int varid, const size_t *indexp, unsigned short *ip)
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)
int nc_put_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, const char *op)
int nc_put_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const long long *op)
EXTERNL int nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid, int *dim_sizes)
EXTERNL int ncattput(int ncid, int varid, const char *name, nc_type xtype, int len, const void *op)
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_inq_dimid(int ncid, const char *name, int *idp)
Find the ID of a dimension from the name.
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_inq_compound_size(int ncid, nc_type xtype, size_t *sizep)
EXTERNL int nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p)
EXTERNL int nc_def_var_endian(int ncid, int varid, int endian)
Define endianness of a variable.
int nc_get_var_float(int ncid, int varid, float *ip)
EXTERNL int nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *op)
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_inq_att(int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp)
int nc_get_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, signed char *ip)
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)
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_def_enum(int ncid, nc_type base_typeid, const char *name, nc_type *typeidp)
int nc_put_var1_ulonglong(int ncid, int varid, const size_t *indexp, const unsigned long long *op)
EXTERNL int ncabort(int ncid)
EXTERNL int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
Return the group ID for a group given the name.
EXTERNL int nc_inq_unlimdim(int ncid, int *unlimdimidp)
Find the ID of the unlimited dimension.
EXTERNL int nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp)
Return number and list of unlimited dimensions.
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_inq_varid(int ncid, const char *name, int *varidp)
int nc_put_var1_uint(int ncid, int varid, const size_t *indexp, const unsigned int *op)
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_abort(int ncid)
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)
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_inq_type(int ncid, nc_type xtype, char *name, size_t *size)
EXTERNL int nc_inq_compound_fieldndims(int ncid, nc_type xtype, int fieldid, int *ndimsp)
int nc_get_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
EXTERNL int ncsetfill(int ncid, int fillmode)
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_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp)
int nc_put_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, const long *op)
int nc_get_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, char *ip)
EXTERNL int nc_get_att_short(int ncid, int varid, const char *name, short *ip)
int nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op)
EXTERNL int nc_copy_att(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
Copy an attribute from one open file to another.
int nc_get_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char **ip)
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)
int nc_get_var_longlong(int ncid, int varid, long long *ip)
EXTERNL int nc_get_att_text(int ncid, int varid, const char *name, char *ip)
EXTERNL int ncrecput(int ncid, long recnum, void *const *datap)
EXTERNL int nc_set_fill(int ncid, int fillmode, int *old_modep)
int nc_get_var1_uchar(int ncid, int varid, const size_t *indexp, unsigned char *ip)
int nc_get_var_ushort(int ncid, int varid, unsigned short *ip)
int nc_get_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, int *ip)
EXTERNL int nc_get_att_schar(int ncid, int varid, const char *name, signed char *ip)
size_t len
Length of VL data (in base type units)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)
Open an existing netCDF file.
int nc_put_var1_ubyte(int ncid, int varid, const size_t *indexp, const unsigned char *op)
EXTERNL int nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *ip)
int nc_put_var_float(int ncid, int varid, const float *op)
EXTERNL int nc_def_var_fletcher32(int ncid, int varid, int fletcher32)
Set checksum for a var.
int nc_get_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, long *ip)
EXTERNL int nc_put_att(int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *op)
EXTERNL int ncvarget(int ncid, int varid, const long *startp, const long *countp, void *ip)
int nc_type
The nc_type type is just an int.
EXTERNL int nc_inq_vartype(int ncid, int varid, nc_type *xtypep)
Learn the type of a variable.
int nc_put_var_double(int ncid, int varid, const double *op)
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_rename_grp(int grpid, const char *name)
Rename a group.
int nc_get_var1_ulonglong(int ncid, int varid, const size_t *indexp, unsigned long long *ip)
EXTERNL int nc_inq_compound_fieldoffset(int ncid, nc_type xtype, int fieldid, size_t *offsetp)
int nc_get_var1_ubyte(int ncid, int varid, const size_t *indexp, unsigned char *ip)
EXTERNL int nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip)
int nc_get_var1_uint(int ncid, int varid, const size_t *indexp, unsigned int *ip)
EXTERNL int nc_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value)
Set the fill value for a variable.
EXTERNL int nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *op)
int nc_get_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, long long *ip)
EXTERNL int ncvarput1(int ncid, int varid, const long *indexp, const void *op)
int nc_get_var_string(int ncid, int varid, char **ip)
int nc_put_var_short(int ncid, int varid, const short *op)
EXTERNL int nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
int nc_put_var1_int(int ncid, int varid, const size_t *indexp, const int *op)
EXTERNL int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
Define a new group.
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 ncopts
V2 API error handling.
EXTERNL int nc_free_vlen(nc_vlen_t *vl)
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 caching.
int nc_put_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, const int *op)
int nc_get_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, short *ip)
int nc_get_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, short *ip)
EXTERNL int nc_inq_user_format(int mode_flag, NC_Dispatch **dispatch_table, char *magic_number)
Inquire about user-defined format.
EXTERNL int nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *ip)
EXTERNL int nc_get_vara(int ncid, int varid, const size_t *startp, const size_t *countp, void *ip)
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_att_uint(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned int *op)
int nc_put_var_text(int ncid, int varid, const char *op)
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_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems, float preemption)
Change the cache settings for a chunked variable.
int nc_put_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned short *op)
EXTERNL int ncattinq(int ncid, int varid, const char *name, nc_type *xtypep, int *lenp)
EXTERNL int nc_inq_path(int ncid, size_t *pathlen, char *path)
EXTERNL int nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equal)
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 const char * nc_strerror(int ncerr)
Given an error number, return an error message.
EXTERNL int nc_inq_nvars(int ncid, int *nvarsp)
Learn the number of variables in a file or group.
EXTERNL int nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
EXTERNL int nc_get_att_longlong(int ncid, int varid, const char *name, long long *ip)
int nc_get_var1_string(int ncid, int varid, const size_t *indexp, char **ip)
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_att_string(int ncid, int varid, const char *name, size_t len, const char **op)
EXTERNL const char * nc_inq_libvers(void)
Return the library version.
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)
int ncerr
V2 API error code.
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)
int nc_put_var1_longlong(int ncid, int varid, const size_t *indexp, const long long *op)
EXTERNL int nc_inq_attname(int ncid, int varid, int attnum, char *name)
EXTERNL int nc_inq_compound_fieldname(int ncid, nc_type xtype, int fieldid, char *name)
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_enddef(int ncid)
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 ncvarinq(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int nc_get_att_int(int ncid, int varid, const char *name, int *ip)
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 void nc_advise(const char *cdf_routine_name, int err, const char *fmt,...)
EXTERNL int nc_get_vars(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, void *ip)
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)
int nc_put_var_uchar(int ncid, int varid, const unsigned char *op)
EXTERNL int ncattname(int ncid, int varid, int attnum, char *name)
int nc_put_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, const double *op)
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)
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_rename_att(int ncid, int varid, const char *name, const char *newname)
Rename an attribute.
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_create(const char *path, int cmode, int *ncidp)
int nc_get_var_uchar(int ncid, int varid, unsigned char *ip)
EXTERNL int nc_inq_compound_name(int ncid, nc_type xtype, char *name)
EXTERNL int nc_inq_compound_fieldindex(int ncid, nc_type xtype, const char *name, int *fieldidp)
int nc_put_var1_ushort(int ncid, int varid, const size_t *indexp, const unsigned short *op)
EXTERNL int nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp)
EXTERNL int ncvarrename(int ncid, int varid, const char *name)
EXTERNL int nc_sync(int ncid)
EXTERNL int nc_show_metadata(int ncid)
Print the metadata for a file.
EXTERNL int nc_rename_dim(int ncid, int dimid, const char *name)
Rename a dimension.
int nc_get_var1_schar(int ncid, int varid, const size_t *indexp, signed char *ip)
EXTERNL int nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long long *op)
int nc_get_var1_int(int ncid, int varid, const size_t *indexp, int *ip)
EXTERNL int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
Get a group ncid given the group name.
EXTERNL int ncopen(const char *path, int mode)
EXTERNL int nc_inq_vlen(int ncid, nc_type xtype, char *name, size_t *datum_sizep, nc_type *base_nc_typep)
EXTERNL int nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int nc_inq_compound_fieldtype(int ncid, nc_type xtype, int fieldid, nc_type *field_typeidp)
int nc_put_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, const float *op)
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_free_string(size_t len, char **data)
Free string space allocated by the library.
EXTERNL int nc_get_att_double(int ncid, int varid, const char *name, double *ip)
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)
int nc_get_var1_short(int ncid, int varid, const size_t *indexp, short *ip)
EXTERNL int nc_get_att(int ncid, int varid, const char *name, void *ip)
int nc_get_var1_long(int ncid, int varid, const size_t *indexp, long *ip)
EXTERNL int nc_inq_enum_member(int ncid, nc_type xtype, int idx, char *name, void *value)
EXTERNL int ncrecget(int ncid, long recnum, void **datap)
EXTERNL int nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep, size_t *nfieldsp)
EXTERNL int nc_inq_vardimid(int ncid, int varid, int *dimidsp)
Learn the dimension IDs associated with a variable.
EXTERNL int nc_inq_dimname(int ncid, int dimid, char *name)
Find out the name of a dimension.
EXTERNL int ncdimdef(int ncid, const char *name, long len)