NetCDF  4.9.2
netcdf.h
Go to the documentation of this file.
1 
13 #ifndef _NETCDF_
14 #define _NETCDF_
15 
16 #include <stddef.h> /* size_t, ptrdiff_t */
17 #include <errno.h> /* netcdf functions sometimes return system errors */
18 
19 /* Required for alloca on Windows */
20 #if defined(_WIN32) || defined(_WIN64)
21 #include <malloc.h>
22 #endif
23 
25 typedef int nc_type;
26 
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30 
31 /*
32  * The netcdf external data types
33  */
34 #define NC_NAT 0
35 #define NC_BYTE 1
36 #define NC_CHAR 2
37 #define NC_SHORT 3
38 #define NC_INT 4
39 #define NC_LONG NC_INT
40 #define NC_FLOAT 5
41 #define NC_DOUBLE 6
42 #define NC_UBYTE 7
43 #define NC_USHORT 8
44 #define NC_UINT 9
45 #define NC_INT64 10
46 #define NC_UINT64 11
47 #define NC_STRING 12
49 #define NC_MAX_ATOMIC_TYPE NC_STRING
51 /* The following are use internally in support of user-defines
52  * types. They are also the class returned by nc_inq_user_type. */
53 #define NC_VLEN 13
54 #define NC_OPAQUE 14
55 #define NC_ENUM 15
56 #define NC_COMPOUND 16
60 #define NC_FIRSTUSERTYPEID 32
61 
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) /* near 15 * 2^119 */
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"
114 #define NC_FILL 0
115 #define NC_NOFILL 0x100
117 /* Define the ioflags bits for nc_create and nc_open.
118  Currently unused in lower 16 bits:
119  0x0002
120  All upper 16 bits are unused except
121  0x20000
122 */
123 
124 /* Lower 16 bits */
125 
126 #define NC_NOWRITE 0x0000
127 #define NC_WRITE 0x0001
129 #define NC_CLOBBER 0x0000
130 #define NC_NOCLOBBER 0x0004
131 #define NC_DISKLESS 0x0008
132 #define NC_MMAP 0x0010
134 #define NC_64BIT_DATA 0x0020
135 #define NC_CDF5 NC_64BIT_DATA
137 #define NC_UDF0 0x0040
138 #define NC_UDF1 0x0080
140 #define NC_CLASSIC_MODEL 0x0100
141 #define NC_64BIT_OFFSET 0x0200
147 #define NC_LOCK 0x0400
148 
151 #define NC_SHARE 0x0800
152 
153 #define NC_NETCDF4 0x1000
158 #define NC_MPIIO 0x2000
159 #define NC_MPIPOSIX NC_MPIIO
160 #define NC_PNETCDF (NC_MPIIO)
162 #define NC_PERSIST 0x4000
163 #define NC_INMEMORY 0x8000
165 /* Upper 16 bits */
166 #define NC_NOATTCREORD 0x20000
167 #define NC_NODIMSCALE_ATTACH 0x40000
169 #define NC_MAX_MAGIC_NUMBER_LEN 8
178 #define NC_FORMAT_CLASSIC (1)
179 /* After adding CDF5 support, the NC_FORMAT_64BIT
180  flag is somewhat confusing. So, it is renamed.
181  Note that the name in the contributed code
182  NC_FORMAT_64BIT was renamed to NC_FORMAT_CDF2
183 */
184 #define NC_FORMAT_64BIT_OFFSET (2)
185 #define NC_FORMAT_64BIT (NC_FORMAT_64BIT_OFFSET)
186 #define NC_FORMAT_NETCDF4 (3)
187 #define NC_FORMAT_NETCDF4_CLASSIC (4)
188 #define NC_FORMAT_64BIT_DATA (5)
189 
190 /* Alias */
191 #define NC_FORMAT_CDF5 NC_FORMAT_64BIT_DATA
192 
193 /* Define a mask covering format flags only */
194 #define NC_FORMAT_ALL (NC_64BIT_OFFSET|NC_64BIT_DATA|NC_CLASSIC_MODEL|NC_NETCDF4|NC_UDF0|NC_UDF1)
195 
216 #define NC_FORMATX_NC3 (1)
217 #define NC_FORMATX_NC_HDF5 (2)
218 #define NC_FORMATX_NC4 NC_FORMATX_NC_HDF5
219 #define NC_FORMATX_NC_HDF4 (3)
220 #define NC_FORMATX_PNETCDF (4)
221 #define NC_FORMATX_DAP2 (5)
222 #define NC_FORMATX_DAP4 (6)
223 #define NC_FORMATX_UDF0 (8)
224 #define NC_FORMATX_UDF1 (9)
225 #define NC_FORMATX_NCZARR (10)
226 #define NC_FORMATX_UNDEFINED (0)
227 
228  /* To avoid breaking compatibility (such as in the python library),
229  we need to retain the NC_FORMAT_xxx format as well. This may come
230  out eventually, as the NC_FORMATX is more clear that it's an extended
231  format specifier.*/
232 
233 #define NC_FORMAT_NC3 NC_FORMATX_NC3
234 #define NC_FORMAT_NC_HDF5 NC_FORMATX_NC_HDF5
235 #define NC_FORMAT_NC4 NC_FORMATX_NC4
236 #define NC_FORMAT_NC_HDF4 NC_FORMATX_NC_HDF4
237 #define NC_FORMAT_PNETCDF NC_FORMATX_PNETCDF
238 #define NC_FORMAT_DAP2 NC_FORMATX_DAP2
239 #define NC_FORMAT_DAP4 NC_FORMATX_DAP4
240 #define NC_FORMAT_UNDEFINED NC_FORMATX_UNDEFINED
245 #define NC_SIZEHINT_DEFAULT 0
246 
248 #define NC_ALIGN_CHUNK ((size_t)(-1))
249 
251 #define NC_UNLIMITED 0L
252 
254 #define NC_GLOBAL -1
255 
278 #define NC_MAX_DIMS 1024 /* not enforced after 4.5.0 */
279 #define NC_MAX_ATTRS 8192 /* not enforced after 4.5.0 */
280 #define NC_MAX_VARS 8192 /* not enforced after 4.5.0 */
281 #define NC_MAX_NAME 256
282 #define NC_MAX_VAR_DIMS 1024
289 #define NC_MAX_HDF4_NAME NC_MAX_NAME
290 
294 #define NC_ENDIAN_NATIVE 0
295 #define NC_ENDIAN_LITTLE 1
296 #define NC_ENDIAN_BIG 2
304 #define NC_CHUNKED 0
305 #define NC_CONTIGUOUS 1
306 #define NC_COMPACT 2
307 #define NC_UNKNOWN_STORAGE 3
308 #define NC_VIRTUAL 4
316 #define NC_NOCHECKSUM 0
317 #define NC_FLETCHER32 1
325 #define NC_NOSHUFFLE 0
326 #define NC_SHUFFLE 1
329 #define NC_MIN_DEFLATE_LEVEL 0
330 #define NC_MAX_DEFLATE_LEVEL 9
332 #define NC_SZIP_NN 32
333 #define NC_SZIP_EC 4
335 #define NC_NOQUANTIZE 0
336 #define NC_QUANTIZE_BITGROOM 1
337 #define NC_QUANTIZE_GRANULARBR 2
338 #define NC_QUANTIZE_BITROUND 3
343 #define NC_QUANTIZE_BITGROOM_ATT_NAME "_QuantizeBitGroomNumberOfSignificantDigits"
344 #define NC_QUANTIZE_GRANULARBR_ATT_NAME "_QuantizeGranularBitRoundNumberOfSignificantDigits"
345 #define NC_QUANTIZE_BITROUND_ATT_NAME "_QuantizeBitRoundNumberOfSignificantBits"
351 #define NC_QUANTIZE_MAX_FLOAT_NSD (7)
352 #define NC_QUANTIZE_MAX_FLOAT_NSB (23)
358 #define NC_QUANTIZE_MAX_DOUBLE_NSD (15)
359 #define NC_QUANTIZE_MAX_DOUBLE_NSB (52)
366 #define NC_ISSYSERR(err) ((err) > 0)
367 
368 #define NC_NOERR 0
369 #define NC2_ERR (-1)
375 #define NC_EBADID (-33)
376 #define NC_ENFILE (-34)
377 #define NC_EEXIST (-35)
378 #define NC_EINVAL (-36)
379 #define NC_EPERM (-37)
384 #define NC_ENOTINDEFINE (-38)
385 
393 #define NC_EINDEFINE (-39)
394 
400 #define NC_EINVALCOORDS (-40)
401 
405 #define NC_EMAXDIMS (-41) /* not enforced after 4.5.0 */
406 
407 #define NC_ENAMEINUSE (-42)
408 #define NC_ENOTATT (-43)
409 #define NC_EMAXATTS (-44)
410 #define NC_EBADTYPE (-45)
411 #define NC_EBADDIM (-46)
412 #define NC_EUNLIMPOS (-47)
417 #define NC_EMAXVARS (-48) /* not enforced after 4.5.0 */
418 
422 #define NC_ENOTVAR (-49)
423 #define NC_EGLOBAL (-50)
424 #define NC_ENOTNC (-51)
425 #define NC_ESTS (-52)
426 #define NC_EMAXNAME (-53)
427 #define NC_EUNLIMIT (-54)
428 #define NC_ENORECVARS (-55)
429 #define NC_ECHAR (-56)
438 #define NC_EEDGE (-57)
439 #define NC_ESTRIDE (-58)
440 #define NC_EBADNAME (-59)
441 /* N.B. following must match value in ncx.h */
442 
447 #define NC_ERANGE (-60)
448 #define NC_ENOMEM (-61)
449 #define NC_EVARSIZE (-62)
450 #define NC_EDIMSIZE (-63)
451 #define NC_ETRUNC (-64)
452 #define NC_EAXISTYPE (-65)
454 /* Following errors are added for DAP */
455 #define NC_EDAP (-66)
456 #define NC_ECURL (-67)
457 #define NC_EIO (-68)
458 #define NC_ENODATA (-69)
459 #define NC_EDAPSVC (-70)
460 #define NC_EDAS (-71)
461 #define NC_EDDS (-72)
462 #define NC_EDMR NC_EDDS
463 #define NC_EDATADDS (-73)
464 #define NC_EDATADAP NC_EDATADDS
465 #define NC_EDAPURL (-74)
466 #define NC_EDAPCONSTRAINT (-75)
467 #define NC_ETRANSLATION (-76)
468 #define NC_EACCESS (-77)
469 #define NC_EAUTH (-78)
471 /* Misc. additional errors */
472 #define NC_ENOTFOUND (-90)
473 #define NC_ECANTREMOVE (-91)
474 #define NC_EINTERNAL (-92)
475 #define NC_EPNETCDF (-93)
477 /* The following was added in support of netcdf-4. Make all netcdf-4
478  error codes < -100 so that errors can be added to netcdf-3 if
479  needed. */
480 #define NC4_FIRST_ERROR (-100)
481 #define NC_EHDFERR (-101)
482 #define NC_ECANTREAD (-102)
483 #define NC_ECANTWRITE (-103)
484 #define NC_ECANTCREATE (-104)
485 #define NC_EFILEMETA (-105)
486 #define NC_EDIMMETA (-106)
487 #define NC_EATTMETA (-107)
488 #define NC_EVARMETA (-108)
489 #define NC_ENOCOMPOUND (-109)
490 #define NC_EATTEXISTS (-110)
491 #define NC_ENOTNC4 (-111)
492 #define NC_ESTRICTNC3 (-112)
493 #define NC_ENOTNC3 (-113)
494 #define NC_ENOPAR (-114)
495 #define NC_EPARINIT (-115)
496 #define NC_EBADGRPID (-116)
497 #define NC_EBADTYPID (-117)
498 #define NC_ETYPDEFINED (-118)
499 #define NC_EBADFIELD (-119)
500 #define NC_EBADCLASS (-120)
501 #define NC_EMAPTYPE (-121)
502 #define NC_ELATEFILL (-122)
503 #define NC_ELATEDEF (-123)
504 #define NC_EDIMSCALE (-124)
505 #define NC_ENOGRP (-125)
506 #define NC_ESTORAGE (-126)
507 #define NC_EBADCHUNK (-127)
508 #define NC_ENOTBUILT (-128)
509 #define NC_EDISKLESS (-129)
510 #define NC_ECANTEXTEND (-130)
511 #define NC_EMPI (-131)
513 #define NC_EFILTER (-132)
514 #define NC_ERCFILE (-133)
515 #define NC_ENULLPAD (-134)
516 #define NC_EINMEMORY (-135)
517 #define NC_ENOFILTER (-136)
518 #define NC_ENCZARR (-137)
519 #define NC_ES3 (-138)
520 #define NC_EEMPTY (-139)
521 #define NC_EOBJECT (-140)
522 #define NC_ENOOBJECT (-141)
523 #define NC_EPLUGIN (-142)
525 #define NC4_LAST_ERROR (-142)
527 /* Errors for all remote access methods(e.g. DAP and CDMREMOTE)*/
528 #define NC_EURL (NC_EDAPURL)
529 #define NC_ECONSTRAINT (NC_EDAPCONSTRAINT)
533 #define DIM_WITHOUT_VARIABLE "This is a netCDF dimension but not a netCDF variable."
534 
538 #define NC_HAVE_NEW_CHUNKING_API 1
539 
540 /*
541  * The Interface
542  */
543 
544 /* Declaration modifiers for DLL support (MSC et al) */
545 #if defined(DLL_NETCDF) /* define when library is a DLL */
546 # if defined(DLL_EXPORT) /* define when building the library */
547 # define MSC_EXTRA __declspec(dllexport)
548 # else
549 # define MSC_EXTRA __declspec(dllimport)
550 # endif
551 # include <io.h>
552 #else
553 #define MSC_EXTRA
554 #endif /* defined(DLL_NETCDF) */
555 
556 #define EXTERNL MSC_EXTRA extern
558 #if defined(DLL_NETCDF) /* define when library is a DLL */
559 EXTERNL int ncerr;
560 EXTERNL int ncopts;
561 #endif
562 
563 EXTERNL const char *
564 nc_inq_libvers(void);
565 
566 EXTERNL const char *
567 nc_strerror(int ncerr);
568 
569 /* Set up user-defined format. */
570 typedef struct NC_Dispatch NC_Dispatch;
571 EXTERNL int
572 nc_def_user_format(int mode_flag, NC_Dispatch *dispatch_table, char *magic_number);
573 
574 EXTERNL int
575 nc_inq_user_format(int mode_flag, NC_Dispatch **dispatch_table, char *magic_number);
576 
577 /* Set the global alignment property */
578 EXTERNL int
579 nc_set_alignment(int threshold, int alignment);
580 
581 /* Get the global alignment property */
582 EXTERNL int
583 nc_get_alignment(int* thresholdp, int* alignmentp);
584 
585 EXTERNL int
586 nc__create(const char *path, int cmode, size_t initialsz,
587  size_t *chunksizehintp, int *ncidp);
588 
589 EXTERNL int
590 nc_create(const char *path, int cmode, int *ncidp);
591 
592 EXTERNL int
593 nc__open(const char *path, int mode,
594  size_t *chunksizehintp, int *ncidp);
595 
596 EXTERNL int
597 nc_open(const char *path, int mode, int *ncidp);
598 
599 /* Learn the path used to open/create the file. */
600 EXTERNL int
601 nc_inq_path(int ncid, size_t *pathlen, char *path);
602 
603 /* Given an ncid and group name (NULL gets root group), return
604  * locid. */
605 EXTERNL int
606 nc_inq_ncid(int ncid, const char *name, int *grp_ncid);
607 
608 /* Given a location id, return the number of groups it contains, and
609  * an array of their locids. */
610 EXTERNL int
611 nc_inq_grps(int ncid, int *numgrps, int *ncids);
612 
613 /* Given locid, find name of group. (Root group is named "/".) */
614 EXTERNL int
615 nc_inq_grpname(int ncid, char *name);
616 
617 /* Given ncid, find full name and len of full name. (Root group is
618  * named "/", with length 1.) */
619 EXTERNL int
620 nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name);
621 
622 /* Given ncid, find len of full name. */
623 EXTERNL int
624 nc_inq_grpname_len(int ncid, size_t *lenp);
625 
626 /* Given an ncid, find the ncid of its parent group. */
627 EXTERNL int
628 nc_inq_grp_parent(int ncid, int *parent_ncid);
629 
630 /* Given a name and parent ncid, find group ncid. */
631 EXTERNL int
632 nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid);
633 
634 /* Given a full name and ncid, find group ncid. */
635 EXTERNL int
636 nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid);
637 
638 /* Get a list of ids for all the variables in a group. */
639 EXTERNL int
640 nc_inq_varids(int ncid, int *nvars, int *varids);
641 
642 /* Find all dimids for a location. This finds all dimensions in a
643  * group, or any of its parents. */
644 EXTERNL int
645 nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents);
646 
647 /* Find all user-defined types for a location. This finds all
648  * user-defined types in a group. */
649 EXTERNL int
650 nc_inq_typeids(int ncid, int *ntypes, int *typeids);
651 
652 /* Are two types equal? */
653 EXTERNL int
654 nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
655  nc_type typeid2, int *equal);
656 
657 /* Create a group. its ncid is returned in the new_ncid pointer. */
658 EXTERNL int
659 nc_def_grp(int parent_ncid, const char *name, int *new_ncid);
660 
661 /* Rename a group */
662 EXTERNL int
663 nc_rename_grp(int grpid, const char *name);
664 
665 /* Here are functions for dealing with compound types. */
666 
667 /* Create a compound type. */
668 EXTERNL int
669 nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp);
670 
671 /* Insert a named field into a compound type. */
672 EXTERNL int
673 nc_insert_compound(int ncid, nc_type xtype, const char *name,
674  size_t offset, nc_type field_typeid);
675 
676 /* Insert a named array into a compound type. */
677 EXTERNL int
678 nc_insert_array_compound(int ncid, nc_type xtype, const char *name,
679  size_t offset, nc_type field_typeid,
680  int ndims, const int *dim_sizes);
681 
682 /* Get the name and size of a type. */
683 EXTERNL int
684 nc_inq_type(int ncid, nc_type xtype, char *name, size_t *size);
685 
686 /* Get the id of a type from the name, which might be a fully qualified name */
687 EXTERNL int
688 nc_inq_typeid(int ncid, const char *name, nc_type *typeidp);
689 
690 /* Get the name, size, and number of fields in a compound type. */
691 EXTERNL int
692 nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep,
693  size_t *nfieldsp);
694 
695 /* Get the name of a compound type. */
696 EXTERNL int
697 nc_inq_compound_name(int ncid, nc_type xtype, char *name);
698 
699 /* Get the size of a compound type. */
700 EXTERNL int
701 nc_inq_compound_size(int ncid, nc_type xtype, size_t *sizep);
702 
703 /* Get the number of fields in this compound type. */
704 EXTERNL int
705 nc_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp);
706 
707 /* Given the xtype and the fieldid, get all info about it. */
708 EXTERNL int
709 nc_inq_compound_field(int ncid, nc_type xtype, int fieldid, char *name,
710  size_t *offsetp, nc_type *field_typeidp, int *ndimsp,
711  int *dim_sizesp);
712 
713 /* Given the typeid and the fieldid, get the name. */
714 EXTERNL int
715 nc_inq_compound_fieldname(int ncid, nc_type xtype, int fieldid,
716  char *name);
717 
718 /* Given the xtype and the name, get the fieldid. */
719 EXTERNL int
720 nc_inq_compound_fieldindex(int ncid, nc_type xtype, const char *name,
721  int *fieldidp);
722 
723 /* Given the xtype and fieldid, get the offset. */
724 EXTERNL int
725 nc_inq_compound_fieldoffset(int ncid, nc_type xtype, int fieldid,
726  size_t *offsetp);
727 
728 /* Given the xtype and the fieldid, get the type of that field. */
729 EXTERNL int
730 nc_inq_compound_fieldtype(int ncid, nc_type xtype, int fieldid,
731  nc_type *field_typeidp);
732 
733 /* Given the xtype and the fieldid, get the number of dimensions for
734  * that field (scalars are 0). */
735 EXTERNL int
736 nc_inq_compound_fieldndims(int ncid, nc_type xtype, int fieldid,
737  int *ndimsp);
738 
739 /* Given the xtype and the fieldid, get the sizes of dimensions for
740  * that field. User must have allocated storage for the dim_sizes. */
741 EXTERNL int
742 nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid,
743  int *dim_sizes);
744 
746 typedef struct {
747  size_t len;
748  void *p;
749 } nc_vlen_t;
750 
755 #define NC_COMPOUND_OFFSET(S,M) (offsetof(S,M))
756 
757 /* Create a variable length type. */
758 EXTERNL int
759 nc_def_vlen(int ncid, const char *name, nc_type base_typeid, nc_type *xtypep);
760 
761 /* Find out about a vlen. */
762 EXTERNL int
763 nc_inq_vlen(int ncid, nc_type xtype, char *name, size_t *datum_sizep,
764  nc_type *base_nc_typep);
765 
766 /* When you read VLEN type the library will actually allocate the
767  * storage space for the data. This storage space must be freed, so
768  * pass the pointer back to this function, when you're done with the
769  * data, and it will free the vlen memory.
770  * These two functions are deprecated in favor of the nc_reclaim_data function.
771  */
772 
773 EXTERNL int
775 
776 EXTERNL int
777 nc_free_vlens(size_t len, nc_vlen_t vlens[]);
778 
779 /* Put or get one element in a vlen array. */
780 EXTERNL int
781 nc_put_vlen_element(int ncid, int typeid1, void *vlen_element,
782  size_t len, const void *data);
783 
784 EXTERNL int
785 nc_get_vlen_element(int ncid, int typeid1, const void *vlen_element,
786  size_t *len, void *data);
787 
788 /* When you read the string type the library will allocate the storage
789  * space for the data. This storage space must be freed, so pass the
790  * pointer back to this function, when you're done with the data, and
791  * it will free the string memory.
792  * This function is deprecated in favor of the nc_reclaim_data function.
793  */
794 EXTERNL int
795 nc_free_string(size_t len, char **data);
796 
797 /* Find out about a user defined type. */
798 EXTERNL int
799 nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size,
800  nc_type *base_nc_typep, size_t *nfieldsp, int *classp);
801 
802 /* Write an attribute of any type. */
803 EXTERNL int
804 nc_put_att(int ncid, int varid, const char *name, nc_type xtype,
805  size_t len, const void *op);
806 
807 /* Read an attribute of any type. */
808 EXTERNL int
809 nc_get_att(int ncid, int varid, const char *name, void *ip);
810 
811 /* Enum type. */
812 
813 /* Create an enum type. Provide a base type and a name. At the moment
814  * only ints are accepted as base types. */
815 EXTERNL int
816 nc_def_enum(int ncid, nc_type base_typeid, const char *name,
817  nc_type *typeidp);
818 
819 /* Insert a named value into an enum type. The value must fit within
820  * the size of the enum type, the name size must be <= NC_MAX_NAME. */
821 EXTERNL int
822 nc_insert_enum(int ncid, nc_type xtype, const char *name,
823  const void *value);
824 
825 /* Get information about an enum type: its name, base type and the
826  * number of members defined. */
827 EXTERNL int
828 nc_inq_enum(int ncid, nc_type xtype, char *name, nc_type *base_nc_typep,
829  size_t *base_sizep, size_t *num_membersp);
830 
831 /* Get information about an enum member: a name and value. Name size
832  * will be <= NC_MAX_NAME. */
833 EXTERNL int
834 nc_inq_enum_member(int ncid, nc_type xtype, int idx, char *name,
835  void *value);
836 
837 
838 /* Get enum name from enum value. Name size will be <= NC_MAX_NAME. */
839 /* If value is zero and there is no matching ident, then return _UNDEFINED */
840 #define NC_UNDEFINED_ENUM_IDENT "_UNDEFINED"
841 
842 EXTERNL int
843 nc_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier);
844 
845 /* Opaque type. */
846 
847 /* Create an opaque type. Provide a size and a name. */
848 EXTERNL int
849 nc_def_opaque(int ncid, size_t size, const char *name, nc_type *xtypep);
850 
851 /* Get information about an opaque type. */
852 EXTERNL int
853 nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep);
854 
855 /* Write entire var of any type. */
856 EXTERNL int
857 nc_put_var(int ncid, int varid, const void *op);
858 
859 /* Read entire var of any type. */
860 EXTERNL int
861 nc_get_var(int ncid, int varid, void *ip);
862 
863 /* Write one value. */
864 EXTERNL int
865 nc_put_var1(int ncid, int varid, const size_t *indexp,
866  const void *op);
867 
868 /* Read one value. */
869 EXTERNL int
870 nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip);
871 
872 /* Write an array of values. */
873 EXTERNL int
874 nc_put_vara(int ncid, int varid, const size_t *startp,
875  const size_t *countp, const void *op);
876 
877 /* Read an array of values. */
878 EXTERNL int
879 nc_get_vara(int ncid, int varid, const size_t *startp,
880  const size_t *countp, void *ip);
881 
882 /* Write slices of an array of values. */
883 EXTERNL int
884 nc_put_vars(int ncid, int varid, const size_t *startp,
885  const size_t *countp, const ptrdiff_t *stridep,
886  const void *op);
887 
888 /* Read slices of an array of values. */
889 EXTERNL int
890 nc_get_vars(int ncid, int varid, const size_t *startp,
891  const size_t *countp, const ptrdiff_t *stridep,
892  void *ip);
893 
894 /* Write mapped slices of an array of values. */
895 EXTERNL int
896 nc_put_varm(int ncid, int varid, const size_t *startp,
897  const size_t *countp, const ptrdiff_t *stridep,
898  const ptrdiff_t *imapp, const void *op);
899 
900 /* Read mapped slices of an array of values. */
901 EXTERNL int
902 nc_get_varm(int ncid, int varid, const size_t *startp,
903  const size_t *countp, const ptrdiff_t *stridep,
904  const ptrdiff_t *imapp, void *ip);
905 
906 /* Extra netcdf-4 stuff. */
907 
908 /* Set quantization settings for a variable. Quantizing data improves
909  * later compression. Must be called after nc_def_var and before
910  * nc_enddef. */
911 EXTERNL int
912 nc_def_var_quantize(int ncid, int varid, int quantize_mode, int nsd);
913 
914 /* Find out quantization settings of a var. */
915 EXTERNL int
916 nc_inq_var_quantize(int ncid, int varid, int *quantize_modep, int *nsdp);
917 
918 /* Set compression settings for a variable. Lower is faster, higher is
919  * better. Must be called after nc_def_var and before nc_enddef. */
920 EXTERNL int
921 nc_def_var_deflate(int ncid, int varid, int shuffle, int deflate,
922  int deflate_level);
923 
924 /* Find out compression settings of a var. */
925 EXTERNL int
926 nc_inq_var_deflate(int ncid, int varid, int *shufflep,
927  int *deflatep, int *deflate_levelp);
928 
929 /* Set szip compression for a variable. */
930 EXTERNL int nc_def_var_szip(int ncid, int varid, int options_mask,
931  int pixels_per_block);
932 
933 /* Find out szip settings of a var. */
934 EXTERNL int
935 nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp);
936 
937 /* Set fletcher32 checksum for a var. This must be done after nc_def_var
938  and before nc_enddef. */
939 EXTERNL int
940 nc_def_var_fletcher32(int ncid, int varid, int fletcher32);
941 
942 /* Inquire about fletcher32 checksum for a var. */
943 EXTERNL int
944 nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p);
945 
946 /* Define chunking for a variable. This must be done after nc_def_var
947  and before nc_enddef. */
948 EXTERNL int
949 nc_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp);
950 
951 /* Inq chunking stuff for a var. */
952 EXTERNL int
953 nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp);
954 
955 /* Define fill value behavior for a variable. This must be done after
956  nc_def_var and before nc_enddef. */
957 EXTERNL int
958 nc_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value);
959 
960 /* Inq fill value setting for a var. */
961 EXTERNL int
962 nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep);
963 
964 /* Define the endianness of a variable. */
965 EXTERNL int
966 nc_def_var_endian(int ncid, int varid, int endian);
967 
968 /* Learn about the endianness of a variable. */
969 EXTERNL int
970 nc_inq_var_endian(int ncid, int varid, int *endianp);
971 
972 /* Define a filter for a variable */
973 EXTERNL int
974 nc_def_var_filter(int ncid, int varid, unsigned int id, size_t nparams, const unsigned int* parms);
975 
976 /* Learn about the first filter on a variable */
977 EXTERNL int
978 nc_inq_var_filter(int ncid, int varid, unsigned int* idp, size_t* nparams, unsigned int* params);
979 
980 /* Set the fill mode (classic or 64-bit offset files only). */
981 EXTERNL int
982 nc_set_fill(int ncid, int fillmode, int *old_modep);
983 
984 /* Set the default nc_create format to NC_FORMAT_CLASSIC, NC_FORMAT_64BIT,
985  * NC_FORMAT_CDF5, NC_FORMAT_NETCDF4, or NC_FORMAT_NETCDF4_CLASSIC */
986 EXTERNL int
987 nc_set_default_format(int format, int *old_formatp);
988 
989 /* Set the cache size, nelems, and preemption policy. */
990 EXTERNL int
991 nc_set_chunk_cache(size_t size, size_t nelems, float preemption);
992 
993 /* Get the cache size, nelems, and preemption policy. */
994 EXTERNL int
995 nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp);
996 
997 /* Set the per-variable cache size, nelems, and preemption policy. */
998 EXTERNL int
999 nc_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
1000  float preemption);
1001 
1002 /* Get the per-variable cache size, nelems, and preemption policy. */
1003 EXTERNL int
1004 nc_get_var_chunk_cache(int ncid, int varid, size_t *sizep, size_t *nelemsp,
1005  float *preemptionp);
1006 
1007 EXTERNL int
1008 nc_redef(int ncid);
1009 
1010 /* Is this ever used? Convert to parameter form */
1011 EXTERNL int
1012 nc__enddef(int ncid, size_t h_minfree, size_t v_align,
1013  size_t v_minfree, size_t r_align);
1014 
1015 EXTERNL int
1016 nc_enddef(int ncid);
1017 
1018 EXTERNL int
1019 nc_sync(int ncid);
1020 
1021 EXTERNL int
1022 nc_abort(int ncid);
1023 
1024 EXTERNL int
1025 nc_close(int ncid);
1026 
1027 EXTERNL int
1028 nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp);
1029 
1030 EXTERNL int
1031 nc_inq_ndims(int ncid, int *ndimsp);
1032 
1033 EXTERNL int
1034 nc_inq_nvars(int ncid, int *nvarsp);
1035 
1036 EXTERNL int
1037 nc_inq_natts(int ncid, int *nattsp);
1038 
1039 EXTERNL int
1040 nc_inq_unlimdim(int ncid, int *unlimdimidp);
1041 
1042 /* The next function is for NetCDF-4 only */
1043 EXTERNL int
1044 nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp);
1045 
1046 /* Added in 3.6.1 to return format of netCDF file. */
1047 EXTERNL int
1048 nc_inq_format(int ncid, int *formatp);
1049 
1050 /* Added in 4.3.1 to return additional format info */
1051 EXTERNL int
1052 nc_inq_format_extended(int ncid, int *formatp, int* modep);
1053 
1054 /* Begin _dim */
1055 
1056 EXTERNL int
1057 nc_def_dim(int ncid, const char *name, size_t len, int *idp);
1058 
1059 EXTERNL int
1060 nc_inq_dimid(int ncid, const char *name, int *idp);
1061 
1062 EXTERNL int
1063 nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp);
1064 
1065 EXTERNL int
1066 nc_inq_dimname(int ncid, int dimid, char *name);
1067 
1068 EXTERNL int
1069 nc_inq_dimlen(int ncid, int dimid, size_t *lenp);
1070 
1071 EXTERNL int
1072 nc_rename_dim(int ncid, int dimid, const char *name);
1073 
1074 /* End _dim */
1075 /* Begin _att */
1076 
1077 EXTERNL int
1078 nc_inq_att(int ncid, int varid, const char *name,
1079  nc_type *xtypep, size_t *lenp);
1080 
1081 EXTERNL int
1082 nc_inq_attid(int ncid, int varid, const char *name, int *idp);
1083 
1084 EXTERNL int
1085 nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep);
1086 
1087 EXTERNL int
1088 nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp);
1089 
1090 EXTERNL int
1091 nc_inq_attname(int ncid, int varid, int attnum, char *name);
1092 
1093 EXTERNL int
1094 nc_copy_att(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out);
1095 
1096 EXTERNL int
1097 nc_rename_att(int ncid, int varid, const char *name, const char *newname);
1098 
1099 EXTERNL int
1100 nc_del_att(int ncid, int varid, const char *name);
1101 
1102 /* End _att */
1103 /* Begin {put,get}_att */
1104 EXTERNL int
1105 nc_put_att_text(int ncid, int varid, const char *name,
1106  size_t len, const char *op);
1107 
1108 EXTERNL int
1109 nc_get_att_text(int ncid, int varid, const char *name, char *ip);
1110 
1111 EXTERNL int
1112 nc_put_att_string(int ncid, int varid, const char *name,
1113  size_t len, const char **op);
1114 
1115 EXTERNL int
1116 nc_get_att_string(int ncid, int varid, const char *name, char **ip);
1117 
1118 EXTERNL int
1119 nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype,
1120  size_t len, const unsigned char *op);
1121 
1122 EXTERNL int
1123 nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *ip);
1124 
1125 EXTERNL int
1126 nc_put_att_schar(int ncid, int varid, const char *name, nc_type xtype,
1127  size_t len, const signed char *op);
1128 
1129 EXTERNL int
1130 nc_get_att_schar(int ncid, int varid, const char *name, signed char *ip);
1131 
1132 EXTERNL int
1133 nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype,
1134  size_t len, const short *op);
1135 
1136 EXTERNL int
1137 nc_get_att_short(int ncid, int varid, const char *name, short *ip);
1138 
1139 EXTERNL int
1140 nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype,
1141  size_t len, const int *op);
1142 
1143 EXTERNL int
1144 nc_get_att_int(int ncid, int varid, const char *name, int *ip);
1145 
1146 EXTERNL int
1147 nc_put_att_long(int ncid, int varid, const char *name, nc_type xtype,
1148  size_t len, const long *op);
1149 
1150 EXTERNL int
1151 nc_get_att_long(int ncid, int varid, const char *name, long *ip);
1152 
1153 EXTERNL int
1154 nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype,
1155  size_t len, const float *op);
1156 
1157 EXTERNL int
1158 nc_get_att_float(int ncid, int varid, const char *name, float *ip);
1159 
1160 EXTERNL int
1161 nc_put_att_double(int ncid, int varid, const char *name, nc_type xtype,
1162  size_t len, const double *op);
1163 
1164 EXTERNL int
1165 nc_get_att_double(int ncid, int varid, const char *name, double *ip);
1166 
1167 EXTERNL int
1168 nc_put_att_ushort(int ncid, int varid, const char *name, nc_type xtype,
1169  size_t len, const unsigned short *op);
1170 
1171 EXTERNL int
1172 nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *ip);
1173 
1174 EXTERNL int
1175 nc_put_att_uint(int ncid, int varid, const char *name, nc_type xtype,
1176  size_t len, const unsigned int *op);
1177 
1178 EXTERNL int
1179 nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *ip);
1180 
1181 EXTERNL int
1182 nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype,
1183  size_t len, const long long *op);
1184 
1185 EXTERNL int
1186 nc_get_att_longlong(int ncid, int varid, const char *name, long long *ip);
1187 
1188 EXTERNL int
1189 nc_put_att_ulonglong(int ncid, int varid, const char *name, nc_type xtype,
1190  size_t len, const unsigned long long *op);
1191 
1192 EXTERNL int
1193 nc_get_att_ulonglong(int ncid, int varid, const char *name,
1194  unsigned long long *ip);
1195 
1196 
1197 /* End {put,get}_att */
1198 /* Begin _var */
1199 
1200 EXTERNL int
1201 nc_def_var(int ncid, const char *name, nc_type xtype, int ndims,
1202  const int *dimidsp, int *varidp);
1203 
1204 EXTERNL int
1205 nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep,
1206  int *ndimsp, int *dimidsp, int *nattsp);
1207 
1208 EXTERNL int
1209 nc_inq_varid(int ncid, const char *name, int *varidp);
1210 
1211 EXTERNL int
1212 nc_inq_varname(int ncid, int varid, char *name);
1213 
1214 EXTERNL int
1215 nc_inq_vartype(int ncid, int varid, nc_type *xtypep);
1216 
1217 EXTERNL int
1218 nc_inq_varndims(int ncid, int varid, int *ndimsp);
1219 
1220 EXTERNL int
1221 nc_inq_vardimid(int ncid, int varid, int *dimidsp);
1222 
1223 EXTERNL int
1224 nc_inq_varnatts(int ncid, int varid, int *nattsp);
1225 
1226 EXTERNL int
1227 nc_rename_var(int ncid, int varid, const char *name);
1228 
1229 EXTERNL int
1230 nc_copy_var(int ncid_in, int varid, int ncid_out);
1231 
1232 #ifndef ncvarcpy
1233 /* support the old name for now */
1234 #define ncvarcpy(ncid_in, varid, ncid_out) ncvarcopy((ncid_in), (varid), (ncid_out))
1235 #endif
1236 
1237 /* End _var */
1238 /* Begin {put,get}_var1 */
1239 
1240 EXTERNL int
1241 nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op);
1242 
1243 EXTERNL int
1244 nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip);
1245 
1246 EXTERNL int
1247 nc_put_var1_uchar(int ncid, int varid, const size_t *indexp,
1248  const unsigned char *op);
1249 
1250 EXTERNL int
1251 nc_get_var1_uchar(int ncid, int varid, const size_t *indexp,
1252  unsigned char *ip);
1253 
1254 EXTERNL int
1255 nc_put_var1_schar(int ncid, int varid, const size_t *indexp,
1256  const signed char *op);
1257 
1258 EXTERNL int
1259 nc_get_var1_schar(int ncid, int varid, const size_t *indexp,
1260  signed char *ip);
1261 
1262 EXTERNL int
1263 nc_put_var1_short(int ncid, int varid, const size_t *indexp,
1264  const short *op);
1265 
1266 EXTERNL int
1267 nc_get_var1_short(int ncid, int varid, const size_t *indexp,
1268  short *ip);
1269 
1270 EXTERNL int
1271 nc_put_var1_int(int ncid, int varid, const size_t *indexp, const int *op);
1272 
1273 EXTERNL int
1274 nc_get_var1_int(int ncid, int varid, const size_t *indexp, int *ip);
1275 
1276 EXTERNL int
1277 nc_put_var1_long(int ncid, int varid, const size_t *indexp, const long *op);
1278 
1279 EXTERNL int
1280 nc_get_var1_long(int ncid, int varid, const size_t *indexp, long *ip);
1281 
1282 EXTERNL int
1283 nc_put_var1_float(int ncid, int varid, const size_t *indexp, const float *op);
1284 
1285 EXTERNL int
1286 nc_get_var1_float(int ncid, int varid, const size_t *indexp, float *ip);
1287 
1288 EXTERNL int
1289 nc_put_var1_double(int ncid, int varid, const size_t *indexp, const double *op);
1290 
1291 EXTERNL int
1292 nc_get_var1_double(int ncid, int varid, const size_t *indexp, double *ip);
1293 
1294 EXTERNL int
1295 nc_put_var1_ushort(int ncid, int varid, const size_t *indexp,
1296  const unsigned short *op);
1297 
1298 EXTERNL int
1299 nc_get_var1_ushort(int ncid, int varid, const size_t *indexp,
1300  unsigned short *ip);
1301 
1302 EXTERNL int
1303 nc_put_var1_uint(int ncid, int varid, const size_t *indexp,
1304  const unsigned int *op);
1305 
1306 EXTERNL int
1307 nc_get_var1_uint(int ncid, int varid, const size_t *indexp,
1308  unsigned int *ip);
1309 
1310 EXTERNL int
1311 nc_put_var1_longlong(int ncid, int varid, const size_t *indexp,
1312  const long long *op);
1313 
1314 EXTERNL int
1315 nc_get_var1_longlong(int ncid, int varid, const size_t *indexp,
1316  long long *ip);
1317 
1318 EXTERNL int
1319 nc_put_var1_ulonglong(int ncid, int varid, const size_t *indexp,
1320  const unsigned long long *op);
1321 
1322 EXTERNL int
1323 nc_get_var1_ulonglong(int ncid, int varid, const size_t *indexp,
1324  unsigned long long *ip);
1325 
1326 EXTERNL int
1327 nc_put_var1_string(int ncid, int varid, const size_t *indexp,
1328  const char **op);
1329 
1330 EXTERNL int
1331 nc_get_var1_string(int ncid, int varid, const size_t *indexp,
1332  char **ip);
1333 
1334 /* End {put,get}_var1 */
1335 /* Begin {put,get}_vara */
1336 
1337 EXTERNL int
1338 nc_put_vara_text(int ncid, int varid, const size_t *startp,
1339  const size_t *countp, const char *op);
1340 
1341 EXTERNL int
1342 nc_get_vara_text(int ncid, int varid, const size_t *startp,
1343  const size_t *countp, char *ip);
1344 
1345 EXTERNL int
1346 nc_put_vara_uchar(int ncid, int varid, const size_t *startp,
1347  const size_t *countp, const unsigned char *op);
1348 
1349 EXTERNL int
1350 nc_get_vara_uchar(int ncid, int varid, const size_t *startp,
1351  const size_t *countp, unsigned char *ip);
1352 
1353 EXTERNL int
1354 nc_put_vara_schar(int ncid, int varid, const size_t *startp,
1355  const size_t *countp, const signed char *op);
1356 
1357 EXTERNL int
1358 nc_get_vara_schar(int ncid, int varid, const size_t *startp,
1359  const size_t *countp, signed char *ip);
1360 
1361 EXTERNL int
1362 nc_put_vara_short(int ncid, int varid, const size_t *startp,
1363  const size_t *countp, const short *op);
1364 
1365 EXTERNL int
1366 nc_get_vara_short(int ncid, int varid, const size_t *startp,
1367  const size_t *countp, short *ip);
1368 
1369 EXTERNL int
1370 nc_put_vara_int(int ncid, int varid, const size_t *startp,
1371  const size_t *countp, const int *op);
1372 
1373 EXTERNL int
1374 nc_get_vara_int(int ncid, int varid, const size_t *startp,
1375  const size_t *countp, int *ip);
1376 
1377 EXTERNL int
1378 nc_put_vara_long(int ncid, int varid, const size_t *startp,
1379  const size_t *countp, const long *op);
1380 
1381 EXTERNL int
1382 nc_get_vara_long(int ncid, int varid,
1383  const size_t *startp, const size_t *countp, long *ip);
1384 
1385 EXTERNL int
1386 nc_put_vara_float(int ncid, int varid,
1387  const size_t *startp, const size_t *countp, const float *op);
1388 
1389 EXTERNL int
1390 nc_get_vara_float(int ncid, int varid,
1391  const size_t *startp, const size_t *countp, float *ip);
1392 
1393 EXTERNL int
1394 nc_put_vara_double(int ncid, int varid, const size_t *startp,
1395  const size_t *countp, const double *op);
1396 
1397 EXTERNL int
1398 nc_get_vara_double(int ncid, int varid, const size_t *startp,
1399  const size_t *countp, double *ip);
1400 
1401 EXTERNL int
1402 nc_put_vara_ushort(int ncid, int varid, const size_t *startp,
1403  const size_t *countp, const unsigned short *op);
1404 
1405 EXTERNL int
1406 nc_get_vara_ushort(int ncid, int varid, const size_t *startp,
1407  const size_t *countp, unsigned short *ip);
1408 
1409 EXTERNL int
1410 nc_put_vara_uint(int ncid, int varid, const size_t *startp,
1411  const size_t *countp, const unsigned int *op);
1412 
1413 EXTERNL int
1414 nc_get_vara_uint(int ncid, int varid, const size_t *startp,
1415  const size_t *countp, unsigned int *ip);
1416 
1417 EXTERNL int
1418 nc_put_vara_longlong(int ncid, int varid, const size_t *startp,
1419  const size_t *countp, const long long *op);
1420 
1421 EXTERNL int
1422 nc_get_vara_longlong(int ncid, int varid, const size_t *startp,
1423  const size_t *countp, long long *ip);
1424 
1425 EXTERNL int
1426 nc_put_vara_ulonglong(int ncid, int varid, const size_t *startp,
1427  const size_t *countp, const unsigned long long *op);
1428 
1429 EXTERNL int
1430 nc_get_vara_ulonglong(int ncid, int varid, const size_t *startp,
1431  const size_t *countp, unsigned long long *ip);
1432 
1433 EXTERNL int
1434 nc_put_vara_string(int ncid, int varid, const size_t *startp,
1435  const size_t *countp, const char **op);
1436 
1437 EXTERNL int
1438 nc_get_vara_string(int ncid, int varid, const size_t *startp,
1439  const size_t *countp, char **ip);
1440 
1441 /* End {put,get}_vara */
1442 /* Begin {put,get}_vars */
1443 
1444 EXTERNL int
1445 nc_put_vars_text(int ncid, int varid,
1446  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1447  const char *op);
1448 
1449 EXTERNL int
1450 nc_get_vars_text(int ncid, int varid,
1451  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1452  char *ip);
1453 
1454 EXTERNL int
1455 nc_put_vars_uchar(int ncid, int varid,
1456  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1457  const unsigned char *op);
1458 
1459 EXTERNL int
1460 nc_get_vars_uchar(int ncid, int varid,
1461  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1462  unsigned char *ip);
1463 
1464 EXTERNL int
1465 nc_put_vars_schar(int ncid, int varid,
1466  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1467  const signed char *op);
1468 
1469 EXTERNL int
1470 nc_get_vars_schar(int ncid, int varid,
1471  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1472  signed char *ip);
1473 
1474 EXTERNL int
1475 nc_put_vars_short(int ncid, int varid,
1476  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1477  const short *op);
1478 
1479 EXTERNL int
1480 nc_get_vars_short(int ncid, int varid, const size_t *startp,
1481  const size_t *countp, const ptrdiff_t *stridep,
1482  short *ip);
1483 
1484 EXTERNL int
1485 nc_put_vars_int(int ncid, int varid,
1486  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1487  const int *op);
1488 
1489 EXTERNL int
1490 nc_get_vars_int(int ncid, int varid,
1491  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1492  int *ip);
1493 
1494 EXTERNL int
1495 nc_put_vars_long(int ncid, int varid,
1496  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1497  const long *op);
1498 
1499 EXTERNL int
1500 nc_get_vars_long(int ncid, int varid,
1501  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1502  long *ip);
1503 
1504 EXTERNL int
1505 nc_put_vars_float(int ncid, int varid,
1506  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1507  const float *op);
1508 
1509 EXTERNL int
1510 nc_get_vars_float(int ncid, int varid,
1511  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1512  float *ip);
1513 
1514 EXTERNL int
1515 nc_put_vars_double(int ncid, int varid,
1516  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1517  const double *op);
1518 
1519 EXTERNL int
1520 nc_get_vars_double(int ncid, int varid, const size_t *startp,
1521  const size_t *countp, const ptrdiff_t *stridep,
1522  double *ip);
1523 
1524 EXTERNL int
1525 nc_put_vars_ushort(int ncid, int varid, const size_t *startp,
1526  const size_t *countp, const ptrdiff_t *stridep,
1527  const unsigned short *op);
1528 
1529 EXTERNL int
1530 nc_get_vars_ushort(int ncid, int varid, const size_t *startp,
1531  const size_t *countp, const ptrdiff_t *stridep,
1532  unsigned short *ip);
1533 
1534 EXTERNL int
1535 nc_put_vars_uint(int ncid, int varid, const size_t *startp,
1536  const size_t *countp, const ptrdiff_t *stridep,
1537  const unsigned int *op);
1538 
1539 EXTERNL int
1540 nc_get_vars_uint(int ncid, int varid, const size_t *startp,
1541  const size_t *countp, const ptrdiff_t *stridep,
1542  unsigned int *ip);
1543 
1544 EXTERNL int
1545 nc_put_vars_longlong(int ncid, int varid, const size_t *startp,
1546  const size_t *countp, const ptrdiff_t *stridep,
1547  const long long *op);
1548 
1549 EXTERNL int
1550 nc_get_vars_longlong(int ncid, int varid, const size_t *startp,
1551  const size_t *countp, const ptrdiff_t *stridep,
1552  long long *ip);
1553 
1554 EXTERNL int
1555 nc_put_vars_ulonglong(int ncid, int varid, const size_t *startp,
1556  const size_t *countp, const ptrdiff_t *stridep,
1557  const unsigned long long *op);
1558 
1559 EXTERNL int
1560 nc_get_vars_ulonglong(int ncid, int varid, const size_t *startp,
1561  const size_t *countp, const ptrdiff_t *stridep,
1562  unsigned long long *ip);
1563 
1564 EXTERNL int
1565 nc_put_vars_string(int ncid, int varid, const size_t *startp,
1566  const size_t *countp, const ptrdiff_t *stridep,
1567  const char **op);
1568 
1569 EXTERNL int
1570 nc_get_vars_string(int ncid, int varid, const size_t *startp,
1571  const size_t *countp, const ptrdiff_t *stridep,
1572  char **ip);
1573 
1574 /* End {put,get}_vars */
1575 /* Begin {put,get}_varm */
1576 
1577 EXTERNL int
1578 nc_put_varm_text(int ncid, int varid, const size_t *startp,
1579  const size_t *countp, const ptrdiff_t *stridep,
1580  const ptrdiff_t *imapp, const char *op);
1581 
1582 EXTERNL int
1583 nc_get_varm_text(int ncid, int varid, const size_t *startp,
1584  const size_t *countp, const ptrdiff_t *stridep,
1585  const ptrdiff_t *imapp, char *ip);
1586 
1587 EXTERNL int
1588 nc_put_varm_uchar(int ncid, int varid, const size_t *startp,
1589  const size_t *countp, const ptrdiff_t *stridep,
1590  const ptrdiff_t *imapp, const unsigned char *op);
1591 
1592 EXTERNL int
1593 nc_get_varm_uchar(int ncid, int varid, const size_t *startp,
1594  const size_t *countp, const ptrdiff_t *stridep,
1595  const ptrdiff_t *imapp, unsigned char *ip);
1596 
1597 EXTERNL int
1598 nc_put_varm_schar(int ncid, int varid, const size_t *startp,
1599  const size_t *countp, const ptrdiff_t *stridep,
1600  const ptrdiff_t *imapp, const signed char *op);
1601 
1602 EXTERNL int
1603 nc_get_varm_schar(int ncid, int varid, const size_t *startp,
1604  const size_t *countp, const ptrdiff_t *stridep,
1605  const ptrdiff_t *imapp, signed char *ip);
1606 
1607 EXTERNL int
1608 nc_put_varm_short(int ncid, int varid, const size_t *startp,
1609  const size_t *countp, const ptrdiff_t *stridep,
1610  const ptrdiff_t *imapp, const short *op);
1611 
1612 EXTERNL int
1613 nc_get_varm_short(int ncid, int varid, const size_t *startp,
1614  const size_t *countp, const ptrdiff_t *stridep,
1615  const ptrdiff_t *imapp, short *ip);
1616 
1617 EXTERNL int
1618 nc_put_varm_int(int ncid, int varid, const size_t *startp,
1619  const size_t *countp, const ptrdiff_t *stridep,
1620  const ptrdiff_t *imapp, const int *op);
1621 
1622 EXTERNL int
1623 nc_get_varm_int(int ncid, int varid, const size_t *startp,
1624  const size_t *countp, const ptrdiff_t *stridep,
1625  const ptrdiff_t *imapp, int *ip);
1626 
1627 EXTERNL int
1628 nc_put_varm_long(int ncid, int varid, const size_t *startp,
1629  const size_t *countp, const ptrdiff_t *stridep,
1630  const ptrdiff_t *imapp, const long *op);
1631 
1632 EXTERNL int
1633 nc_get_varm_long(int ncid, int varid, const size_t *startp,
1634  const size_t *countp, const ptrdiff_t *stridep,
1635  const ptrdiff_t *imapp, long *ip);
1636 
1637 EXTERNL int
1638 nc_put_varm_float(int ncid, int varid,const size_t *startp,
1639  const size_t *countp, const ptrdiff_t *stridep,
1640  const ptrdiff_t *imapp, const float *op);
1641 
1642 EXTERNL int
1643 nc_get_varm_float(int ncid, int varid,const size_t *startp,
1644  const size_t *countp, const ptrdiff_t *stridep,
1645  const ptrdiff_t *imapp, float *ip);
1646 
1647 EXTERNL int
1648 nc_put_varm_double(int ncid, int varid, const size_t *startp,
1649  const size_t *countp, const ptrdiff_t *stridep,
1650  const ptrdiff_t *imapp, const double *op);
1651 
1652 EXTERNL int
1653 nc_get_varm_double(int ncid, int varid, const size_t *startp,
1654  const size_t *countp, const ptrdiff_t *stridep,
1655  const ptrdiff_t * imapp, double *ip);
1656 
1657 EXTERNL int
1658 nc_put_varm_ushort(int ncid, int varid, const size_t *startp,
1659  const size_t *countp, const ptrdiff_t *stridep,
1660  const ptrdiff_t * imapp, const unsigned short *op);
1661 
1662 EXTERNL int
1663 nc_get_varm_ushort(int ncid, int varid, const size_t *startp,
1664  const size_t *countp, const ptrdiff_t *stridep,
1665  const ptrdiff_t * imapp, unsigned short *ip);
1666 
1667 EXTERNL int
1668 nc_put_varm_uint(int ncid, int varid, const size_t *startp,
1669  const size_t *countp, const ptrdiff_t *stridep,
1670  const ptrdiff_t * imapp, const unsigned int *op);
1671 
1672 EXTERNL int
1673 nc_get_varm_uint(int ncid, int varid, const size_t *startp,
1674  const size_t *countp, const ptrdiff_t *stridep,
1675  const ptrdiff_t * imapp, unsigned int *ip);
1676 
1677 EXTERNL int
1678 nc_put_varm_longlong(int ncid, int varid, const size_t *startp,
1679  const size_t *countp, const ptrdiff_t *stridep,
1680  const ptrdiff_t * imapp, const long long *op);
1681 
1682 EXTERNL int
1683 nc_get_varm_longlong(int ncid, int varid, const size_t *startp,
1684  const size_t *countp, const ptrdiff_t *stridep,
1685  const ptrdiff_t * imapp, long long *ip);
1686 
1687 EXTERNL int
1688 nc_put_varm_ulonglong(int ncid, int varid, const size_t *startp,
1689  const size_t *countp, const ptrdiff_t *stridep,
1690  const ptrdiff_t * imapp, const unsigned long long *op);
1691 
1692 EXTERNL int
1693 nc_get_varm_ulonglong(int ncid, int varid, const size_t *startp,
1694  const size_t *countp, const ptrdiff_t *stridep,
1695  const ptrdiff_t * imapp, unsigned long long *ip);
1696 
1697 EXTERNL int
1698 nc_put_varm_string(int ncid, int varid, const size_t *startp,
1699  const size_t *countp, const ptrdiff_t *stridep,
1700  const ptrdiff_t * imapp, const char **op);
1701 
1702 EXTERNL int
1703 nc_get_varm_string(int ncid, int varid, const size_t *startp,
1704  const size_t *countp, const ptrdiff_t *stridep,
1705  const ptrdiff_t * imapp, char **ip);
1706 
1707 /* End {put,get}_varm */
1708 /* Begin {put,get}_var */
1709 
1710 EXTERNL int
1711 nc_put_var_text(int ncid, int varid, const char *op);
1712 
1713 EXTERNL int
1714 nc_get_var_text(int ncid, int varid, char *ip);
1715 
1716 EXTERNL int
1717 nc_put_var_uchar(int ncid, int varid, const unsigned char *op);
1718 
1719 EXTERNL int
1720 nc_get_var_uchar(int ncid, int varid, unsigned char *ip);
1721 
1722 EXTERNL int
1723 nc_put_var_schar(int ncid, int varid, const signed char *op);
1724 
1725 EXTERNL int
1726 nc_get_var_schar(int ncid, int varid, signed char *ip);
1727 
1728 EXTERNL int
1729 nc_put_var_short(int ncid, int varid, const short *op);
1730 
1731 EXTERNL int
1732 nc_get_var_short(int ncid, int varid, short *ip);
1733 
1734 EXTERNL int
1735 nc_put_var_int(int ncid, int varid, const int *op);
1736 
1737 EXTERNL int
1738 nc_get_var_int(int ncid, int varid, int *ip);
1739 
1740 EXTERNL int
1741 nc_put_var_long(int ncid, int varid, const long *op);
1742 
1743 EXTERNL int
1744 nc_get_var_long(int ncid, int varid, long *ip);
1745 
1746 EXTERNL int
1747 nc_put_var_float(int ncid, int varid, const float *op);
1748 
1749 EXTERNL int
1750 nc_get_var_float(int ncid, int varid, float *ip);
1751 
1752 EXTERNL int
1753 nc_put_var_double(int ncid, int varid, const double *op);
1754 
1755 EXTERNL int
1756 nc_get_var_double(int ncid, int varid, double *ip);
1757 
1758 EXTERNL int
1759 nc_put_var_ushort(int ncid, int varid, const unsigned short *op);
1760 
1761 EXTERNL int
1762 nc_get_var_ushort(int ncid, int varid, unsigned short *ip);
1763 
1764 EXTERNL int
1765 nc_put_var_uint(int ncid, int varid, const unsigned int *op);
1766 
1767 EXTERNL int
1768 nc_get_var_uint(int ncid, int varid, unsigned int *ip);
1769 
1770 EXTERNL int
1771 nc_put_var_longlong(int ncid, int varid, const long long *op);
1772 
1773 EXTERNL int
1774 nc_get_var_longlong(int ncid, int varid, long long *ip);
1775 
1776 EXTERNL int
1777 nc_put_var_ulonglong(int ncid, int varid, const unsigned long long *op);
1778 
1779 EXTERNL int
1780 nc_get_var_ulonglong(int ncid, int varid, unsigned long long *ip);
1781 
1782 EXTERNL int
1783 nc_put_var_string(int ncid, int varid, const char **op);
1784 
1785 EXTERNL int
1786 nc_get_var_string(int ncid, int varid, char **ip);
1787 
1788 /* Begin recursive instance walking functions */
1789 
1810 EXTERNL int nc_reclaim_data(int ncid, nc_type xtypeid, void* memory, size_t count);
1811 EXTERNL int nc_reclaim_data_all(int ncid, nc_type xtypeid, void* memory, size_t count);
1812 
1827 EXTERNL int nc_copy_data(int ncid, nc_type xtypeid, const void* memory, size_t count, void* copy);
1828 EXTERNL int nc_copy_data_all(int ncid, nc_type xtypeid, const void* memory, size_t count, void** copyp);
1829 
1830 /* Instance dumper for debugging */
1831 EXTERNL int nc_dump_data(int ncid, nc_type xtypeid, void* memory, size_t count, char** buf);
1832 
1833 /* end recursive instance walking functions */
1834 
1835 /* Begin Deprecated, same as functions with "_ubyte" replaced by "_uchar" */
1836 EXTERNL int
1837 nc_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype,
1838  size_t len, const unsigned char *op);
1839 EXTERNL int
1840 nc_get_att_ubyte(int ncid, int varid, const char *name,
1841  unsigned char *ip);
1842 EXTERNL int
1843 nc_put_var1_ubyte(int ncid, int varid, const size_t *indexp,
1844  const unsigned char *op);
1845 EXTERNL int
1846 nc_get_var1_ubyte(int ncid, int varid, const size_t *indexp,
1847  unsigned char *ip);
1848 EXTERNL int
1849 nc_put_vara_ubyte(int ncid, int varid, const size_t *startp,
1850  const size_t *countp, const unsigned char *op);
1851 EXTERNL int
1852 nc_get_vara_ubyte(int ncid, int varid, const size_t *startp,
1853  const size_t *countp, unsigned char *ip);
1854 EXTERNL int
1855 nc_put_vars_ubyte(int ncid, int varid, const size_t *startp,
1856  const size_t *countp, const ptrdiff_t *stridep,
1857  const unsigned char *op);
1858 EXTERNL int
1859 nc_get_vars_ubyte(int ncid, int varid, const size_t *startp,
1860  const size_t *countp, const ptrdiff_t *stridep,
1861  unsigned char *ip);
1862 EXTERNL int
1863 nc_put_varm_ubyte(int ncid, int varid, const size_t *startp,
1864  const size_t *countp, const ptrdiff_t *stridep,
1865  const ptrdiff_t * imapp, const unsigned char *op);
1866 EXTERNL int
1867 nc_get_varm_ubyte(int ncid, int varid, const size_t *startp,
1868  const size_t *countp, const ptrdiff_t *stridep,
1869  const ptrdiff_t * imapp, unsigned char *ip);
1870 EXTERNL int
1871 nc_put_var_ubyte(int ncid, int varid, const unsigned char *op);
1872 
1873 EXTERNL int
1874 nc_get_var_ubyte(int ncid, int varid, unsigned char *ip);
1875 
1876 /* End Deprecated */
1877 
1878 /* Set the log level. 0 shows only errors, 1 only major messages,
1879  * etc., to 5, which shows way too much information. */
1880 EXTERNL int
1881 nc_set_log_level(int new_level);
1882 
1883 /* Use this to turn off logging by calling
1884  nc_log_level(NC_TURN_OFF_LOGGING) */
1885 #define NC_TURN_OFF_LOGGING (-1)
1886 
1887 /* Show the netCDF library's in-memory metadata for a file. */
1888 EXTERNL int
1889 nc_show_metadata(int ncid);
1890 
1891 /* End {put,get}_var */
1892 
1893 /* Delete a file. */
1894 EXTERNL int
1895 nc_delete(const char *path);
1896 
1897 /*
1898  * The following functions were written to accommodate the old Cray
1899  * systems. Modern HPC systems do not use these functions any more,
1900  * but use the nc_open_par()/nc_create_par() functions instead. These
1901  * functions are retained for backward compatibibility. These
1902  * functions work as advertised, but you can only use "processor
1903  * element" 0.
1904  */
1905 
1906 EXTERNL int
1907 nc__create_mp(const char *path, int cmode, size_t initialsz, int basepe,
1908  size_t *chunksizehintp, int *ncidp);
1909 
1910 EXTERNL int
1911 nc__open_mp(const char *path, int mode, int basepe,
1912  size_t *chunksizehintp, int *ncidp);
1913 
1914 EXTERNL int
1915 nc_delete_mp(const char *path, int basepe);
1916 
1917 EXTERNL int
1918 nc_set_base_pe(int ncid, int pe);
1919 
1920 EXTERNL int
1921 nc_inq_base_pe(int ncid, int *pe);
1922 
1923 /* This v2 function is used in the nc_test program. */
1924 EXTERNL int
1925 nctypelen(nc_type datatype);
1926 
1927 /* Begin v2.4 backward compatibility */
1928 
1931 #define FILL_BYTE NC_FILL_BYTE
1932 #define FILL_CHAR NC_FILL_CHAR
1933 #define FILL_SHORT NC_FILL_SHORT
1934 #define FILL_LONG NC_FILL_INT
1935 #define FILL_FLOAT NC_FILL_FLOAT
1936 #define FILL_DOUBLE NC_FILL_DOUBLE
1937 
1938 #define MAX_NC_DIMS NC_MAX_DIMS
1939 #define MAX_NC_ATTRS NC_MAX_ATTRS
1940 #define MAX_NC_VARS NC_MAX_VARS
1941 #define MAX_NC_NAME NC_MAX_NAME
1942 #define MAX_VAR_DIMS NC_MAX_VAR_DIMS
1946 /*
1947  * Global error status
1948  */
1949 EXTERNL int ncerr;
1950 
1951 #define NC_ENTOOL NC_EMAXNAME
1952 #define NC_EXDR (-32)
1953 #define NC_SYSERR (-31)
1955 /*
1956  * Global options variable.
1957  * Used to determine behavior of error handler.
1958  */
1959 #define NC_FATAL 1
1960 #define NC_VERBOSE 2
1964 
1965 EXTERNL void
1966 nc_advise(const char *cdf_routine_name, int err, const char *fmt,...);
1967 
1973 typedef int nclong;
1974 
1975 EXTERNL int
1976 nccreate(const char* path, int cmode);
1977 
1978 EXTERNL int
1979 ncopen(const char* path, int mode);
1980 
1981 EXTERNL int
1982 ncsetfill(int ncid, int fillmode);
1983 
1984 EXTERNL int
1985 ncredef(int ncid);
1986 
1987 EXTERNL int
1988 ncendef(int ncid);
1989 
1990 EXTERNL int
1991 ncsync(int ncid);
1992 
1993 EXTERNL int
1994 ncabort(int ncid);
1995 
1996 EXTERNL int
1997 ncclose(int ncid);
1998 
1999 EXTERNL int
2000 ncinquire(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp);
2001 
2002 EXTERNL int
2003 ncdimdef(int ncid, const char *name, long len);
2004 
2005 EXTERNL int
2006 ncdimid(int ncid, const char *name);
2007 
2008 EXTERNL int
2009 ncdiminq(int ncid, int dimid, char *name, long *lenp);
2010 
2011 EXTERNL int
2012 ncdimrename(int ncid, int dimid, const char *name);
2013 
2014 EXTERNL int
2015 ncattput(int ncid, int varid, const char *name, nc_type xtype,
2016  int len, const void *op);
2017 
2018 EXTERNL int
2019 ncattinq(int ncid, int varid, const char *name, nc_type *xtypep, int *lenp);
2020 
2021 EXTERNL int
2022 ncattget(int ncid, int varid, const char *name, void *ip);
2023 
2024 EXTERNL int
2025 ncattcopy(int ncid_in, int varid_in, const char *name, int ncid_out,
2026  int varid_out);
2027 
2028 EXTERNL int
2029 ncattname(int ncid, int varid, int attnum, char *name);
2030 
2031 EXTERNL int
2032 ncattrename(int ncid, int varid, const char *name, const char *newname);
2033 
2034 EXTERNL int
2035 ncattdel(int ncid, int varid, const char *name);
2036 
2037 EXTERNL int
2038 ncvardef(int ncid, const char *name, nc_type xtype,
2039  int ndims, const int *dimidsp);
2040 
2041 EXTERNL int
2042 ncvarid(int ncid, const char *name);
2043 
2044 EXTERNL int
2045 ncvarinq(int ncid, int varid, char *name, nc_type *xtypep,
2046  int *ndimsp, int *dimidsp, int *nattsp);
2047 
2048 EXTERNL int
2049 ncvarput1(int ncid, int varid, const long *indexp, const void *op);
2050 
2051 EXTERNL int
2052 ncvarget1(int ncid, int varid, const long *indexp, void *ip);
2053 
2054 EXTERNL int
2055 ncvarput(int ncid, int varid, const long *startp, const long *countp,
2056  const void *op);
2057 
2058 EXTERNL int
2059 ncvarget(int ncid, int varid, const long *startp, const long *countp,
2060  void *ip);
2061 
2062 EXTERNL int
2063 ncvarputs(int ncid, int varid, const long *startp, const long *countp,
2064  const long *stridep, const void *op);
2065 
2066 EXTERNL int
2067 ncvargets(int ncid, int varid, const long *startp, const long *countp,
2068  const long *stridep, void *ip);
2069 
2070 EXTERNL int
2071 ncvarputg(int ncid, int varid, const long *startp, const long *countp,
2072  const long *stridep, const long *imapp, const void *op);
2073 
2074 EXTERNL int
2075 ncvargetg(int ncid, int varid, const long *startp, const long *countp,
2076  const long *stridep, const long *imapp, void *ip);
2077 
2078 EXTERNL int
2079 ncvarrename(int ncid, int varid, const char *name);
2080 
2081 EXTERNL int
2082 ncrecinq(int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp);
2083 
2084 EXTERNL int
2085 ncrecget(int ncid, long recnum, void **datap);
2086 
2087 EXTERNL int
2088 ncrecput(int ncid, long recnum, void *const *datap);
2089 
2090 /* This function may be called to force the library to
2091  initialize itself. It is not required, however.
2092 */
2093 EXTERNL int nc_initialize(void);
2094 
2095 /* This function may be called to force the library to
2096  cleanup global memory so that memory checkers will not
2097  report errors. It is not required, however.
2098 */
2099 EXTERNL int nc_finalize(void);
2100 
2101 /* Programmatic access to the internal .rc table */
2102 
2103 /* Get the value corresponding to key | return NULL; caller frees result */
2104 EXTERNL char* nc_rc_get(const char* key);
2105 
2106 /* Set/overwrite the value corresponding to key */
2107 EXTERNL int nc_rc_set(const char* key, const char* value);
2108 
2109 #if defined(__cplusplus)
2110 }
2111 #endif
2112 
2113 /* Define two hard-coded functionality-related
2114  (as requested by community developers) macros.
2115  This is not going to be standard practice.
2116  Don't remove without an in-place replacement of some sort,
2117  the are now (for better or worse) used by downstream
2118  software external to Unidata. */
2119 #ifndef NC_HAVE_RENAME_GRP
2120 #define NC_HAVE_RENAME_GRP
2121 #endif
2122 
2123 #ifndef NC_HAVE_INQ_FORMAT_EXTENDED
2124 #define NC_HAVE_INQ_FORMAT_EXTENDED
2125 #endif
2126 
2127 #define NC_HAVE_META_H
2128 
2129 #endif /* _NETCDF_ */
MSC_EXTRA int ncerr
V2 API error code.
Definition: dv2i.c:37
EXTERNL int nc_get_att_int(int ncid, int varid, const char *name, int *ip)
Get an attribute array of type int.
Definition: dattget.c:354
EXTERNL int nc_get_att_string(int ncid, int varid, const char *name, char **ip)
Get an attribute array of type string.
Definition: dattget.c:711
EXTERNL int nc_put_att(int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *op)
Write an attribute of any type.
Definition: dattput.c:222
EXTERNL int nc_get_att(int ncid, int varid, const char *name, void *ip)
Get an attribute of any type.
Definition: dattget.c:133
EXTERNL int nc_get_att_float(int ncid, int varid, const char *name, float *ip)
Get an attribute array of type float.
Definition: dattget.c:420
EXTERNL int nc_get_att_long(int ncid, int varid, const char *name, long *ip)
Get an attribute array of type long.
Definition: dattget.c:387
EXTERNL int nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *ip)
Get an attribute of an signed char type.
Definition: dattget.c:288
EXTERNL int nc_inq_attid(int ncid, int varid, const char *name, int *idp)
Find an attribute ID.
Definition: dattinq.c:164
EXTERNL int nc_get_att_longlong(int ncid, int varid, const char *name, long long *ip)
Get an attribute array of type long long.
Definition: dattget.c:585
EXTERNL int nc_put_att_uint(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned int *op)
Write an attribute of type unsigned int.
Definition: dattput.c:562
EXTERNL int nc_get_att_ubyte(int ncid, int varid, const char *name, unsigned char *ip)
Get an attribute array of type unsigned char.
Definition: dattget.c:486
EXTERNL int nc_put_att_string(int ncid, int varid, const char *name, size_t len, const char **op)
Write a string attribute.
Definition: dattput.c:75
EXTERNL int nc_inq_natts(int ncid, int *nattsp)
Find number of global or group attributes.
Definition: dattinq.c:300
EXTERNL int nc_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
Write an attribute of type unsigned char.
Definition: dattput.c:494
EXTERNL int nc_put_att_text(int ncid, int varid, const char *name, size_t len, const char *op)
Write a text attribute.
Definition: dattput.c:153
EXTERNL int nc_put_att_schar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const signed char *op)
Write an attribute of type signed char.
Definition: dattput.c:256
EXTERNL int nc_put_att_ushort(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned short *op)
Write an attribute of type unsigned short.
Definition: dattput.c:528
EXTERNL int nc_put_att_long(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long *op)
Write an attribute of type long.
Definition: dattput.c:392
EXTERNL int nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *op)
Write an attribute of type float.
Definition: dattput.c:426
EXTERNL int nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
Write an attribute of type unsigned char.
Definition: dattput.c:290
EXTERNL int nc_get_att_ulonglong(int ncid, int varid, const char *name, unsigned long long *ip)
Get an attribute array of type unsigned long long.
Definition: dattget.c:618
EXTERNL int nc_get_att_text(int ncid, int varid, const char *name, char *ip)
Get a text attribute.
Definition: dattget.c:222
EXTERNL int nc_get_att_short(int ncid, int varid, const char *name, short *ip)
Get an attribute array of type short.
Definition: dattget.c:321
EXTERNL int nc_inq_att(int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp)
Return information about a netCDF attribute.
Definition: dattinq.c:86
EXTERNL int nc_get_att_schar(int ncid, int varid, const char *name, signed char *ip)
Get an attribute of an signed char type.
Definition: dattget.c:255
EXTERNL int nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long long *op)
Write an attribute of type long long.
Definition: dattput.c:596
EXTERNL int nc_get_att_double(int ncid, int varid, const char *name, double *ip)
Get an attribute array of type double.
Definition: dattget.c:453
EXTERNL int nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
Find the type of an attribute.
Definition: dattinq.c:358
EXTERNL int nc_put_att_ulonglong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned long long *op)
Write an attribute of type unsigned long long.
Definition: dattput.c:631
EXTERNL int nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *op)
Write an attribute of type int.
Definition: dattput.c:358
EXTERNL int nc_del_att(int ncid, int varid, const char *name)
Delete an attribute.
Definition: datt.c:177
EXTERNL int nc_rename_att(int ncid, int varid, const char *name, const char *newname)
Rename an attribute.
Definition: datt.c:113
EXTERNL int nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *ip)
Get an attribute array of type unsigned short.
Definition: dattget.c:519
EXTERNL int nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *op)
Write an attribute of type short.
Definition: dattput.c:324
EXTERNL int nc_inq_attname(int ncid, int varid, int attnum, char *name)
Find the name of an attribute.
Definition: dattinq.c:255
EXTERNL int nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp)
Find the length of an attribute.
Definition: dattinq.c:424
EXTERNL int nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *ip)
Get an attribute array of type unsigned int.
Definition: dattget.c:552
EXTERNL int nc_put_att_double(int ncid, int varid, const char *name, nc_type xtype, size_t len, const double *op)
Write an attribute of type double.
Definition: dattput.c:460
EXTERNL int nc_inq_user_format(int mode_flag, NC_Dispatch **dispatch_table, char *magic_number)
Inquire about user-defined format.
Definition: dfile.c:181
EXTERNL int nc_get_alignment(int *thresholdp, int *alignmentp)
Provide get function to retrieve global data alignment information.
Definition: nc4internal.c:2231
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.
Definition: dfile.c:472
EXTERNL int nc_close(int ncid)
Close an open netCDF dataset.
Definition: dfile.c:1302
EXTERNL int nc_abort(int ncid)
No longer necessary for user to invoke manually.
Definition: dfile.c:1249
EXTERNL int nc_create(const char *path, int cmode, int *ncidp)
Create a new netCDF file.
Definition: dfile.c:400
EXTERNL int nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
Inquire about a file or group.
Definition: dfile.c:1637
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.
Definition: dfile.c:1584
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.
Definition: dfile.c:1120
EXTERNL int nc_set_fill(int ncid, int fillmode, int *old_modep)
Change the fill-value mode to improve write performance.
Definition: dfile.c:1476
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.
Definition: dfile.c:723
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.
Definition: dfile.c:900
EXTERNL int nc_set_alignment(int threshold, int alignment)
Provide a function to store global data alignment information.
Definition: nc4internal.c:2204
EXTERNL int nc_def_user_format(int mode_flag, NC_Dispatch *dispatch_table, char *magic_number)
Add handling of user-defined format.
Definition: dfile.c:125
EXTERNL int nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp)
Get current netCDF chunk cache settings.
Definition: nc4cache.c:95
EXTERNL int nc_inq_type(int ncid, nc_type xtype, char *name, size_t *size)
Inquire about a type.
Definition: dfile.c:1730
EXTERNL int nc_enddef(int ncid)
Leave define mode.
Definition: dfile.c:1029
EXTERNL int nc_redef(int ncid)
Put open netcdf dataset into define mode.
Definition: dfile.c:965
EXTERNL int nc_open(const char *path, int mode, int *ncidp)
Open an existing netCDF file.
Definition: dfile.c:666
EXTERNL int nc_set_chunk_cache(size_t size, size_t nelems, float preemption)
Set chunk cache size.
Definition: nc4cache.c:66
EXTERNL int nc_inq_format(int ncid, int *formatp)
Inquire about the binary format of a netCDF file as presented by the API.
Definition: dfile.c:1549
EXTERNL int nc_sync(int ncid)
Synchronize an open netcdf dataset to disk.
Definition: dfile.c:1197
EXTERNL int nc_inq_ndims(int ncid, int *ndimsp)
Find the number of dimensions.
Definition: ddim.c:317
EXTERNL int nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
Find the length of a dimension.
Definition: ddim.c:467
EXTERNL int nc_inq_dimname(int ncid, int dimid, char *name)
Find out the name of a dimension.
Definition: ddim.c:409
EXTERNL int nc_def_dim(int ncid, const char *name, size_t len, int *idp)
Define a new dimension.
Definition: ddim.c:121
EXTERNL int nc_rename_dim(int ncid, int dimid, const char *name)
Rename a dimension.
Definition: ddim.c:285
EXTERNL int nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
Find the name and length of a dimension.
Definition: ddim.c:216
EXTERNL int nc_inq_unlimdim(int ncid, int *unlimdimidp)
Find the ID of the unlimited dimension.
Definition: ddim.c:350
EXTERNL int nc_inq_dimid(int ncid, const char *name, int *idp)
Find the ID of a dimension from the name.
Definition: ddim.c:152
EXTERNL const char * nc_strerror(int ncerr)
Given an error number, return an error message.
Definition: derror.c:87
EXTERNL int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
Retrieve a list of types associated with a group.
Definition: dgroup.c:223
EXTERNL int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
Retrieve a list of dimension ids associated with a group.
Definition: dgroup.c:205
EXTERNL int nc_inq_grps(int ncid, int *numgrps, int *ncids)
Get a list of groups or subgroups from a file or groupID.
Definition: dgroup.c:73
EXTERNL int nc_show_metadata(int ncid)
Print the metadata for a file.
Definition: dgroup.c:299
EXTERNL int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
Get the full ncid given a group name.
Definition: dgroup.c:169
EXTERNL int nc_inq_grpname(int ncid, char *name)
Get the name of a group given an ID.
Definition: dgroup.c:88
EXTERNL int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
Return the group ID for a group given the name.
Definition: dgroup.c:56
EXTERNL int nc_inq_varids(int ncid, int *nvars, int *varids)
Get a list of varids associated with a group given a group ID.
Definition: dgroup.c:187
EXTERNL int nc_inq_grp_parent(int ncid, int *parent_ncid)
Get the ID of the parent based on a group ID.
Definition: dgroup.c:136
EXTERNL int nc_inq_grpname_len(int ncid, size_t *lenp)
Get the length of a group name given an ID.
Definition: dgroup.c:122
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.
Definition: dgroup.c:106
EXTERNL int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
Define a new group.
Definition: dgroup.c:268
EXTERNL int nc_rename_grp(int grpid, const char *name)
Rename a group.
Definition: dgroup.c:284
EXTERNL int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
Get a group ncid given the group name.
Definition: dgroup.c:155
EXTERNL int nc_def_enum(int ncid, nc_type base_typeid, const char *name, nc_type *typeidp)
Create an enum type.
Definition: denum.c:43
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.
Definition: dcompound.c:383
EXTERNL int nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equal)
Learn if two types are equal.
Definition: dtype.c:69
EXTERNL int nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep, size_t *nfieldsp)
Learn about a compound type.
Definition: dcompound.c:175
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.
Definition: denum.c:140
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.
Definition: dcompound.c:99
EXTERNL int nc_def_opaque(int ncid, size_t size, const char *name, nc_type *xtypep)
Create an opaque type.
Definition: dopaque.c:33
EXTERNL int nc_inq_compound_name(int ncid, nc_type xtype, char *name)
Learn the name of a compound type.
Definition: dcompound.c:203
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.
Definition: dcompound.c:287
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.
Definition: dvlen.c:115
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.
Definition: dcompound.c:443
EXTERNL int nc_free_vlen(nc_vlen_t *vl)
Free memory in a VLEN object.
Definition: dvlen.c:43
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.
Definition: dvlen.c:143
EXTERNL int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep)
Learn about an opaque type.
Definition: dopaque.c:61
EXTERNL int nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp)
Create a compound type.
Definition: dcompound.c:63
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.
Definition: dvlen.c:77
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.
Definition: dcompound.c:475
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.
Definition: dcompound.c:413
EXTERNL int nc_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp)
Learn the number of fields in a compound type.
Definition: dcompound.c:249
EXTERNL int nc_insert_enum(int ncid, nc_type xtype, const char *name, const void *value)
Insert a named member into a enum type.
Definition: denum.c:71
EXTERNL int nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
Find a type by name.
Definition: dtype.c:102
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.
Definition: dcompound.c:141
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.
Definition: denum.c:107
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.
Definition: denum.c:164
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.
Definition: dcompound.c:353
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.
Definition: dcompound.c:321
EXTERNL int nc_inq_compound_size(int ncid, nc_type xtype, size_t *sizep)
Learn the size of a compound type.
Definition: dcompound.c:226
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.
Definition: dtype.c:146
EXTERNL int ncvardef(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp)
Define a variable.
Definition: dv2i.c:856
EXTERNL int ncclose(int ncid)
Close a file.
Definition: dv2i.c:606
EXTERNL int ncvarputg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, const void *op)
Write mapped data.
Definition: dv2i.c:1231
EXTERNL int ncattget(int ncid, int varid, const char *name, void *ip)
Read an attribute.
Definition: dv2i.c:1479
EXTERNL int ncattinq(int ncid, int varid, const char *name, nc_type *xtypep, int *lenp)
Learn about an attribute.
Definition: dv2i.c:1440
EXTERNL int ncattrename(int ncid, int varid, const char *name, const char *newname)
Rename an attribute.
Definition: dv2i.c:1574
EXTERNL int ncattname(int ncid, int varid, int attnum, char *name)
Learn attribute name from its number.
Definition: dv2i.c:1543
EXTERNL int ncvarput1(int ncid, int varid, const long *indexp, const void *op)
Write 1 data value.
Definition: dv2i.c:965
EXTERNL int ncvarid(int ncid, const char *name)
Learn a variable ID from the name.
Definition: dv2i.c:887
EXTERNL int nccreate(const char *path, int cmode)
Create a netCDF file.
Definition: dv2i.c:511
EXTERNL int ncendef(int ncid)
End define mode for file.
Definition: dv2i.c:583
EXTERNL int ncopen(const char *path, int mode)
Open a netCDF file.
Definition: dv2i.c:536
EXTERNL int ncrecput(int ncid, long recnum, void *const *datap)
Write one record's worth of data, except don't write to variables for which the address of the data t...
Definition: dv2i.c:1754
EXTERNL int ncattcopy(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
Copy an attribute.
Definition: dv2i.c:1511
EXTERNL int ncdimrename(int ncid, int dimid, const char *name)
Rename a dimension.
Definition: dv2i.c:825
EXTERNL int ncattdel(int ncid, int varid, const char *name)
Delete an attribute.
Definition: dv2i.c:1604
EXTERNL int ncvarputs(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const void *op)
Write strided data.
Definition: dv2i.c:1125
EXTERNL int ncvarput(int ncid, int varid, const long *startp, const long *countp, const void *op)
Write some data.
Definition: dv2i.c:1040
EXTERNL int ncdiminq(int ncid, int dimid, char *name, long *lenp)
Learn about a dimension.
Definition: dv2i.c:788
EXTERNL int ncvarget1(int ncid, int varid, const long *indexp, void *ip)
Read 1 data value.
Definition: dv2i.c:1002
EXTERNL int ncvargetg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, void *ip)
Read mapped data.
Definition: dv2i.c:1304
EXTERNL int ncinquire(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp)
Learn about a file.
Definition: dv2i.c:635
EXTERNL int ncvarinq(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
Learn about a variable.
Definition: dv2i.c:920
EXTERNL int ncattput(int ncid, int varid, const char *name, nc_type xtype, int len, const void *op)
Write an attribute.
Definition: dv2i.c:1405
EXTERNL void nc_advise(const char *cdf_routine_name, int err, const char *fmt,...)
Show an error message and exit (based on ncopts).
Definition: dv2i.c:466
EXTERNL int ncabort(int ncid)
Abort defining a file.
Definition: dv2i.c:700
EXTERNL int ncsync(int ncid)
Sync a file.
Definition: dv2i.c:677
EXTERNL int ncrecinq(int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp)
Learn record variables and the lengths of the record dimension.
Definition: dv2i.c:1666
EXTERNL int ncrecget(int ncid, long recnum, void **datap)
Read one record's worth of data, except don't read from variables for which the address of the data t...
Definition: dv2i.c:1723
EXTERNL int ncsetfill(int ncid, int fillmode)
Set the fill mode.
Definition: dv2i.c:1636
EXTERNL int ncdimdef(int ncid, const char *name, long len)
Define a dimension.
Definition: dv2i.c:726
EXTERNL int ncvarget(int ncid, int varid, const long *startp, const long *countp, void *ip)
Read some data.
Definition: dv2i.c:1082
EXTERNL int ncvargets(int ncid, int varid, const long *startp, const long *countp, const long *stridep, void *ip)
Read strided data.
Definition: dv2i.c:1178
EXTERNL int ncredef(int ncid)
Put file in define mode.
Definition: dv2i.c:560
EXTERNL int ncvarrename(int ncid, int varid, const char *name)
Rename a variable.
Definition: dv2i.c:1373
EXTERNL int ncdimid(int ncid, const char *name)
Find dimension ID from name.
Definition: dv2i.c:761
int nc_put_var_ushort(int ncid, int varid, const unsigned short *op)
Write an entire variable with one call.
Definition: dvarput.c:980
EXTERNL int nc_inq_var_endian(int ncid, int varid, int *endianp)
Find the endianness of a variable.
Definition: dvarinq.c:582
EXTERNL int nc_inq_varndims(int ncid, int varid, int *ndimsp)
Learn how many dimensions are associated with a variable.
Definition: dvarinq.c:202
int nc_put_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const signed char *op)
Write an array of values to a variable.
Definition: dvarput.c:652
int nc_put_var_longlong(int ncid, int varid, const long long *op)
Write an entire variable with one call.
Definition: dvarput.c:992
int nc_get_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, float *ip)
Read an array of values from a variable.
Definition: dvarget.c:796
int nc_put_var1_uint(int ncid, int varid, const size_t *indexp, const unsigned int *op)
Write one datum.
Definition: dvarput.c:847
EXTERNL int nc_def_var_endian(int ncid, int varid, int endian)
Define endianness of a variable.
Definition: dvar.c:807
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1139
EXTERNL int nc_inq_varname(int ncid, int varid, char *name)
Learn the name of a variable.
Definition: dvarinq.c:156
int nc_put_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, const long *op)
Write an array of values to a variable.
Definition: dvarput.c:684
EXTERNL int nc_free_string(size_t len, char **data)
Free string space allocated by the library.
Definition: dvar.c:1316
int nc_get_vars_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char *ip)
Read a strided array from a variable.
Definition: dvarget.c:1174
int nc_put_vara_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned long long *op)
Write an array of values to a variable.
Definition: dvarput.c:740
int nc_put_vars_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const int *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1089
EXTERNL int nc_inq_var_quantize(int ncid, int varid, int *quantize_modep, int *nsdp)
Learn whether quantization is on for a variable, and, if so, the NSD setting.
Definition: dvarinq.c:545
int nc_get_var1_longlong(int ncid, int varid, const size_t *indexp, long long *ip)
Read a single datum from a variable.
Definition: dvarget.c:967
int nc_put_var1_float(int ncid, int varid, const size_t *indexp, const float *op)
Write one datum.
Definition: dvarput.c:823
EXTERNL int nc_def_var_szip(int ncid, int varid, int options_mask, int pixels_per_block)
Set szip compression settings on a variable.
Definition: dvar.c:864
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1252
int nc_put_var1_schar(int ncid, int varid, const size_t *indexp, const signed char *op)
Write one datum.
Definition: dvarput.c:793
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)
Read a mapped array from a variable.
Definition: dvarget.c:1421
int nc_get_var_schar(int ncid, int varid, signed char *ip)
Read an entire variable in one call.
Definition: dvarget.c:1045
EXTERNL int nc_inq_var_deflate(int ncid, int varid, int *shufflep, int *deflatep, int *deflate_levelp)
Learn the shuffle and deflate settings for a variable.
Definition: dvarinq.c:295
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.
Definition: dvarget.c:1165
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.
Definition: dvar.c:1394
EXTERNL int nc_inq_vartype(int ncid, int varid, nc_type *xtypep)
Learn the type of a variable.
Definition: dvarinq.c:178
int nc_put_var1_double(int ncid, int varid, const size_t *indexp, const double *op)
Write one datum.
Definition: dvarput.c:829
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)
Read a mapped array from a variable.
Definition: dvarget.c:1479
int nc_put_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, const float *op)
Write an array of values to a variable.
Definition: dvarput.c:692
EXTERNL int nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p)
Learn the checksum settings for a variable.
Definition: dvarinq.c:378
int nc_put_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const short *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1079
int nc_get_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, char *ip)
Read an array of values from a variable.
Definition: dvarget.c:754
int nc_get_var1_short(int ncid, int varid, const size_t *indexp, short *ip)
Read a single datum from a variable.
Definition: dvarget.c:913
int nc_get_var1_ushort(int ncid, int varid, const size_t *indexp, unsigned short *ip)
Read a single datum from a variable.
Definition: dvarget.c:953
int nc_get_var_ubyte(int ncid, int varid, unsigned char *ip)
Read an entire variable in one call.
Definition: dvarget.c:1087
int nc_get_vars_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, int *ip)
Read a strided array from a variable.
Definition: dvarget.c:1210
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1129
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)
Read a mapped array from a variable.
Definition: dvarget.c:1403
EXTERNL int nc_inq_varid(int ncid, const char *name, int *varidp)
Find the ID of a variable, from the name.
Definition: dvarinq.c:60
int nc_get_var1_uint(int ncid, int varid, const size_t *indexp, unsigned int *ip)
Read a single datum from a variable.
Definition: dvarget.c:960
int nc_get_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, double *ip)
Read an array of values from a variable.
Definition: dvarget.c:803
int nc_get_vars_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
Read a strided array from a variable.
Definition: dvarget.c:1192
int nc_put_var_short(int ncid, int varid, const short *op)
Write an entire variable with one call.
Definition: dvarput.c:944
int nc_get_var_long(int ncid, int varid, long *ip)
Read an entire variable in one call.
Definition: dvarget.c:1069
int nc_put_var1_ushort(int ncid, int varid, const size_t *indexp, const unsigned short *op)
Write one datum.
Definition: dvarput.c:841
int nc_put_var_long(int ncid, int varid, const long *op)
Write an entire variable with one call.
Definition: dvarput.c:956
int nc_get_var1_string(int ncid, int varid, const size_t *indexp, char **ip)
Read a single datum from a variable.
Definition: dvarget.c:981
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1282
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)
Read a mapped array from a variable.
Definition: dvarget.c:1430
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1149
int nc_put_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, const int *op)
Write an array of values to a variable.
Definition: dvarput.c:676
int nc_get_var1_ubyte(int ncid, int varid, const size_t *indexp, unsigned char *ip)
Read a single datum from a variable.
Definition: dvarget.c:946
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.
Definition: dvarput.c:1235
int nc_get_var_uchar(int ncid, int varid, unsigned char *ip)
Read an entire variable in one call.
Definition: dvarget.c:1051
int nc_get_var_ushort(int ncid, int varid, unsigned short *ip)
Read an entire variable in one call.
Definition: dvarget.c:1093
EXTERNL int nc_inq_varnatts(int ncid, int varid, int *nattsp)
Learn how many attributes are associated with a variable.
Definition: dvarinq.c:249
int nc_get_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
Read an array of values from a variable.
Definition: dvarget.c:768
int nc_put_var_float(int ncid, int varid, const float *op)
Write an entire variable with one call.
Definition: dvarput.c:962
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)
Read a strided array from a variable.
Definition: dvarget.c:1282
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1292
EXTERNL int nc_put_var(int ncid, int varid, const void *op)
Write an entire variable with one call.
Definition: dvarput.c:920
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.
Definition: dvarget.c:741
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)
Read a mapped array from a variable.
Definition: dvarget.c:1386
int nc_get_vars_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long long *ip)
Read a strided array from a variable.
Definition: dvarget.c:1273
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.
Definition: dvar.c:461
int nc_get_vars_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
Read a strided array from a variable.
Definition: dvarget.c:1246
int nc_get_var1_ulonglong(int ncid, int varid, const size_t *indexp, unsigned long long *ip)
Read a single datum from a variable.
Definition: dvarget.c:974
int nc_get_vars_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, signed char *ip)
Read a strided array from a variable.
Definition: dvarget.c:1183
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1243
int nc_put_vars_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const float *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1109
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.
Definition: dvarput.c:1043
int nc_get_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, char **ip)
Read an array of values from a variable.
Definition: dvarget.c:845
EXTERNL int nc_def_var_fletcher32(int ncid, int varid, int fletcher32)
Set checksum for a var.
Definition: dvar.c:609
EXTERNL int nc_def_var_quantize(int ncid, int varid, int quantize_mode, int nsd)
Turn on quantization for a variable.
Definition: dvar.c:560
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1069
int nc_get_vars_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned short *ip)
Read a strided array from a variable.
Definition: dvarget.c:1255
EXTERNL int nc_get_var(int ncid, int varid, void *ip)
Read an entire variable in one call.
Definition: dvarget.c:1033
int nc_put_var_double(int ncid, int varid, const double *op)
Write an entire variable with one call.
Definition: dvarput.c:968
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.
Definition: dvarget.c:1359
int nc_put_var_text(int ncid, int varid, const char *op)
Write an entire variable with one call.
Definition: dvarput.c:926
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)
Read a mapped array from a variable.
Definition: dvarget.c:1460
int nc_get_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned short *ip)
Read an array of values from a variable.
Definition: dvarget.c:817
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)
Read a mapped array from a variable.
Definition: dvarget.c:1377
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1342
int nc_put_var1_ubyte(int ncid, int varid, const size_t *indexp, const unsigned char *op)
Write one datum.
Definition: dvarput.c:835
int nc_get_var1_double(int ncid, int varid, const size_t *indexp, double *ip)
Read a single datum from a variable.
Definition: dvarget.c:939
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1372
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)
Read a mapped array from a variable.
Definition: dvarget.c:1440
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)
Read a mapped array from a variable.
Definition: dvarget.c:1367
int nc_put_var_string(int ncid, int varid, const char **op)
Write an entire variable with one call.
Definition: dvarput.c:1004
int nc_put_var1_short(int ncid, int varid, const size_t *indexp, const short *op)
Write one datum.
Definition: dvarput.c:805
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)
Read a mapped array from a variable.
Definition: dvarget.c:1469
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1272
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1262
int nc_put_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, const char **op)
Write an array of values to a variable.
Definition: dvarput.c:748
int nc_put_vars_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const double *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1119
int nc_get_var_double(int ncid, int varid, double *ip)
Read an entire variable in one call.
Definition: dvarget.c:1081
int nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op)
Write one datum.
Definition: dvarput.c:787
int nc_put_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
Write an array of values to a variable.
Definition: dvarput.c:708
int nc_put_var_schar(int ncid, int varid, const signed char *op)
Write an entire variable with one call.
Definition: dvarput.c:932
int nc_get_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, signed char *ip)
Read an array of values from a variable.
Definition: dvarget.c:761
int nc_get_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, short *ip)
Read a strided array from a variable.
Definition: dvarget.c:1201
int nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip)
Read a single datum from a variable.
Definition: dvarget.c:895
int nc_put_var_ulonglong(int ncid, int varid, const unsigned long long *op)
Write an entire variable with one call.
Definition: dvarput.c:998
int nc_get_var_text(int ncid, int varid, char *ip)
Read an entire variable in one call.
Definition: dvarget.c:1039
EXTERNL int nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
Learn about a variable.
Definition: dvarinq.c:124
EXTERNL int nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp)
Learn the szip settings of a variable.
Definition: dvarinq.c:732
int nc_get_var1_int(int ncid, int varid, const size_t *indexp, int *ip)
Read a single datum from a variable.
Definition: dvarget.c:919
int nc_put_var_int(int ncid, int varid, const int *op)
Write an entire variable with one call.
Definition: dvarput.c:950
int nc_put_var1_string(int ncid, int varid, const size_t *indexp, const char **op)
Write one datum.
Definition: dvarput.c:865
int nc_put_vars_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1051
EXTERNL int nc_inq_var_filter(int ncid, int varid, unsigned int *idp, size_t *nparams, unsigned int *params)
Find the first filter (if any) associated with a variable.
Definition: dfilter.c:171
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1169
int nc_get_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, int *ip)
Read an array of values from a variable.
Definition: dvarget.c:782
EXTERNL int nc_inq_vardimid(int ncid, int varid, int *dimidsp)
Learn the dimension IDs associated with a variable.
Definition: dvarinq.c:225
int nc_put_var1_ulonglong(int ncid, int varid, const size_t *indexp, const unsigned long long *op)
Write one datum.
Definition: dvarput.c:859
int nc_get_var_ulonglong(int ncid, int varid, unsigned long long *ip)
Read an entire variable in one call.
Definition: dvarget.c:1111
int nc_get_vars_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, float *ip)
Read a strided array from a variable.
Definition: dvarget.c:1228
int nc_get_var1_float(int ncid, int varid, const size_t *indexp, float *ip)
Read a single datum from a variable.
Definition: dvarget.c:932
int nc_get_vars_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned int *ip)
Read a strided array from a variable.
Definition: dvarget.c:1264
int nc_get_var_uint(int ncid, int varid, unsigned int *ip)
Read an entire variable in one call.
Definition: dvarget.c:1099
int nc_put_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned short *op)
Write an array of values to a variable.
Definition: dvarput.c:716
int nc_put_var_uint(int ncid, int varid, const unsigned int *op)
Write an entire variable with one call.
Definition: dvarput.c:986
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1352
int nc_put_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const long long *op)
Write an array of values to a variable.
Definition: dvarput.c:732
int nc_get_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, short *ip)
Read an array of values from a variable.
Definition: dvarget.c:775
int nc_get_var_short(int ncid, int varid, short *ip)
Read an entire variable in one call.
Definition: dvarget.c:1057
int nc_put_var1_long(int ncid, int varid, const size_t *indexp, const long *op)
Write one datum.
Definition: dvarput.c:817
EXTERNL int nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip)
Read a single datum from a variable.
Definition: dvarget.c:889
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1332
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)
Read a mapped array from a variable.
Definition: dvarget.c:1412
int nc_put_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, const double *op)
Write an array of values to a variable.
Definition: dvarput.c:700
EXTERNL int nc_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value)
Set the fill value for a variable.
Definition: dvar.c:309
EXTERNL int nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp)
Get the storage and (for chunked variables) the chunksizes of a variable.
Definition: dvarinq.c:466
int nc_put_var1_longlong(int ncid, int varid, const size_t *indexp, const long long *op)
Write one datum.
Definition: dvarput.c:853
int nc_put_vars_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long *op)
Write a strided array of values to a variable.
Definition: dvarput.c:1099
int nc_put_var1_uchar(int ncid, int varid, const size_t *indexp, const unsigned char *op)
Write one datum.
Definition: dvarput.c:799
int nc_get_vars_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, double *ip)
Read a strided array from a variable.
Definition: dvarget.c:1237
int nc_put_var_uchar(int ncid, int varid, const unsigned char *op)
Write an entire variable with one call.
Definition: dvarput.c:938
int nc_put_var_ubyte(int ncid, int varid, const unsigned char *op)
Write an entire variable with one call.
Definition: dvarput.c:974
EXTERNL int nc_def_var(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
Define a new variable.
Definition: dvar.c:214
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)
Read a mapped array from a variable.
Definition: dvarget.c:1394
int nc_get_var_float(int ncid, int varid, float *ip)
Read an entire variable in one call.
Definition: dvarget.c:1075
EXTERNL int nc_rename_var(int ncid, int varid, const char *name)
Rename a variable.
Definition: dvar.c:946
int nc_put_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, const char *op)
Write an array of values to a variable.
Definition: dvarput.c:644
int nc_get_var_longlong(int ncid, int varid, long long *ip)
Read an entire variable in one call.
Definition: dvarget.c:1105
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)
Read a mapped array from a variable.
Definition: dvarget.c:1450
int nc_get_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned int *ip)
Read an array of values from a variable.
Definition: dvarget.c:824
int nc_put_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned int *op)
Write an array of values to a variable.
Definition: dvarput.c:724
int nc_get_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, long long *ip)
Read an array of values from a variable.
Definition: dvarget.c:831
EXTERNL int nc_put_var1(int ncid, int varid, const size_t *indexp, const void *op)
Write one datum.
Definition: dvarput.c:781
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1312
int nc_put_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char **op)
Write a strided array of values to a variable.
Definition: dvarput.c:1179
int nc_get_var_int(int ncid, int varid, int *ip)
Read an entire variable in one call.
Definition: dvarget.c:1063
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.
Definition: dvarput.c:631
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1322
int nc_put_var1_int(int ncid, int varid, const size_t *indexp, const int *op)
Write one datum.
Definition: dvarput.c:811
int nc_get_var_string(int ncid, int varid, char **ip)
Read an entire variable in one call.
Definition: dvarget.c:1117
int nc_put_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, const short *op)
Write an array of values to a variable.
Definition: dvarput.c:668
int nc_get_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char **ip)
Read a strided array from a variable.
Definition: dvarget.c:1291
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1362
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.
Definition: dvar.c:729
int nc_get_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
Read an array of values from a variable.
Definition: dvarget.c:810
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.
Definition: dvar.c:1435
int nc_get_vara_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned long long *ip)
Read an array of values from a variable.
Definition: dvarget.c:838
int nc_get_vars_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long *ip)
Read a strided array from a variable.
Definition: dvarget.c:1219
int nc_get_var1_schar(int ncid, int varid, const size_t *indexp, signed char *ip)
Read a single datum from a variable.
Definition: dvarget.c:901
int nc_put_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
Write an array of values to a variable.
Definition: dvarput.c:660
int nc_get_var1_uchar(int ncid, int varid, const size_t *indexp, unsigned char *ip)
Read a single datum from a variable.
Definition: dvarget.c:907
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1159
EXTERNL int nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
Learn the fill mode of a variable.
Definition: dvarinq.c:502
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)
Write a mapped array of values to a variable.
Definition: dvarput.c:1302
int nc_get_var1_long(int ncid, int varid, const size_t *indexp, long *ip)
Read a single datum from a variable.
Definition: dvarget.c:925
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)
Write a strided array of values to a variable.
Definition: dvarput.c:1060
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)
Read a mapped array from a variable.
Definition: dvarget.c:1488
int nc_get_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, long *ip)
Read an array of values from a variable.
Definition: dvarget.c:789
EXTERNL int nc_inq_nvars(int ncid, int *nvarsp)
Learn the number of variables in a file or group.
Definition: dfile.c:1656
void * p
Pointer to VL data.
Definition: netcdf.h:748
size_t len
Length of VL data (in base type units)
Definition: netcdf.h:747
EXTERNL int nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp)
Return number and list of unlimited dimensions.
Definition: dvarinq.c:672
#define EXTERNL
Needed for DLL build.
Definition: netcdf.h:556
EXTERNL int ncopts
V2 API error handling.
Definition: netcdf.h:1963
EXTERNL int nc_copy_data(int ncid, nc_type xtypeid, const void *memory, size_t count, void *copy)
Copy vector of arbitrary type instances.
EXTERNL const char * nc_inq_libvers(void)
Return the library version.
Definition: derror.c:27
int nclong
C data type corresponding to a netCDF NC_LONG argument, a signed 32 bit object.
Definition: netcdf.h:1973
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.
Definition: dcopy.c:659
EXTERNL int nc_reclaim_data(int ncid, nc_type xtypeid, void *memory, size_t count)
Reclaim a vector of instances of arbitrary type.
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...
Definition: dcopy.c:273
EXTERNL int nc_def_var_filter(int ncid, int varid, unsigned int id, size_t nparams, const unsigned int *parms)
Define a new variable filter Assumes HDF5 format using unsigned ints.
Definition: dfilter.c:124
int nc_type
The nc_type type is just an int.
Definition: netcdf.h:25
This is the type of arrays of vlens.
Definition: netcdf.h:746