netcdf.h
Go to the documentation of this file.
1 
12 #ifndef _NETCDF_
13 #define _NETCDF_
14 
15 #include <stddef.h> /* size_t, ptrdiff_t */
16 #include <errno.h> /* netcdf functions sometimes return system errors */
17 
18 /* Required for alloca on Windows */
19 #if defined(_WIN32) || defined(_WIN64)
20 #include <malloc.h>
21 #endif
22 
23 #ifdef _WIN64
24 #include <sys/stat.h>
25 #endif
26 
28 typedef int nc_type;
29 
30 #if defined(__cplusplus)
31 extern "C" {
32 #endif
33 
34 /*
35  * The netcdf external data types
36  */
37 #define NC_NAT 0
38 #define NC_BYTE 1
39 #define NC_CHAR 2
40 #define NC_SHORT 3
41 #define NC_INT 4
42 #define NC_LONG NC_INT
43 #define NC_FLOAT 5
44 #define NC_DOUBLE 6
45 #define NC_UBYTE 7
46 #define NC_USHORT 8
47 #define NC_UINT 9
48 #define NC_INT64 10
49 #define NC_UINT64 11
50 #define NC_STRING 12
52 #define NC_MAX_ATOMIC_TYPE NC_STRING
53 
54 /* The following are use internally in support of user-defines
55  * types. They are also the class returned by nc_inq_user_type. */
56 #define NC_VLEN 13
57 #define NC_OPAQUE 14
58 #define NC_ENUM 15
59 #define NC_COMPOUND 16
61 /* Define the first user defined type id (leave some room) */
62 #define NC_FIRSTUSERTYPEID 32
63 
69 #define NC_FILL_BYTE ((signed char)-127)
70 #define NC_FILL_CHAR ((char)0)
71 #define NC_FILL_SHORT ((short)-32767)
72 #define NC_FILL_INT (-2147483647L)
73 #define NC_FILL_FLOAT (9.9692099683868690e+36f) /* near 15 * 2^119 */
74 #define NC_FILL_DOUBLE (9.9692099683868690e+36)
75 #define NC_FILL_UBYTE (255)
76 #define NC_FILL_USHORT (65535)
77 #define NC_FILL_UINT (4294967295U)
78 #define NC_FILL_INT64 ((long long)-9223372036854775806LL)
79 #define NC_FILL_UINT64 ((unsigned long long)18446744073709551614ULL)
80 #define NC_FILL_STRING ((char *)"")
81 
91 #define NC_MAX_BYTE 127
92 #define NC_MIN_BYTE (-NC_MAX_BYTE-1)
93 #define NC_MAX_CHAR 255
94 #define NC_MAX_SHORT 32767
95 #define NC_MIN_SHORT (-NC_MAX_SHORT - 1)
96 #define NC_MAX_INT 2147483647
97 #define NC_MIN_INT (-NC_MAX_INT - 1)
98 #define NC_MAX_FLOAT 3.402823466e+38f
99 #define NC_MIN_FLOAT (-NC_MAX_FLOAT)
100 #define NC_MAX_DOUBLE 1.7976931348623157e+308
101 #define NC_MIN_DOUBLE (-NC_MAX_DOUBLE)
102 #define NC_MAX_UBYTE NC_MAX_CHAR
103 #define NC_MAX_USHORT 65535U
104 #define NC_MAX_UINT 4294967295U
105 #define NC_MAX_INT64 (9223372036854775807LL)
106 #define NC_MIN_INT64 (-9223372036854775807LL-1)
107 #define NC_MAX_UINT64 (18446744073709551615ULL)
108 #define X_INT64_MAX (9223372036854775807LL)
109 #define X_INT64_MIN (-X_INT64_MAX - 1)
110 #define X_UINT64_MAX (18446744073709551615ULL)
111 
118 #define _FillValue "_FillValue"
119 #define NC_FILL 0
120 #define NC_NOFILL 0x100
122 /* Define the ioflags bits for nc_create and nc_open.
123  currently unused:
124  0x0002
125  0x0040
126  0x0080
127  and the whole upper 16 bits
128 */
129 
130 #define NC_NOWRITE 0x0000
131 #define NC_WRITE 0x0001
132 #define NC_CLOBBER 0x0000
133 #define NC_NOCLOBBER 0x0004
135 #define NC_DISKLESS 0x0008
136 #define NC_MMAP 0x0010
138 #define NC_64BIT_DATA 0x0020
139 #define NC_CDF5 NC_64BIT_DATA
141 #define NC_CLASSIC_MODEL 0x0100
142 #define NC_64BIT_OFFSET 0x0200
148 #define NC_LOCK 0x0400
149 
152 #define NC_SHARE 0x0800
153 
154 #define NC_NETCDF4 0x1000
158 #define NC_MPIIO 0x2000
159 
161 #define NC_MPIPOSIX 0x4000
163 #define NC_INMEMORY 0x8000
165 #define NC_PNETCDF (NC_MPIIO)
174 #define NC_FORMAT_CLASSIC (1)
175 /* After adding CDF5 support, this flag
176  is somewhat confusing. So, it is renamed.
177  Note that the name in the contributed code
178  NC_FORMAT_64BIT was renamed to NC_FORMAT_CDF2
179 */
180 #define NC_FORMAT_64BIT_OFFSET (2)
181 #define NC_FORMAT_64BIT (NC_FORMAT_64BIT_OFFSET)
182 #define NC_FORMAT_NETCDF4 (3)
183 #define NC_FORMAT_NETCDF4_CLASSIC (4)
184 #define NC_FORMAT_64BIT_DATA (5)
185 
186 /* Alias */
187 #define NC_FORMAT_CDF5 NC_FORMAT_64BIT_DATA
188 
209 #define NC_FORMATX_NC3 (1)
210 #define NC_FORMATX_NC_HDF5 (2)
211 #define NC_FORMATX_NC4 NC_FORMATX_NC_HDF5
212 #define NC_FORMATX_NC_HDF4 (3)
213 #define NC_FORMATX_PNETCDF (4)
214 #define NC_FORMATX_DAP2 (5)
215 #define NC_FORMATX_DAP4 (6)
216 #define NC_FORMATX_UNDEFINED (0)
217 
218  /* To avoid breaking compatibility (such as in the python library),
219  we need to retain the NC_FORMAT_xxx format as well. This may come
220  out eventually, as the NC_FORMATX is more clear that it's an extended
221  format specifier.*/
222 
223 #define NC_FORMAT_NC3 NC_FORMATX_NC3
224 #define NC_FORMAT_NC_HDF5 NC_FORMATX_NC_HDF5
225 #define NC_FORMAT_NC4 NC_FORMATX_NC4
226 #define NC_FORMAT_NC_HDF4 NC_FORMATX_NC_HDF4
227 #define NC_FORMAT_PNETCDF NC_FORMATX_PNETCDF
228 #define NC_FORMAT_DAP2 NC_FORMATX_DAP2
229 #define NC_FORMAT_DAP4 NC_FORMATX_DAP4
230 #define NC_FORMAT_UNDEFINED NC_FORMATX_UNDEFINED
235 #define NC_SIZEHINT_DEFAULT 0
236 
238 #define NC_ALIGN_CHUNK ((size_t)(-1))
239 
241 #define NC_UNLIMITED 0L
242 
244 #define NC_GLOBAL -1
245 
265 #define NC_MAX_DIMS 65536 /* BSK changed from 1024 for ExodusII */
266 #define NC_MAX_ATTRS 8192
267 #define NC_MAX_VARS 524288 /* BSK changed from 8192 for ExodusII */
268 #define NC_MAX_NAME 256
269 #define NC_MAX_VAR_DIMS 1024
273 #define NC_MAX_HDF4_NAME 64
274 
278 #define NC_ENDIAN_NATIVE 0
279 #define NC_ENDIAN_LITTLE 1
280 #define NC_ENDIAN_BIG 2
281 
287 #define NC_CHUNKED 0
288 #define NC_CONTIGUOUS 1
289 
296 #define NC_NOCHECKSUM 0
297 #define NC_FLETCHER32 1
298 
305 #define NC_NOSHUFFLE 0
306 #define NC_SHUFFLE 1
307 
313 #define NC_ISSYSERR(err) ((err) > 0)
314 
315 #define NC_NOERR 0
316 #define NC2_ERR (-1)
322 #define NC_EBADID (-33)
323 #define NC_ENFILE (-34)
324 #define NC_EEXIST (-35)
325 #define NC_EINVAL (-36)
326 #define NC_EPERM (-37)
331 #define NC_ENOTINDEFINE (-38)
332 
340 #define NC_EINDEFINE (-39)
341 
347 #define NC_EINVALCOORDS (-40)
348 
352 #define NC_EMAXDIMS (-41)
353 
354 #define NC_ENAMEINUSE (-42)
355 #define NC_ENOTATT (-43)
356 #define NC_EMAXATTS (-44)
357 #define NC_EBADTYPE (-45)
358 #define NC_EBADDIM (-46)
359 #define NC_EUNLIMPOS (-47)
364 #define NC_EMAXVARS (-48)
365 
369 #define NC_ENOTVAR (-49)
370 #define NC_EGLOBAL (-50)
371 #define NC_ENOTNC (-51)
372 #define NC_ESTS (-52)
373 #define NC_EMAXNAME (-53)
374 #define NC_EUNLIMIT (-54)
375 #define NC_ENORECVARS (-55)
376 #define NC_ECHAR (-56)
385 #define NC_EEDGE (-57)
386 #define NC_ESTRIDE (-58)
387 #define NC_EBADNAME (-59)
388 /* N.B. following must match value in ncx.h */
389 
394 #define NC_ERANGE (-60)
395 #define NC_ENOMEM (-61)
396 #define NC_EVARSIZE (-62)
397 #define NC_EDIMSIZE (-63)
398 #define NC_ETRUNC (-64)
399 #define NC_EAXISTYPE (-65)
401 /* Following errors are added for DAP */
402 #define NC_EDAP (-66)
403 #define NC_ECURL (-67)
404 #define NC_EIO (-68)
405 #define NC_ENODATA (-69)
406 #define NC_EDAPSVC (-70)
407 #define NC_EDAS (-71)
408 #define NC_EDDS (-72)
409 #define NC_EDATADDS (-73)
410 #define NC_EDAPURL (-74)
411 #define NC_EDAPCONSTRAINT (-75)
412 #define NC_ETRANSLATION (-76)
413 #define NC_EACCESS (-77)
414 #define NC_EAUTH (-78)
416 /* Misc. additional errors */
417 #define NC_ENOTFOUND (-90)
418 #define NC_ECANTREMOVE (-91)
420 /* The following was added in support of netcdf-4. Make all netcdf-4
421  error codes < -100 so that errors can be added to netcdf-3 if
422  needed. */
423 #define NC4_FIRST_ERROR (-100)
424 
426 #define NC_EHDFERR (-101)
427 #define NC_ECANTREAD (-102)
428 #define NC_ECANTWRITE (-103)
429 #define NC_ECANTCREATE (-104)
430 #define NC_EFILEMETA (-105)
431 #define NC_EDIMMETA (-106)
432 #define NC_EATTMETA (-107)
433 #define NC_EVARMETA (-108)
434 #define NC_ENOCOMPOUND (-109)
435 #define NC_EATTEXISTS (-110)
436 #define NC_ENOTNC4 (-111)
439 #define NC_ESTRICTNC3 (-112)
440 #define NC_ENOTNC3 (-113)
441 #define NC_ENOPAR (-114)
442 #define NC_EPARINIT (-115)
443 #define NC_EBADGRPID (-116)
444 #define NC_EBADTYPID (-117)
445 #define NC_ETYPDEFINED (-118)
446 #define NC_EBADFIELD (-119)
447 #define NC_EBADCLASS (-120)
448 #define NC_EMAPTYPE (-121)
449 #define NC_ELATEFILL (-122)
450 #define NC_ELATEDEF (-123)
451 #define NC_EDIMSCALE (-124)
452 #define NC_ENOGRP (-125)
453 #define NC_ESTORAGE (-126)
454 #define NC_EBADCHUNK (-127)
455 #define NC_ENOTBUILT (-128)
456 #define NC_EDISKLESS (-129)
457 #define NC_ECANTEXTEND (-130)
458 #define NC_EMPI (-131)
460 #define NC4_LAST_ERROR (-131)
461 
462 /* This is used in netCDF-4 files for dimensions without coordinate
463  * vars. */
464 #define DIM_WITHOUT_VARIABLE "This is a netCDF dimension but not a netCDF variable."
465 
466 /* This is here at the request of the NCO team to support our
467  * mistake of having chunksizes be first ints, then size_t. Doh! */
468 #define NC_HAVE_NEW_CHUNKING_API 1
469 
470 
471 /*Errors for all remote access methods(e.g. DAP and CDMREMOTE)*/
472 #define NC_EURL (NC_EDAPURL) /* Malformed URL */
473 #define NC_ECONSTRAINT (NC_EDAPCONSTRAINT) /* Malformed Constraint*/
474 
475 
476 /*
477  * The Interface
478  */
479 
480 /* Declaration modifiers for DLL support (MSC et al) */
481 #if defined(DLL_NETCDF) /* define when library is a DLL */
482 # if defined(DLL_EXPORT) /* define when building the library */
483 # define MSC_EXTRA __declspec(dllexport)
484 # else
485 # define MSC_EXTRA __declspec(dllimport)
486 # endif
487 #include <io.h>
488 #else
489 #define MSC_EXTRA
490 #endif /* defined(DLL_NETCDF) */
491 
492 # define EXTERNL MSC_EXTRA extern
493 
494 #if defined(DLL_NETCDF) /* define when library is a DLL */
495 EXTERNL int ncerr;
496 EXTERNL int ncopts;
497 #endif
498 
499 EXTERNL const char *
500 nc_inq_libvers(void);
501 
502 EXTERNL const char *
503 nc_strerror(int ncerr);
504 
505 EXTERNL int
506 nc__create(const char *path, int cmode, size_t initialsz,
507  size_t *chunksizehintp, int *ncidp);
508 
509 EXTERNL int
510 nc_create(const char *path, int cmode, int *ncidp);
511 
512 EXTERNL int
513 nc__open(const char *path, int mode,
514  size_t *chunksizehintp, int *ncidp);
515 
516 EXTERNL int
517 nc_open(const char *path, int mode, int *ncidp);
518 
519 /* Learn the path used to open/create the file. */
520 EXTERNL int
521 nc_inq_path(int ncid, size_t *pathlen, char *path);
522 
523 /* Given an ncid and group name (NULL gets root group), return
524  * locid. */
525 EXTERNL int
526 nc_inq_ncid(int ncid, const char *name, int *grp_ncid);
527 
528 /* Given a location id, return the number of groups it contains, and
529  * an array of their locids. */
530 EXTERNL int
531 nc_inq_grps(int ncid, int *numgrps, int *ncids);
532 
533 /* Given locid, find name of group. (Root group is named "/".) */
534 EXTERNL int
535 nc_inq_grpname(int ncid, char *name);
536 
537 /* Given ncid, find full name and len of full name. (Root group is
538  * named "/", with length 1.) */
539 EXTERNL int
540 nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name);
541 
542 /* Given ncid, find len of full name. */
543 EXTERNL int
544 nc_inq_grpname_len(int ncid, size_t *lenp);
545 
546 /* Given an ncid, find the ncid of its parent group. */
547 EXTERNL int
548 nc_inq_grp_parent(int ncid, int *parent_ncid);
549 
550 /* Given a name and parent ncid, find group ncid. */
551 EXTERNL int
552 nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid);
553 
554 /* Given a full name and ncid, find group ncid. */
555 EXTERNL int
556 nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid);
557 
558 /* Get a list of ids for all the variables in a group. */
559 EXTERNL int
560 nc_inq_varids(int ncid, int *nvars, int *varids);
561 
562 /* Find all dimids for a location. This finds all dimensions in a
563  * group, or any of its parents. */
564 EXTERNL int
565 nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents);
566 
567 /* Find all user-defined types for a location. This finds all
568  * user-defined types in a group. */
569 EXTERNL int
570 nc_inq_typeids(int ncid, int *ntypes, int *typeids);
571 
572 /* Are two types equal? */
573 EXTERNL int
574 nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
575  nc_type typeid2, int *equal);
576 
577 /* Create a group. its ncid is returned in the new_ncid pointer. */
578 EXTERNL int
579 nc_def_grp(int parent_ncid, const char *name, int *new_ncid);
580 
581 /* Rename a group */
582 EXTERNL int
583 nc_rename_grp(int grpid, const char *name);
584 
585 /* Here are functions for dealing with compound types. */
586 
587 /* Create a compound type. */
588 EXTERNL int
589 nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp);
590 
591 /* Insert a named field into a compound type. */
592 EXTERNL int
593 nc_insert_compound(int ncid, nc_type xtype, const char *name,
594  size_t offset, nc_type field_typeid);
595 
596 /* Insert a named array into a compound type. */
597 EXTERNL int
598 nc_insert_array_compound(int ncid, nc_type xtype, const char *name,
599  size_t offset, nc_type field_typeid,
600  int ndims, const int *dim_sizes);
601 
602 /* Get the name and size of a type. */
603 EXTERNL int
604 nc_inq_type(int ncid, nc_type xtype, char *name, size_t *size);
605 
606 /* Get the id of a type from the name. */
607 EXTERNL int
608 nc_inq_typeid(int ncid, const char *name, nc_type *typeidp);
609 
610 /* Get the name, size, and number of fields in a compound type. */
611 EXTERNL int
612 nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep,
613  size_t *nfieldsp);
614 
615 /* Get the name of a compound type. */
616 EXTERNL int
617 nc_inq_compound_name(int ncid, nc_type xtype, char *name);
618 
619 /* Get the size of a compound type. */
620 EXTERNL int
621 nc_inq_compound_size(int ncid, nc_type xtype, size_t *sizep);
622 
623 /* Get the number of fields in this compound type. */
624 EXTERNL int
625 nc_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp);
626 
627 /* Given the xtype and the fieldid, get all info about it. */
628 EXTERNL int
629 nc_inq_compound_field(int ncid, nc_type xtype, int fieldid, char *name,
630  size_t *offsetp, nc_type *field_typeidp, int *ndimsp,
631  int *dim_sizesp);
632 
633 /* Given the typeid and the fieldid, get the name. */
634 EXTERNL int
635 nc_inq_compound_fieldname(int ncid, nc_type xtype, int fieldid,
636  char *name);
637 
638 /* Given the xtype and the name, get the fieldid. */
639 EXTERNL int
640 nc_inq_compound_fieldindex(int ncid, nc_type xtype, const char *name,
641  int *fieldidp);
642 
643 /* Given the xtype and fieldid, get the offset. */
644 EXTERNL int
645 nc_inq_compound_fieldoffset(int ncid, nc_type xtype, int fieldid,
646  size_t *offsetp);
647 
648 /* Given the xtype and the fieldid, get the type of that field. */
649 EXTERNL int
650 nc_inq_compound_fieldtype(int ncid, nc_type xtype, int fieldid,
651  nc_type *field_typeidp);
652 
653 /* Given the xtype and the fieldid, get the number of dimensions for
654  * that field (scalars are 0). */
655 EXTERNL int
656 nc_inq_compound_fieldndims(int ncid, nc_type xtype, int fieldid,
657  int *ndimsp);
658 
659 /* Given the xtype and the fieldid, get the sizes of dimensions for
660  * that field. User must have allocated storage for the dim_sizes. */
661 EXTERNL int
662 nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid,
663  int *dim_sizes);
664 
666 typedef struct {
667  size_t len;
668  void *p;
669 } nc_vlen_t;
670 
675 #define NC_COMPOUND_OFFSET(S,M) (offsetof(S,M))
676 
677 /* Create a variable length type. */
678 EXTERNL int
679 nc_def_vlen(int ncid, const char *name, nc_type base_typeid, nc_type *xtypep);
680 
681 /* Find out about a vlen. */
682 EXTERNL int
683 nc_inq_vlen(int ncid, nc_type xtype, char *name, size_t *datum_sizep,
684  nc_type *base_nc_typep);
685 
686 /* When you read VLEN type the library will actually allocate the
687  * storage space for the data. This storage space must be freed, so
688  * pass the pointer back to this function, when you're done with the
689  * data, and it will free the vlen memory. */
690 EXTERNL int
692 
693 EXTERNL int
694 nc_free_vlens(size_t len, nc_vlen_t vlens[]);
695 
696 /* Put or get one element in a vlen array. */
697 EXTERNL int
698 nc_put_vlen_element(int ncid, int typeid1, void *vlen_element,
699  size_t len, const void *data);
700 
701 EXTERNL int
702 nc_get_vlen_element(int ncid, int typeid1, const void *vlen_element,
703  size_t *len, void *data);
704 
705 /* When you read the string type the library will allocate the storage
706  * space for the data. This storage space must be freed, so pass the
707  * pointer back to this function, when you're done with the data, and
708  * it will free the string memory. */
709 EXTERNL int
710 nc_free_string(size_t len, char **data);
711 
712 /* Find out about a user defined type. */
713 EXTERNL int
714 nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size,
715  nc_type *base_nc_typep, size_t *nfieldsp, int *classp);
716 
717 /* Write an attribute of any type. */
718 EXTERNL int
719 nc_put_att(int ncid, int varid, const char *name, nc_type xtype,
720  size_t len, const void *op);
721 
722 /* Read an attribute of any type. */
723 EXTERNL int
724 nc_get_att(int ncid, int varid, const char *name, void *ip);
725 
726 /* Enum type. */
727 
728 /* Create an enum type. Provide a base type and a name. At the moment
729  * only ints are accepted as base types. */
730 EXTERNL int
731 nc_def_enum(int ncid, nc_type base_typeid, const char *name,
732  nc_type *typeidp);
733 
734 /* Insert a named value into an enum type. The value must fit within
735  * the size of the enum type, the name size must be <= NC_MAX_NAME. */
736 EXTERNL int
737 nc_insert_enum(int ncid, nc_type xtype, const char *name,
738  const void *value);
739 
740 /* Get information about an enum type: its name, base type and the
741  * number of members defined. */
742 EXTERNL int
743 nc_inq_enum(int ncid, nc_type xtype, char *name, nc_type *base_nc_typep,
744  size_t *base_sizep, size_t *num_membersp);
745 
746 /* Get information about an enum member: a name and value. Name size
747  * will be <= NC_MAX_NAME. */
748 EXTERNL int
749 nc_inq_enum_member(int ncid, nc_type xtype, int idx, char *name,
750  void *value);
751 
752 
753 /* Get enum name from enum value. Name size will be <= NC_MAX_NAME. */
754 EXTERNL int
755 nc_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier);
756 
757 /* Opaque type. */
758 
759 /* Create an opaque type. Provide a size and a name. */
760 EXTERNL int
761 nc_def_opaque(int ncid, size_t size, const char *name, nc_type *xtypep);
762 
763 /* Get information about an opaque type. */
764 EXTERNL int
765 nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep);
766 
767 /* Write entire var of any type. */
768 EXTERNL int
769 nc_put_var(int ncid, int varid, const void *op);
770 
771 /* Read entire var of any type. */
772 EXTERNL int
773 nc_get_var(int ncid, int varid, void *ip);
774 
775 /* Write one value. */
776 EXTERNL int
777 nc_put_var1(int ncid, int varid, const size_t *indexp,
778  const void *op);
779 
780 /* Read one value. */
781 EXTERNL int
782 nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip);
783 
784 /* Write an array of values. */
785 EXTERNL int
786 nc_put_vara(int ncid, int varid, const size_t *startp,
787  const size_t *countp, const void *op);
788 
789 /* Read an array of values. */
790 EXTERNL int
791 nc_get_vara(int ncid, int varid, const size_t *startp,
792  const size_t *countp, void *ip);
793 
794 /* Write slices of an array of values. */
795 EXTERNL int
796 nc_put_vars(int ncid, int varid, const size_t *startp,
797  const size_t *countp, const ptrdiff_t *stridep,
798  const void *op);
799 
800 /* Read slices of an array of values. */
801 EXTERNL int
802 nc_get_vars(int ncid, int varid, const size_t *startp,
803  const size_t *countp, const ptrdiff_t *stridep,
804  void *ip);
805 
806 /* Write mapped slices of an array of values. */
807 EXTERNL int
808 nc_put_varm(int ncid, int varid, const size_t *startp,
809  const size_t *countp, const ptrdiff_t *stridep,
810  const ptrdiff_t *imapp, const void *op);
811 
812 /* Read mapped slices of an array of values. */
813 EXTERNL int
814 nc_get_varm(int ncid, int varid, const size_t *startp,
815  const size_t *countp, const ptrdiff_t *stridep,
816  const ptrdiff_t *imapp, void *ip);
817 
818 /* Extra netcdf-4 stuff. */
819 
820 /* Set compression settings for a variable. Lower is faster, higher is
821  * better. Must be called after nc_def_var and before nc_enddef. */
822 EXTERNL int
823 nc_def_var_deflate(int ncid, int varid, int shuffle, int deflate,
824  int deflate_level);
825 
826 /* Find out compression settings of a var. */
827 EXTERNL int
828 nc_inq_var_deflate(int ncid, int varid, int *shufflep,
829  int *deflatep, int *deflate_levelp);
830 
831 /* Find out szip settings of a var. */
832 EXTERNL int
833 nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp);
834 
835 /* Set fletcher32 checksum for a var. This must be done after nc_def_var
836  and before nc_enddef. */
837 EXTERNL int
838 nc_def_var_fletcher32(int ncid, int varid, int fletcher32);
839 
840 /* Inquire about fletcher32 checksum for a var. */
841 EXTERNL int
842 nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p);
843 
844 /* Define chunking for a variable. This must be done after nc_def_var
845  and before nc_enddef. */
846 EXTERNL int
847 nc_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp);
848 
849 /* Inq chunking stuff for a var. */
850 EXTERNL int
851 nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp);
852 
853 /* Define fill value behavior for a variable. This must be done after
854  nc_def_var and before nc_enddef. */
855 EXTERNL int
856 nc_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value);
857 
858 /* Inq fill value setting for a var. */
859 EXTERNL int
860 nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep);
861 
862 /* Define the endianness of a variable. */
863 EXTERNL int
864 nc_def_var_endian(int ncid, int varid, int endian);
865 
866 /* Learn about the endianness of a variable. */
867 EXTERNL int
868 nc_inq_var_endian(int ncid, int varid, int *endianp);
869 
870 /* Set the fill mode (classic or 64-bit offset files only). */
871 EXTERNL int
872 nc_set_fill(int ncid, int fillmode, int *old_modep);
873 
874 /* Set the default nc_create format to NC_FORMAT_CLASSIC,
875  * NC_FORMAT_64BIT, NC_FORMAT_NETCDF4, etc */
876 EXTERNL int
877 nc_set_default_format(int format, int *old_formatp);
878 
879 /* Set the cache size, nelems, and preemption policy. */
880 EXTERNL int
881 nc_set_chunk_cache(size_t size, size_t nelems, float preemption);
882 
883 /* Get the cache size, nelems, and preemption policy. */
884 EXTERNL int
885 nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp);
886 
887 /* Set the per-variable cache size, nelems, and preemption policy. */
888 EXTERNL int
889 nc_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
890  float preemption);
891 
892 /* Get the per-variable cache size, nelems, and preemption policy. */
893 EXTERNL int
894 nc_get_var_chunk_cache(int ncid, int varid, size_t *sizep, size_t *nelemsp,
895  float *preemptionp);
896 
897 EXTERNL int
898 nc_redef(int ncid);
899 
900 /* Is this ever used? Convert to parameter form */
901 EXTERNL int
902 nc__enddef(int ncid, size_t h_minfree, size_t v_align,
903  size_t v_minfree, size_t r_align);
904 
905 EXTERNL int
906 nc_enddef(int ncid);
907 
908 EXTERNL int
909 nc_sync(int ncid);
910 
911 EXTERNL int
912 nc_abort(int ncid);
913 
914 EXTERNL int
915 nc_close(int ncid);
916 
917 EXTERNL int
918 nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp);
919 
920 EXTERNL int
921 nc_inq_ndims(int ncid, int *ndimsp);
922 
923 EXTERNL int
924 nc_inq_nvars(int ncid, int *nvarsp);
925 
926 EXTERNL int
927 nc_inq_natts(int ncid, int *nattsp);
928 
929 EXTERNL int
930 nc_inq_unlimdim(int ncid, int *unlimdimidp);
931 
932 /* The next function is for NetCDF-4 only */
933 EXTERNL int
934 nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp);
935 
936 /* Added in 3.6.1 to return format of netCDF file. */
937 EXTERNL int
938 nc_inq_format(int ncid, int *formatp);
939 
940 /* Added in 4.3.1 to return additional format info */
941 EXTERNL int
942 nc_inq_format_extended(int ncid, int *formatp, int* modep);
943 
944 /* Begin _dim */
945 
946 EXTERNL int
947 nc_def_dim(int ncid, const char *name, size_t len, int *idp);
948 
949 EXTERNL int
950 nc_inq_dimid(int ncid, const char *name, int *idp);
951 
952 EXTERNL int
953 nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp);
954 
955 EXTERNL int
956 nc_inq_dimname(int ncid, int dimid, char *name);
957 
958 EXTERNL int
959 nc_inq_dimlen(int ncid, int dimid, size_t *lenp);
960 
961 EXTERNL int
962 nc_rename_dim(int ncid, int dimid, const char *name);
963 
964 /* End _dim */
965 /* Begin _att */
966 
967 EXTERNL int
968 nc_inq_att(int ncid, int varid, const char *name,
969  nc_type *xtypep, size_t *lenp);
970 
971 EXTERNL int
972 nc_inq_attid(int ncid, int varid, const char *name, int *idp);
973 
974 EXTERNL int
975 nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep);
976 
977 EXTERNL int
978 nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp);
979 
980 EXTERNL int
981 nc_inq_attname(int ncid, int varid, int attnum, char *name);
982 
983 EXTERNL int
984 nc_copy_att(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out);
985 
986 EXTERNL int
987 nc_rename_att(int ncid, int varid, const char *name, const char *newname);
988 
989 EXTERNL int
990 nc_del_att(int ncid, int varid, const char *name);
991 
992 /* End _att */
993 /* Begin {put,get}_att */
994 EXTERNL int
995 nc_put_att_text(int ncid, int varid, const char *name,
996  size_t len, const char *op);
997 
998 EXTERNL int
999 nc_get_att_text(int ncid, int varid, const char *name, char *ip);
1000 
1001 EXTERNL int
1002 nc_put_att_string(int ncid, int varid, const char *name,
1003  size_t len, const char **op);
1004 
1005 EXTERNL int
1006 nc_get_att_string(int ncid, int varid, const char *name, char **ip);
1007 
1008 EXTERNL int
1009 nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype,
1010  size_t len, const unsigned char *op);
1011 
1012 EXTERNL int
1013 nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *ip);
1014 
1015 EXTERNL int
1016 nc_put_att_schar(int ncid, int varid, const char *name, nc_type xtype,
1017  size_t len, const signed char *op);
1018 
1019 EXTERNL int
1020 nc_get_att_schar(int ncid, int varid, const char *name, signed char *ip);
1021 
1022 EXTERNL int
1023 nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype,
1024  size_t len, const short *op);
1025 
1026 EXTERNL int
1027 nc_get_att_short(int ncid, int varid, const char *name, short *ip);
1028 
1029 EXTERNL int
1030 nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype,
1031  size_t len, const int *op);
1032 
1033 EXTERNL int
1034 nc_get_att_int(int ncid, int varid, const char *name, int *ip);
1035 
1036 EXTERNL int
1037 nc_put_att_long(int ncid, int varid, const char *name, nc_type xtype,
1038  size_t len, const long *op);
1039 
1040 EXTERNL int
1041 nc_get_att_long(int ncid, int varid, const char *name, long *ip);
1042 
1043 EXTERNL int
1044 nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype,
1045  size_t len, const float *op);
1046 
1047 EXTERNL int
1048 nc_get_att_float(int ncid, int varid, const char *name, float *ip);
1049 
1050 EXTERNL int
1051 nc_put_att_double(int ncid, int varid, const char *name, nc_type xtype,
1052  size_t len, const double *op);
1053 
1054 EXTERNL int
1055 nc_get_att_double(int ncid, int varid, const char *name, double *ip);
1056 
1057 EXTERNL int
1058 nc_put_att_ushort(int ncid, int varid, const char *name, nc_type xtype,
1059  size_t len, const unsigned short *op);
1060 
1061 EXTERNL int
1062 nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *ip);
1063 
1064 EXTERNL int
1065 nc_put_att_uint(int ncid, int varid, const char *name, nc_type xtype,
1066  size_t len, const unsigned int *op);
1067 
1068 EXTERNL int
1069 nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *ip);
1070 
1071 EXTERNL int
1072 nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype,
1073  size_t len, const long long *op);
1074 
1075 EXTERNL int
1076 nc_get_att_longlong(int ncid, int varid, const char *name, long long *ip);
1077 
1078 EXTERNL int
1079 nc_put_att_ulonglong(int ncid, int varid, const char *name, nc_type xtype,
1080  size_t len, const unsigned long long *op);
1081 
1082 EXTERNL int
1083 nc_get_att_ulonglong(int ncid, int varid, const char *name,
1084  unsigned long long *ip);
1085 
1086 
1087 /* End {put,get}_att */
1088 /* Begin _var */
1089 
1090 EXTERNL int
1091 nc_def_var(int ncid, const char *name, nc_type xtype, int ndims,
1092  const int *dimidsp, int *varidp);
1093 
1094 EXTERNL int
1095 nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep,
1096  int *ndimsp, int *dimidsp, int *nattsp);
1097 
1098 EXTERNL int
1099 nc_inq_varid(int ncid, const char *name, int *varidp);
1100 
1101 EXTERNL int
1102 nc_inq_varname(int ncid, int varid, char *name);
1103 
1104 EXTERNL int
1105 nc_inq_vartype(int ncid, int varid, nc_type *xtypep);
1106 
1107 EXTERNL int
1108 nc_inq_varndims(int ncid, int varid, int *ndimsp);
1109 
1110 EXTERNL int
1111 nc_inq_vardimid(int ncid, int varid, int *dimidsp);
1112 
1113 EXTERNL int
1114 nc_inq_varnatts(int ncid, int varid, int *nattsp);
1115 
1116 EXTERNL int
1117 nc_rename_var(int ncid, int varid, const char *name);
1118 
1119 EXTERNL int
1120 nc_copy_var(int ncid_in, int varid, int ncid_out);
1121 
1122 #ifndef ncvarcpy
1123 /* support the old name for now */
1124 #define ncvarcpy(ncid_in, varid, ncid_out) ncvarcopy((ncid_in), (varid), (ncid_out))
1125 #endif
1126 
1127 /* End _var */
1128 /* Begin {put,get}_var1 */
1129 
1130 EXTERNL int
1131 nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op);
1132 
1133 EXTERNL int
1134 nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip);
1135 
1136 EXTERNL int
1137 nc_put_var1_uchar(int ncid, int varid, const size_t *indexp,
1138  const unsigned char *op);
1139 
1140 EXTERNL int
1141 nc_get_var1_uchar(int ncid, int varid, const size_t *indexp,
1142  unsigned char *ip);
1143 
1144 EXTERNL int
1145 nc_put_var1_schar(int ncid, int varid, const size_t *indexp,
1146  const signed char *op);
1147 
1148 EXTERNL int
1149 nc_get_var1_schar(int ncid, int varid, const size_t *indexp,
1150  signed char *ip);
1151 
1152 EXTERNL int
1153 nc_put_var1_short(int ncid, int varid, const size_t *indexp,
1154  const short *op);
1155 
1156 EXTERNL int
1157 nc_get_var1_short(int ncid, int varid, const size_t *indexp,
1158  short *ip);
1159 
1160 EXTERNL int
1161 nc_put_var1_int(int ncid, int varid, const size_t *indexp, const int *op);
1162 
1163 EXTERNL int
1164 nc_get_var1_int(int ncid, int varid, const size_t *indexp, int *ip);
1165 
1166 EXTERNL int
1167 nc_put_var1_long(int ncid, int varid, const size_t *indexp, const long *op);
1168 
1169 EXTERNL int
1170 nc_get_var1_long(int ncid, int varid, const size_t *indexp, long *ip);
1171 
1172 EXTERNL int
1173 nc_put_var1_float(int ncid, int varid, const size_t *indexp, const float *op);
1174 
1175 EXTERNL int
1176 nc_get_var1_float(int ncid, int varid, const size_t *indexp, float *ip);
1177 
1178 EXTERNL int
1179 nc_put_var1_double(int ncid, int varid, const size_t *indexp, const double *op);
1180 
1181 EXTERNL int
1182 nc_get_var1_double(int ncid, int varid, const size_t *indexp, double *ip);
1183 
1184 EXTERNL int
1185 nc_put_var1_ushort(int ncid, int varid, const size_t *indexp,
1186  const unsigned short *op);
1187 
1188 EXTERNL int
1189 nc_get_var1_ushort(int ncid, int varid, const size_t *indexp,
1190  unsigned short *ip);
1191 
1192 EXTERNL int
1193 nc_put_var1_uint(int ncid, int varid, const size_t *indexp,
1194  const unsigned int *op);
1195 
1196 EXTERNL int
1197 nc_get_var1_uint(int ncid, int varid, const size_t *indexp,
1198  unsigned int *ip);
1199 
1200 EXTERNL int
1201 nc_put_var1_longlong(int ncid, int varid, const size_t *indexp,
1202  const long long *op);
1203 
1204 EXTERNL int
1205 nc_get_var1_longlong(int ncid, int varid, const size_t *indexp,
1206  long long *ip);
1207 
1208 EXTERNL int
1209 nc_put_var1_ulonglong(int ncid, int varid, const size_t *indexp,
1210  const unsigned long long *op);
1211 
1212 EXTERNL int
1213 nc_get_var1_ulonglong(int ncid, int varid, const size_t *indexp,
1214  unsigned long long *ip);
1215 
1216 EXTERNL int
1217 nc_put_var1_string(int ncid, int varid, const size_t *indexp,
1218  const char **op);
1219 
1220 EXTERNL int
1221 nc_get_var1_string(int ncid, int varid, const size_t *indexp,
1222  char **ip);
1223 
1224 /* End {put,get}_var1 */
1225 /* Begin {put,get}_vara */
1226 
1227 EXTERNL int
1228 nc_put_vara_text(int ncid, int varid, const size_t *startp,
1229  const size_t *countp, const char *op);
1230 
1231 EXTERNL int
1232 nc_get_vara_text(int ncid, int varid, const size_t *startp,
1233  const size_t *countp, char *ip);
1234 
1235 EXTERNL int
1236 nc_put_vara_uchar(int ncid, int varid, const size_t *startp,
1237  const size_t *countp, const unsigned char *op);
1238 
1239 EXTERNL int
1240 nc_get_vara_uchar(int ncid, int varid, const size_t *startp,
1241  const size_t *countp, unsigned char *ip);
1242 
1243 EXTERNL int
1244 nc_put_vara_schar(int ncid, int varid, const size_t *startp,
1245  const size_t *countp, const signed char *op);
1246 
1247 EXTERNL int
1248 nc_get_vara_schar(int ncid, int varid, const size_t *startp,
1249  const size_t *countp, signed char *ip);
1250 
1251 EXTERNL int
1252 nc_put_vara_short(int ncid, int varid, const size_t *startp,
1253  const size_t *countp, const short *op);
1254 
1255 EXTERNL int
1256 nc_get_vara_short(int ncid, int varid, const size_t *startp,
1257  const size_t *countp, short *ip);
1258 
1259 EXTERNL int
1260 nc_put_vara_int(int ncid, int varid, const size_t *startp,
1261  const size_t *countp, const int *op);
1262 
1263 EXTERNL int
1264 nc_get_vara_int(int ncid, int varid, const size_t *startp,
1265  const size_t *countp, int *ip);
1266 
1267 EXTERNL int
1268 nc_put_vara_long(int ncid, int varid, const size_t *startp,
1269  const size_t *countp, const long *op);
1270 
1271 EXTERNL int
1272 nc_get_vara_long(int ncid, int varid,
1273  const size_t *startp, const size_t *countp, long *ip);
1274 
1275 EXTERNL int
1276 nc_put_vara_float(int ncid, int varid,
1277  const size_t *startp, const size_t *countp, const float *op);
1278 
1279 EXTERNL int
1280 nc_get_vara_float(int ncid, int varid,
1281  const size_t *startp, const size_t *countp, float *ip);
1282 
1283 EXTERNL int
1284 nc_put_vara_double(int ncid, int varid, const size_t *startp,
1285  const size_t *countp, const double *op);
1286 
1287 EXTERNL int
1288 nc_get_vara_double(int ncid, int varid, const size_t *startp,
1289  const size_t *countp, double *ip);
1290 
1291 EXTERNL int
1292 nc_put_vara_ushort(int ncid, int varid, const size_t *startp,
1293  const size_t *countp, const unsigned short *op);
1294 
1295 EXTERNL int
1296 nc_get_vara_ushort(int ncid, int varid, const size_t *startp,
1297  const size_t *countp, unsigned short *ip);
1298 
1299 EXTERNL int
1300 nc_put_vara_uint(int ncid, int varid, const size_t *startp,
1301  const size_t *countp, const unsigned int *op);
1302 
1303 EXTERNL int
1304 nc_get_vara_uint(int ncid, int varid, const size_t *startp,
1305  const size_t *countp, unsigned int *ip);
1306 
1307 EXTERNL int
1308 nc_put_vara_longlong(int ncid, int varid, const size_t *startp,
1309  const size_t *countp, const long long *op);
1310 
1311 EXTERNL int
1312 nc_get_vara_longlong(int ncid, int varid, const size_t *startp,
1313  const size_t *countp, long long *ip);
1314 
1315 EXTERNL int
1316 nc_put_vara_ulonglong(int ncid, int varid, const size_t *startp,
1317  const size_t *countp, const unsigned long long *op);
1318 
1319 EXTERNL int
1320 nc_get_vara_ulonglong(int ncid, int varid, const size_t *startp,
1321  const size_t *countp, unsigned long long *ip);
1322 
1323 EXTERNL int
1324 nc_put_vara_string(int ncid, int varid, const size_t *startp,
1325  const size_t *countp, const char **op);
1326 
1327 EXTERNL int
1328 nc_get_vara_string(int ncid, int varid, const size_t *startp,
1329  const size_t *countp, char **ip);
1330 
1331 /* End {put,get}_vara */
1332 /* Begin {put,get}_vars */
1333 
1334 EXTERNL int
1335 nc_put_vars_text(int ncid, int varid,
1336  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1337  const char *op);
1338 
1339 EXTERNL int
1340 nc_get_vars_text(int ncid, int varid,
1341  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1342  char *ip);
1343 
1344 EXTERNL int
1345 nc_put_vars_uchar(int ncid, int varid,
1346  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1347  const unsigned char *op);
1348 
1349 EXTERNL int
1350 nc_get_vars_uchar(int ncid, int varid,
1351  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1352  unsigned char *ip);
1353 
1354 EXTERNL int
1355 nc_put_vars_schar(int ncid, int varid,
1356  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1357  const signed char *op);
1358 
1359 EXTERNL int
1360 nc_get_vars_schar(int ncid, int varid,
1361  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1362  signed char *ip);
1363 
1364 EXTERNL int
1365 nc_put_vars_short(int ncid, int varid,
1366  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1367  const short *op);
1368 
1369 EXTERNL int
1370 nc_get_vars_short(int ncid, int varid, const size_t *startp,
1371  const size_t *countp, const ptrdiff_t *stridep,
1372  short *ip);
1373 
1374 EXTERNL int
1375 nc_put_vars_int(int ncid, int varid,
1376  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1377  const int *op);
1378 
1379 EXTERNL int
1380 nc_get_vars_int(int ncid, int varid,
1381  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1382  int *ip);
1383 
1384 EXTERNL int
1385 nc_put_vars_long(int ncid, int varid,
1386  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1387  const long *op);
1388 
1389 EXTERNL int
1390 nc_get_vars_long(int ncid, int varid,
1391  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1392  long *ip);
1393 
1394 EXTERNL int
1395 nc_put_vars_float(int ncid, int varid,
1396  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1397  const float *op);
1398 
1399 EXTERNL int
1400 nc_get_vars_float(int ncid, int varid,
1401  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1402  float *ip);
1403 
1404 EXTERNL int
1405 nc_put_vars_double(int ncid, int varid,
1406  const size_t *startp, const size_t *countp, const ptrdiff_t *stridep,
1407  const double *op);
1408 
1409 EXTERNL int
1410 nc_get_vars_double(int ncid, int varid, const size_t *startp,
1411  const size_t *countp, const ptrdiff_t *stridep,
1412  double *ip);
1413 
1414 EXTERNL int
1415 nc_put_vars_ushort(int ncid, int varid, const size_t *startp,
1416  const size_t *countp, const ptrdiff_t *stridep,
1417  const unsigned short *op);
1418 
1419 EXTERNL int
1420 nc_get_vars_ushort(int ncid, int varid, const size_t *startp,
1421  const size_t *countp, const ptrdiff_t *stridep,
1422  unsigned short *ip);
1423 
1424 EXTERNL int
1425 nc_put_vars_uint(int ncid, int varid, const size_t *startp,
1426  const size_t *countp, const ptrdiff_t *stridep,
1427  const unsigned int *op);
1428 
1429 EXTERNL int
1430 nc_get_vars_uint(int ncid, int varid, const size_t *startp,
1431  const size_t *countp, const ptrdiff_t *stridep,
1432  unsigned int *ip);
1433 
1434 EXTERNL int
1435 nc_put_vars_longlong(int ncid, int varid, const size_t *startp,
1436  const size_t *countp, const ptrdiff_t *stridep,
1437  const long long *op);
1438 
1439 EXTERNL int
1440 nc_get_vars_longlong(int ncid, int varid, const size_t *startp,
1441  const size_t *countp, const ptrdiff_t *stridep,
1442  long long *ip);
1443 
1444 EXTERNL int
1445 nc_put_vars_ulonglong(int ncid, int varid, const size_t *startp,
1446  const size_t *countp, const ptrdiff_t *stridep,
1447  const unsigned long long *op);
1448 
1449 EXTERNL int
1450 nc_get_vars_ulonglong(int ncid, int varid, const size_t *startp,
1451  const size_t *countp, const ptrdiff_t *stridep,
1452  unsigned long long *ip);
1453 
1454 EXTERNL int
1455 nc_put_vars_string(int ncid, int varid, const size_t *startp,
1456  const size_t *countp, const ptrdiff_t *stridep,
1457  const char **op);
1458 
1459 EXTERNL int
1460 nc_get_vars_string(int ncid, int varid, const size_t *startp,
1461  const size_t *countp, const ptrdiff_t *stridep,
1462  char **ip);
1463 
1464 /* End {put,get}_vars */
1465 /* Begin {put,get}_varm */
1466 
1467 EXTERNL int
1468 nc_put_varm_text(int ncid, int varid, const size_t *startp,
1469  const size_t *countp, const ptrdiff_t *stridep,
1470  const ptrdiff_t *imapp, const char *op);
1471 
1472 EXTERNL int
1473 nc_get_varm_text(int ncid, int varid, const size_t *startp,
1474  const size_t *countp, const ptrdiff_t *stridep,
1475  const ptrdiff_t *imapp, char *ip);
1476 
1477 EXTERNL int
1478 nc_put_varm_uchar(int ncid, int varid, const size_t *startp,
1479  const size_t *countp, const ptrdiff_t *stridep,
1480  const ptrdiff_t *imapp, const unsigned char *op);
1481 
1482 EXTERNL int
1483 nc_get_varm_uchar(int ncid, int varid, const size_t *startp,
1484  const size_t *countp, const ptrdiff_t *stridep,
1485  const ptrdiff_t *imapp, unsigned char *ip);
1486 
1487 EXTERNL int
1488 nc_put_varm_schar(int ncid, int varid, const size_t *startp,
1489  const size_t *countp, const ptrdiff_t *stridep,
1490  const ptrdiff_t *imapp, const signed char *op);
1491 
1492 EXTERNL int
1493 nc_get_varm_schar(int ncid, int varid, const size_t *startp,
1494  const size_t *countp, const ptrdiff_t *stridep,
1495  const ptrdiff_t *imapp, signed char *ip);
1496 
1497 EXTERNL int
1498 nc_put_varm_short(int ncid, int varid, const size_t *startp,
1499  const size_t *countp, const ptrdiff_t *stridep,
1500  const ptrdiff_t *imapp, const short *op);
1501 
1502 EXTERNL int
1503 nc_get_varm_short(int ncid, int varid, const size_t *startp,
1504  const size_t *countp, const ptrdiff_t *stridep,
1505  const ptrdiff_t *imapp, short *ip);
1506 
1507 EXTERNL int
1508 nc_put_varm_int(int ncid, int varid, const size_t *startp,
1509  const size_t *countp, const ptrdiff_t *stridep,
1510  const ptrdiff_t *imapp, const int *op);
1511 
1512 EXTERNL int
1513 nc_get_varm_int(int ncid, int varid, const size_t *startp,
1514  const size_t *countp, const ptrdiff_t *stridep,
1515  const ptrdiff_t *imapp, int *ip);
1516 
1517 EXTERNL int
1518 nc_put_varm_long(int ncid, int varid, const size_t *startp,
1519  const size_t *countp, const ptrdiff_t *stridep,
1520  const ptrdiff_t *imapp, const long *op);
1521 
1522 EXTERNL int
1523 nc_get_varm_long(int ncid, int varid, const size_t *startp,
1524  const size_t *countp, const ptrdiff_t *stridep,
1525  const ptrdiff_t *imapp, long *ip);
1526 
1527 EXTERNL int
1528 nc_put_varm_float(int ncid, int varid,const size_t *startp,
1529  const size_t *countp, const ptrdiff_t *stridep,
1530  const ptrdiff_t *imapp, const float *op);
1531 
1532 EXTERNL int
1533 nc_get_varm_float(int ncid, int varid,const size_t *startp,
1534  const size_t *countp, const ptrdiff_t *stridep,
1535  const ptrdiff_t *imapp, float *ip);
1536 
1537 EXTERNL int
1538 nc_put_varm_double(int ncid, int varid, const size_t *startp,
1539  const size_t *countp, const ptrdiff_t *stridep,
1540  const ptrdiff_t *imapp, const double *op);
1541 
1542 EXTERNL int
1543 nc_get_varm_double(int ncid, int varid, const size_t *startp,
1544  const size_t *countp, const ptrdiff_t *stridep,
1545  const ptrdiff_t * imapp, double *ip);
1546 
1547 EXTERNL int
1548 nc_put_varm_ushort(int ncid, int varid, const size_t *startp,
1549  const size_t *countp, const ptrdiff_t *stridep,
1550  const ptrdiff_t * imapp, const unsigned short *op);
1551 
1552 EXTERNL int
1553 nc_get_varm_ushort(int ncid, int varid, const size_t *startp,
1554  const size_t *countp, const ptrdiff_t *stridep,
1555  const ptrdiff_t * imapp, unsigned short *ip);
1556 
1557 EXTERNL int
1558 nc_put_varm_uint(int ncid, int varid, const size_t *startp,
1559  const size_t *countp, const ptrdiff_t *stridep,
1560  const ptrdiff_t * imapp, const unsigned int *op);
1561 
1562 EXTERNL int
1563 nc_get_varm_uint(int ncid, int varid, const size_t *startp,
1564  const size_t *countp, const ptrdiff_t *stridep,
1565  const ptrdiff_t * imapp, unsigned int *ip);
1566 
1567 EXTERNL int
1568 nc_put_varm_longlong(int ncid, int varid, const size_t *startp,
1569  const size_t *countp, const ptrdiff_t *stridep,
1570  const ptrdiff_t * imapp, const long long *op);
1571 
1572 EXTERNL int
1573 nc_get_varm_longlong(int ncid, int varid, const size_t *startp,
1574  const size_t *countp, const ptrdiff_t *stridep,
1575  const ptrdiff_t * imapp, long long *ip);
1576 
1577 EXTERNL int
1578 nc_put_varm_ulonglong(int ncid, int varid, const size_t *startp,
1579  const size_t *countp, const ptrdiff_t *stridep,
1580  const ptrdiff_t * imapp, const unsigned long long *op);
1581 
1582 EXTERNL int
1583 nc_get_varm_ulonglong(int ncid, int varid, const size_t *startp,
1584  const size_t *countp, const ptrdiff_t *stridep,
1585  const ptrdiff_t * imapp, unsigned long long *ip);
1586 
1587 EXTERNL int
1588 nc_put_varm_string(int ncid, int varid, const size_t *startp,
1589  const size_t *countp, const ptrdiff_t *stridep,
1590  const ptrdiff_t * imapp, const char **op);
1591 
1592 EXTERNL int
1593 nc_get_varm_string(int ncid, int varid, const size_t *startp,
1594  const size_t *countp, const ptrdiff_t *stridep,
1595  const ptrdiff_t * imapp, char **ip);
1596 
1597 /* End {put,get}_varm */
1598 /* Begin {put,get}_var */
1599 
1600 EXTERNL int
1601 nc_put_var_text(int ncid, int varid, const char *op);
1602 
1603 EXTERNL int
1604 nc_get_var_text(int ncid, int varid, char *ip);
1605 
1606 EXTERNL int
1607 nc_put_var_uchar(int ncid, int varid, const unsigned char *op);
1608 
1609 EXTERNL int
1610 nc_get_var_uchar(int ncid, int varid, unsigned char *ip);
1611 
1612 EXTERNL int
1613 nc_put_var_schar(int ncid, int varid, const signed char *op);
1614 
1615 EXTERNL int
1616 nc_get_var_schar(int ncid, int varid, signed char *ip);
1617 
1618 EXTERNL int
1619 nc_put_var_short(int ncid, int varid, const short *op);
1620 
1621 EXTERNL int
1622 nc_get_var_short(int ncid, int varid, short *ip);
1623 
1624 EXTERNL int
1625 nc_put_var_int(int ncid, int varid, const int *op);
1626 
1627 EXTERNL int
1628 nc_get_var_int(int ncid, int varid, int *ip);
1629 
1630 EXTERNL int
1631 nc_put_var_long(int ncid, int varid, const long *op);
1632 
1633 EXTERNL int
1634 nc_get_var_long(int ncid, int varid, long *ip);
1635 
1636 EXTERNL int
1637 nc_put_var_float(int ncid, int varid, const float *op);
1638 
1639 EXTERNL int
1640 nc_get_var_float(int ncid, int varid, float *ip);
1641 
1642 EXTERNL int
1643 nc_put_var_double(int ncid, int varid, const double *op);
1644 
1645 EXTERNL int
1646 nc_get_var_double(int ncid, int varid, double *ip);
1647 
1648 EXTERNL int
1649 nc_put_var_ushort(int ncid, int varid, const unsigned short *op);
1650 
1651 EXTERNL int
1652 nc_get_var_ushort(int ncid, int varid, unsigned short *ip);
1653 
1654 EXTERNL int
1655 nc_put_var_uint(int ncid, int varid, const unsigned int *op);
1656 
1657 EXTERNL int
1658 nc_get_var_uint(int ncid, int varid, unsigned int *ip);
1659 
1660 EXTERNL int
1661 nc_put_var_longlong(int ncid, int varid, const long long *op);
1662 
1663 EXTERNL int
1664 nc_get_var_longlong(int ncid, int varid, long long *ip);
1665 
1666 EXTERNL int
1667 nc_put_var_ulonglong(int ncid, int varid, const unsigned long long *op);
1668 
1669 EXTERNL int
1670 nc_get_var_ulonglong(int ncid, int varid, unsigned long long *ip);
1671 
1672 EXTERNL int
1673 nc_put_var_string(int ncid, int varid, const char **op);
1674 
1675 EXTERNL int
1676 nc_get_var_string(int ncid, int varid, char **ip);
1677 
1678 /* Begin Deprecated, same as functions with "_ubyte" replaced by "_uchar" */
1679 EXTERNL int
1680 nc_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype,
1681  size_t len, const unsigned char *op);
1682 EXTERNL int
1683 nc_get_att_ubyte(int ncid, int varid, const char *name,
1684  unsigned char *ip);
1685 EXTERNL int
1686 nc_put_var1_ubyte(int ncid, int varid, const size_t *indexp,
1687  const unsigned char *op);
1688 EXTERNL int
1689 nc_get_var1_ubyte(int ncid, int varid, const size_t *indexp,
1690  unsigned char *ip);
1691 EXTERNL int
1692 nc_put_vara_ubyte(int ncid, int varid, const size_t *startp,
1693  const size_t *countp, const unsigned char *op);
1694 EXTERNL int
1695 nc_get_vara_ubyte(int ncid, int varid, const size_t *startp,
1696  const size_t *countp, unsigned char *ip);
1697 EXTERNL int
1698 nc_put_vars_ubyte(int ncid, int varid, const size_t *startp,
1699  const size_t *countp, const ptrdiff_t *stridep,
1700  const unsigned char *op);
1701 EXTERNL int
1702 nc_get_vars_ubyte(int ncid, int varid, const size_t *startp,
1703  const size_t *countp, const ptrdiff_t *stridep,
1704  unsigned char *ip);
1705 EXTERNL int
1706 nc_put_varm_ubyte(int ncid, int varid, const size_t *startp,
1707  const size_t *countp, const ptrdiff_t *stridep,
1708  const ptrdiff_t * imapp, const unsigned char *op);
1709 EXTERNL int
1710 nc_get_varm_ubyte(int ncid, int varid, const size_t *startp,
1711  const size_t *countp, const ptrdiff_t *stridep,
1712  const ptrdiff_t * imapp, unsigned char *ip);
1713 EXTERNL int
1714 nc_put_var_ubyte(int ncid, int varid, const unsigned char *op);
1715 EXTERNL int
1716 nc_get_var_ubyte(int ncid, int varid, unsigned char *ip);
1717 /* End Deprecated */
1718 
1719 #ifdef LOGGING
1720 
1721 /* Set the log level. 0 shows only errors, 1 only major messages,
1722  * etc., to 5, which shows way too much information. */
1723 EXTERNL int
1724 nc_set_log_level(int new_level);
1725 
1726 /* Use this to turn off logging by calling
1727  nc_log_level(NC_TURN_OFF_LOGGING) */
1728 #define NC_TURN_OFF_LOGGING (-1)
1729 
1730 #else /* not LOGGING */
1731 
1732 #define nc_set_log_level(e)
1733 
1734 #endif /* LOGGING */
1735 
1736 /* Show the netCDF library's in-memory metadata for a file. */
1737 EXTERNL int
1738 nc_show_metadata(int ncid);
1739 
1740 /* End {put,get}_var */
1741 
1742 /* #ifdef _CRAYMPP */
1743 /*
1744  * Public interfaces to better support
1745  * CRAY multi-processor systems like T3E.
1746  * A tip of the hat to NERSC.
1747  */
1748 /*
1749  * It turns out we need to declare and define
1750  * these public interfaces on all platforms
1751  * or things get ugly working out the
1752  * FORTRAN interface. On !_CRAYMPP platforms,
1753  * these functions work as advertised, but you
1754  * can only use "processor element" 0.
1755  */
1756 
1757 EXTERNL int
1758 nc__create_mp(const char *path, int cmode, size_t initialsz, int basepe,
1759  size_t *chunksizehintp, int *ncidp);
1760 
1761 EXTERNL int
1762 nc__open_mp(const char *path, int mode, int basepe,
1763  size_t *chunksizehintp, int *ncidp);
1764 
1765 EXTERNL int
1766 nc_delete(const char *path);
1767 
1768 EXTERNL int
1769 nc_delete_mp(const char *path, int basepe);
1770 
1771 EXTERNL int
1772 nc_set_base_pe(int ncid, int pe);
1773 
1774 EXTERNL int
1775 nc_inq_base_pe(int ncid, int *pe);
1776 
1777 /* #endif _CRAYMPP */
1778 
1779 /* This v2 function is used in the nc_test program. */
1780 EXTERNL int
1781 nctypelen(nc_type datatype);
1782 
1783 /* Begin v2.4 backward compatibility */
1784 /*
1785  * defining NO_NETCDF_2 to the preprocessor
1786  * turns off backward compatibility declarations.
1787  */
1788 #ifndef NO_NETCDF_2
1789 
1792 #define FILL_BYTE NC_FILL_BYTE
1793 #define FILL_CHAR NC_FILL_CHAR
1794 #define FILL_SHORT NC_FILL_SHORT
1795 #define FILL_LONG NC_FILL_INT
1796 #define FILL_FLOAT NC_FILL_FLOAT
1797 #define FILL_DOUBLE NC_FILL_DOUBLE
1798 
1799 #define MAX_NC_DIMS NC_MAX_DIMS
1800 #define MAX_NC_ATTRS NC_MAX_ATTRS
1801 #define MAX_NC_VARS NC_MAX_VARS
1802 #define MAX_NC_NAME NC_MAX_NAME
1803 #define MAX_VAR_DIMS NC_MAX_VAR_DIMS
1804 
1807 /*
1808  * Global error status
1809  */
1810 EXTERNL int ncerr;
1811 
1812 #define NC_ENTOOL NC_EMAXNAME /* Backward compatibility */
1813 #define NC_EXDR (-32) /* */
1814 #define NC_SYSERR (-31)
1815 
1816 /*
1817  * Global options variable.
1818  * Used to determine behavior of error handler.
1819  */
1820 #define NC_FATAL 1
1821 #define NC_VERBOSE 2
1822 
1823 EXTERNL int ncopts; /* default is (NC_FATAL | NC_VERBOSE) */
1824 
1825 EXTERNL void
1826 nc_advise(const char *cdf_routine_name, int err, const char *fmt,...);
1827 
1828 /*
1829  * C data type corresponding to a netCDF NC_LONG argument,
1830  * a signed 32 bit object.
1831  *
1832  * This is the only thing in this file which architecture dependent.
1833  */
1834 typedef int nclong;
1835 
1836 EXTERNL int
1837 nccreate(const char* path, int cmode);
1838 
1839 EXTERNL int
1840 ncopen(const char* path, int mode);
1841 
1842 EXTERNL int
1843 ncsetfill(int ncid, int fillmode);
1844 
1845 EXTERNL int
1846 ncredef(int ncid);
1847 
1848 EXTERNL int
1849 ncendef(int ncid);
1850 
1851 EXTERNL int
1852 ncsync(int ncid);
1853 
1854 EXTERNL int
1855 ncabort(int ncid);
1856 
1857 EXTERNL int
1858 ncclose(int ncid);
1859 
1860 EXTERNL int
1861 ncinquire(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp);
1862 
1863 EXTERNL int
1864 ncdimdef(int ncid, const char *name, long len);
1865 
1866 EXTERNL int
1867 ncdimid(int ncid, const char *name);
1868 
1869 EXTERNL int
1870 ncdiminq(int ncid, int dimid, char *name, long *lenp);
1871 
1872 EXTERNL int
1873 ncdimrename(int ncid, int dimid, const char *name);
1874 
1875 EXTERNL int
1876 ncattput(int ncid, int varid, const char *name, nc_type xtype,
1877  int len, const void *op);
1878 
1879 EXTERNL int
1880 ncattinq(int ncid, int varid, const char *name, nc_type *xtypep, int *lenp);
1881 
1882 EXTERNL int
1883 ncattget(int ncid, int varid, const char *name, void *ip);
1884 
1885 EXTERNL int
1886 ncattcopy(int ncid_in, int varid_in, const char *name, int ncid_out,
1887  int varid_out);
1888 
1889 EXTERNL int
1890 ncattname(int ncid, int varid, int attnum, char *name);
1891 
1892 EXTERNL int
1893 ncattrename(int ncid, int varid, const char *name, const char *newname);
1894 
1895 EXTERNL int
1896 ncattdel(int ncid, int varid, const char *name);
1897 
1898 EXTERNL int
1899 ncvardef(int ncid, const char *name, nc_type xtype,
1900  int ndims, const int *dimidsp);
1901 
1902 EXTERNL int
1903 ncvarid(int ncid, const char *name);
1904 
1905 EXTERNL int
1906 ncvarinq(int ncid, int varid, char *name, nc_type *xtypep,
1907  int *ndimsp, int *dimidsp, int *nattsp);
1908 
1909 EXTERNL int
1910 ncvarput1(int ncid, int varid, const long *indexp, const void *op);
1911 
1912 EXTERNL int
1913 ncvarget1(int ncid, int varid, const long *indexp, void *ip);
1914 
1915 EXTERNL int
1916 ncvarput(int ncid, int varid, const long *startp, const long *countp,
1917  const void *op);
1918 
1919 EXTERNL int
1920 ncvarget(int ncid, int varid, const long *startp, const long *countp,
1921  void *ip);
1922 
1923 EXTERNL int
1924 ncvarputs(int ncid, int varid, const long *startp, const long *countp,
1925  const long *stridep, const void *op);
1926 
1927 EXTERNL int
1928 ncvargets(int ncid, int varid, const long *startp, const long *countp,
1929  const long *stridep, void *ip);
1930 
1931 EXTERNL int
1932 ncvarputg(int ncid, int varid, const long *startp, const long *countp,
1933  const long *stridep, const long *imapp, const void *op);
1934 
1935 EXTERNL int
1936 ncvargetg(int ncid, int varid, const long *startp, const long *countp,
1937  const long *stridep, const long *imapp, void *ip);
1938 
1939 EXTERNL int
1940 ncvarrename(int ncid, int varid, const char *name);
1941 
1942 EXTERNL int
1943 ncrecinq(int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp);
1944 
1945 EXTERNL int
1946 ncrecget(int ncid, long recnum, void **datap);
1947 
1948 EXTERNL int
1949 ncrecput(int ncid, long recnum, void *const *datap);
1950 
1951 /* EXTERNL int nc_finalize(); */
1952 
1953 /* End v2.4 backward compatibility */
1954 #endif
1956 #if defined(__cplusplus)
1957 }
1958 #endif
1959 
1960 /* Temporary hack to shut up warnings */
1961 #ifndef __MINGW32_VERSION
1962 #define END_OF_MAIN()
1963 #endif
1964 
1965 /* Define two hard-coded functionality-related
1966  macros, but this is not going to be
1967  standard practice. */
1968 #ifndef NC_HAVE_RENAME_GRP
1969 #define NC_HAVE_RENAME_GRP
1970 #endif
1971 
1972 #ifndef NC_HAVE_INQ_FORMAT_EXTENDED
1973 #define NC_HAVE_INQ_FORMAT_EXTENDED
1974 #endif
1975 
1976 #define NC_HAVE_META_H
1977 
1978 #endif /* _NETCDF_ */
EXTERNL int nc_abort(int ncid)
std::string name(const ElemQuality q)
Definition: elem_quality.C:42
EXTERNL int nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
EXTERNL int nc_get_var_float(int ncid, int varid, float *ip)
EXTERNL int ncvarput(int ncid, int varid, const long *startp, const long *countp, const void *op)
EXTERNL int nc_get_var_chunk_cache(int ncid, int varid, size_t *sizep, size_t *nelemsp, float *preemptionp)
EXTERNL int nc_put_varm_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned char *op)
EXTERNL int nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *ip)
EXTERNL int nc_inq_unlimdim(int ncid, int *unlimdimidp)
EXTERNL int nc_inq_varids(int ncid, int *nvars, int *varids)
EXTERNL int ncattrename(int ncid, int varid, const char *name, const char *newname)
EXTERNL int nc_delete(const char *path)
EXTERNL int nc_get_var1_double(int ncid, int varid, const size_t *indexp, double *ip)
EXTERNL int nc_put_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned short *op)
EXTERNL int nc_def_var_fletcher32(int ncid, int varid, int fletcher32)
EXTERNL int nc_inq_vartype(int ncid, int varid, nc_type *xtypep)
EXTERNL int nc_get_var_longlong(int ncid, int varid, long long *ip)
EXTERNL int nc_enddef(int ncid)
EXTERNL int nc_put_var1_ushort(int ncid, int varid, const size_t *indexp, const unsigned short *op)
EXTERNL int nc_put_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, const double *op)
EXTERNL int nc_inq_vardimid(int ncid, int varid, int *dimidsp)
EXTERNL int nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
EXTERNL int nc_inq_var_chunking(int ncid, int varid, int *storagep, size_t *chunksizesp)
EXTERNL int nc_inq_format_extended(int ncid, int *formatp, int *modep)
EXTERNL int nc_insert_compound(int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid)
EXTERNL int nc_inq_compound_fieldname(int ncid, nc_type xtype, int fieldid, char *name)
EXTERNL int nc_put_var1_ulonglong(int ncid, int varid, const size_t *indexp, const unsigned long long *op)
EXTERNL int nc_put_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned int *op)
EXTERNL int ncattinq(int ncid, int varid, const char *name, nc_type *xtypep, int *lenp)
EXTERNL int nc_get_varm_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, signed char *ip)
EXTERNL int nc_create(const char *path, int cmode, int *ncidp)
EXTERNL int ncrecget(int ncid, long recnum, void **datap)
EXTERNL int nc_get_var1_longlong(int ncid, int varid, const size_t *indexp, long long *ip)
EXTERNL int nc_get_att_longlong(int ncid, int varid, const char *name, long long *ip)
EXTERNL int nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equal)
EXTERNL int nc_inq_nvars(int ncid, int *nvarsp)
EXTERNL int nc_inq_var(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int ncdimid(int ncid, const char *name)
EXTERNL int nc_get_att_ubyte(int ncid, int varid, const char *name, unsigned char *ip)
EXTERNL int nc_get_var1_int(int ncid, int varid, const size_t *indexp, int *ip)
EXTERNL int nc_get_att_float(int ncid, int varid, const char *name, float *ip)
EXTERNL int nc_get_varm_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned short *ip)
EXTERNL int nc_get_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
EXTERNL int nc_put_var1_int(int ncid, int varid, const size_t *indexp, const int *op)
EXTERNL int nc_put_varm_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const long long *op)
EXTERNL int nc_rename_att(int ncid, int varid, const char *name, const char *newname)
EXTERNL int ncopts
Definition: netcdf.h:496
EXTERNL int nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
EXTERNL int nc_copy_var(int ncid_in, int varid, int ncid_out)
EXTERNL int nc_get_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, int *ip)
EXTERNL int nc_get_att_text(int ncid, int varid, const char *name, char *ip)
EXTERNL const char * nc_inq_libvers(void)
EXTERNL int nc_set_fill(int ncid, int fillmode, int *old_modep)
EXTERNL int nctypelen(nc_type datatype)
EXTERNL int nc_put_vars(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const void *op)
EXTERNL int nc_put_vlen_element(int ncid, int typeid1, void *vlen_element, size_t len, const void *data)
EXTERNL int nc_def_vlen(int ncid, const char *name, nc_type base_typeid, nc_type *xtypep)
EXTERNL int nc_get_varm_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned char *ip)
EXTERNL int nc_get_varm_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned long long *ip)
EXTERNL int ncrecinq(int ncid, int *nrecvarsp, int *recvaridsp, long *recsizesp)
EXTERNL int nc_get_att_int(int ncid, int varid, const char *name, int *ip)
EXTERNL int nc_get_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, char *ip)
EXTERNL int nc_put_var_string(int ncid, int varid, const char **op)
EXTERNL int nc_put_varm_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned short *op)
EXTERNL int nc_put_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, const short *op)
bool equal(const variant_filter_iterator &other) const
EXTERNL int nc_put_var1_float(int ncid, int varid, const size_t *indexp, const float *op)
EXTERNL int nc_inq_varndims(int ncid, int varid, int *ndimsp)
EXTERNL int nc_get_varm_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned int *ip)
EXTERNL int nc_get_vars_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
EXTERNL int ncvarrename(int ncid, int varid, const char *name)
EXTERNL int nc_inq_compound_fieldndims(int ncid, nc_type xtype, int fieldid, int *ndimsp)
EXTERNL int nc__create_mp(const char *path, int cmode, size_t initialsz, int basepe, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_get_vara_short(int ncid, int varid, const size_t *startp, const size_t *countp, short *ip)
EXTERNL int nc_inq_attid(int ncid, int varid, const char *name, int *idp)
EXTERNL int ncvarputs(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const void *op)
EXTERNL int nc_put_vara(int ncid, int varid, const size_t *startp, const size_t *countp, const void *op)
EXTERNL int nc_inq_varnatts(int ncid, int varid, int *nattsp)
EXTERNL int nc_get_att_double(int ncid, int varid, const char *name, double *ip)
EXTERNL int nc_def_var_endian(int ncid, int varid, int endian)
EXTERNL int nc_put_att_int(int ncid, int varid, const char *name, nc_type xtype, size_t len, const int *op)
EXTERNL int nc_put_att_text(int ncid, int varid, const char *name, size_t len, const char *op)
EXTERNL int nc_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp)
EXTERNL int nc_get_vars_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, float *ip)
EXTERNL int nc_free_string(size_t len, char **data)
EXTERNL int nc_put_var_long(int ncid, int varid, const long *op)
EXTERNL int nc_put_varm_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned long long *op)
EXTERNL int nc_put_varm_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned char *op)
EXTERNL int nc_get_var_uint(int ncid, int varid, unsigned int *ip)
EXTERNL int nc_put_vars_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char *op)
EXTERNL int ncattname(int ncid, int varid, int attnum, char *name)
EXTERNL int ncopen(const char *path, int mode)
EXTERNL int nc_put_vars_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const double *op)
EXTERNL int nc_rename_dim(int ncid, int dimid, const char *name)
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)
EXTERNL int nc_get_varm_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, long long *ip)
EXTERNL int ncattput(int ncid, int varid, const char *name, nc_type xtype, int len, const void *op)
EXTERNL int nc_get_att_short(int ncid, int varid, const char *name, short *ip)
EXTERNL int nc_put_var1_long(int ncid, int varid, const size_t *indexp, const long *op)
EXTERNL int nc_put_att_schar(int ncid, int varid, const char *name, nc_type xtype, size_t len, const signed char *op)
EXTERNL int nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
EXTERNL int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
EXTERNL int nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p)
EXTERNL int nc_get_var_double(int ncid, int varid, double *ip)
EXTERNL int nc_put_var_int(int ncid, int varid, const int *op)
EXTERNL int nc_close(int ncid)
EXTERNL int nc_get_var_text(int ncid, int varid, char *ip)
EXTERNL int nc_put_varm_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const unsigned int *op)
EXTERNL int nc_set_chunk_cache(size_t size, size_t nelems, float preemption)
EXTERNL int nc_inq_natts(int ncid, int *nattsp)
EXTERNL int nc_put_var_longlong(int ncid, int varid, const long long *op)
int nc_type
Definition: netcdf.h:28
EXTERNL int nc_put_varm_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const int *op)
EXTERNL int nc_get_att_ulonglong(int ncid, int varid, const char *name, unsigned long long *ip)
EXTERNL int nc_get_var1_long(int ncid, int varid, const size_t *indexp, long *ip)
EXTERNL int nc_put_varm_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const char **op)
EXTERNL int nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp)
EXTERNL int ncattget(int ncid, int varid, const char *name, void *ip)
EXTERNL int nc_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp)
EXTERNL int nc_inq_grp_parent(int ncid, int *parent_ncid)
EXTERNL int nc_def_var(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
EXTERNL int nc_inq_attname(int ncid, int varid, int attnum, char *name)
EXTERNL int nc_def_opaque(int ncid, size_t size, const char *name, nc_type *xtypep)
EXTERNL int ncendef(int ncid)
EXTERNL int nc_get_vars(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, void *ip)
EXTERNL int nc_def_dim(int ncid, const char *name, size_t len, int *idp)
EXTERNL int nc_insert_array_compound(int ncid, nc_type xtype, const char *name, size_t offset, nc_type field_typeid, int ndims, const int *dim_sizes)
EXTERNL int nc_put_att(int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *op)
EXTERNL int ncinquire(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimp)
EXTERNL int nc_put_vars_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long long *op)
EXTERNL int nc_free_vlen(nc_vlen_t *vl)
EXTERNL int nc__enddef(int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align)
EXTERNL int nc_inq_grpname(int ncid, char *name)
EXTERNL int nc_get_var1_schar(int ncid, int varid, const size_t *indexp, signed char *ip)
EXTERNL int ncerr
Definition: netcdf.h:495
EXTERNL int nc_get_att_string(int ncid, int varid, const char *name, char **ip)
EXTERNL int nc_put_vara_text(int ncid, int varid, const size_t *startp, const size_t *countp, const char *op)
EXTERNL int nc_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)
EXTERNL int nc_get_vlen_element(int ncid, int typeid1, const void *vlen_element, size_t *len, void *data)
EXTERNL int nc_get_var1_string(int ncid, int varid, const size_t *indexp, char **ip)
EXTERNL int nc_put_vars_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned char *op)
EXTERNL int nc_get_att(int ncid, int varid, const char *name, void *ip)
EXTERNL int nc_put_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const char **op)
EXTERNL int nc_put_var_double(int ncid, int varid, const double *op)
EXTERNL int nc_get_vars_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, signed char *ip)
EXTERNL int nc_get_varm_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, long *ip)
EXTERNL int ncattcopy(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
EXTERNL int ncsetfill(int ncid, int fillmode)
EXTERNL int ncsync(int ncid)
EXTERNL int nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *ip)
EXTERNL int nc_get_var_long(int ncid, int varid, long *ip)
EXTERNL int nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *ip)
EXTERNL int nc_get_varm_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, short *ip)
EXTERNL int nc_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems, float preemption)
EXTERNL int ncvarget(int ncid, int varid, const long *startp, const long *countp, void *ip)
EXTERNL int nc_put_vars_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const int *op)
EXTERNL int nc_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier)
EXTERNL int nc_inq_grps(int ncid, int *numgrps, int *ncids)
EXTERNL int nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp)
EXTERNL int nc_get_vara_uint(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned int *ip)
EXTERNL int nc_inq_type(int ncid, nc_type xtype, char *name, size_t *size)
EXTERNL int nc_get_var1_float(int ncid, int varid, const size_t *indexp, float *ip)
EXTERNL int nc_inq_att(int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp)
EXTERNL int nc_put_att_string(int ncid, int varid, const char *name, size_t len, const char **op)
EXTERNL int nc_inq_compound_fieldtype(int ncid, nc_type xtype, int fieldid, nc_type *field_typeidp)
EXTERNL int nc_get_vars_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned short *ip)
EXTERNL int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep)
EXTERNL int nc__open_mp(const char *path, int mode, int basepe, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_get_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, long *ip)
EXTERNL int nc_inq_dimname(int ncid, int dimid, char *name)
EXTERNL int ncrecput(int ncid, long recnum, void *const *datap)
EXTERNL const char * nc_strerror(int ncerr)
EXTERNL int nc_put_vars_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned char *op)
EXTERNL int nc_inq_enum_member(int ncid, nc_type xtype, int idx, char *name, void *value)
EXTERNL int ncvargets(int ncid, int varid, const long *startp, const long *countp, const long *stridep, void *ip)
EXTERNL int nc_put_vars_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const long *op)
EXTERNL int nccreate(const char *path, int cmode)
EXTERNL int nc_put_att_long(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long *op)
EXTERNL int ncvarget1(int ncid, int varid, const long *indexp, void *ip)
EXTERNL int nc_put_vara_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned long long *op)
EXTERNL int nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp)
EXTERNL int nc_get_var_ushort(int ncid, int varid, unsigned short *ip)
EXTERNL int ncdiminq(int ncid, int dimid, char *name, long *lenp)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)
EXTERNL int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
EXTERNL int nc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
EXTERNL int nc_put_varm_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const short *op)
EXTERNL int nc_get_vars_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char *ip)
EXTERNL int ncabort(int ncid)
EXTERNL int nc_put_var(int ncid, int varid, const void *op)
EXTERNL int nc_put_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const short *op)
EXTERNL int nc_put_att_ubyte(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned char *op)
EXTERNL int ncvarid(int ncid, const char *name)
void * p
Definition: netcdf.h:668
EXTERNL int nc_get_var1_uint(int ncid, int varid, const size_t *indexp, unsigned int *ip)
EXTERNL int nc_get_att_schar(int ncid, int varid, const char *name, signed char *ip)
EXTERNL int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
EXTERNL int ncvargetg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, void *ip)
EXTERNL int nc_inq_compound_size(int ncid, nc_type xtype, size_t *sizep)
EXTERNL int nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op)
EXTERNL int nc_put_var_short(int ncid, int varid, const short *op)
EXTERNL int nc_get_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, signed char *ip)
EXTERNL int nc_get_varm_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, int *ip)
EXTERNL int nc_inq_varname(int ncid, int varid, char *name)
EXTERNL int nc_inq_compound_nfields(int ncid, nc_type xtype, size_t *nfieldsp)
EXTERNL int nc_inq_compound_fieldindex(int ncid, nc_type xtype, const char *name, int *fieldidp)
EXTERNL int ncattdel(int ncid, int varid, const char *name)
OStreamProxy err(std::cerr)
EXTERNL int nc_inq_format(int ncid, int *formatp)
EXTERNL int nc_get_vars_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, char **ip)
EXTERNL int ncvarputg(int ncid, int varid, const long *startp, const long *countp, const long *stridep, const long *imapp, const void *op)
EXTERNL int nc_get_vars_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned int *ip)
EXTERNL int nc_put_var_uint(int ncid, int varid, const unsigned int *op)
EXTERNL int nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip)
EXTERNL void nc_advise(const char *cdf_routine_name, int err, const char *fmt,...)
EXTERNL int nc_get_vara_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned long long *ip)
EXTERNL int nc_inq_varid(int ncid, const char *name, int *varidp)
EXTERNL int nc_get_var(int ncid, int varid, void *ip)
EXTERNL int nc_set_log_level(int new_level)
EXTERNL int nc_set_default_format(int format, int *old_formatp)
EXTERNL int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
EXTERNL int nc_inq_vlen(int ncid, nc_type xtype, char *name, size_t *datum_sizep, nc_type *base_nc_typep)
EXTERNL int nc_insert_enum(int ncid, nc_type xtype, const char *name, const void *value)
EXTERNL int nc_put_var1_short(int ncid, int varid, const size_t *indexp, const short *op)
EXTERNL int nc_put_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
EXTERNL int nc_redef(int ncid)
EXTERNL int nc_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value)
EXTERNL int nc_put_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, const char **op)
EXTERNL int ncvarput1(int ncid, int varid, const long *indexp, const void *op)
EXTERNL int nc_get_vars_short(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, short *ip)
EXTERNL int nc_put_vara_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const unsigned char *op)
EXTERNL int nc_get_var1_short(int ncid, int varid, const size_t *indexp, short *ip)
EXTERNL int nc_put_var1_string(int ncid, int varid, const size_t *indexp, const char **op)
EXTERNL int nc_delete_mp(const char *path, int basepe)
EXTERNL int nc_get_varm_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, char *ip)
size_t len
Definition: netcdf.h:667
EXTERNL int nc_put_att_ushort(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned short *op)
EXTERNL int ncredef(int ncid)
EXTERNL int nc_get_var_schar(int ncid, int varid, signed char *ip)
EXTERNL int nc_put_att_double(int ncid, int varid, const char *name, nc_type xtype, size_t len, const double *op)
EXTERNL int nc_inq_var_endian(int ncid, int varid, int *endianp)
EXTERNL int nc_set_base_pe(int ncid, int pe)
EXTERNL int nc_put_var_ushort(int ncid, int varid, const unsigned short *op)
EXTERNL int nc_put_varm_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const double *op)
EXTERNL int nc_rename_grp(int grpid, const char *name)
EXTERNL int nc_get_vars_int(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, int *ip)
EXTERNL int nc_get_vara_ubyte(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned char *ip)
EXTERNL int nc_put_att_ulonglong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned long long *op)
EXTERNL int nc_get_vara_double(int ncid, int varid, const size_t *startp, const size_t *countp, double *ip)
EXTERNL int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
EXTERNL int nc_put_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, const float *op)
EXTERNL int nc_put_var_ubyte(int ncid, int varid, const unsigned char *op)
EXTERNL int nc_free_vlens(size_t len, nc_vlen_t vlens[])
EXTERNL int nc_get_vara(int ncid, int varid, const size_t *startp, const size_t *countp, void *ip)
EXTERNL int nc_put_varm_text(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const char *op)
EXTERNL int nc_put_var_ulonglong(int ncid, int varid, const unsigned long long *op)
EXTERNL int nc_get_vars_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned long long *ip)
EXTERNL int nc_put_att_longlong(int ncid, int varid, const char *name, nc_type xtype, size_t len, const long long *op)
EXTERNL int nc_put_vars_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const signed char *op)
int nclong
Definition: netcdf.h:1834
EXTERNL int nc_put_att_float(int ncid, int varid, const char *name, nc_type xtype, size_t len, const float *op)
EXTERNL int nc_put_vara_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const signed char *op)
EXTERNL int nc_put_varm_schar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const signed char *op)
static const bool value
Definition: xdr_io.C:109
EXTERNL int nc_inq_base_pe(int ncid, int *pe)
EXTERNL int nc_inq_compound_fielddim_sizes(int ncid, nc_type xtype, int fieldid, int *dim_sizes)
EXTERNL int nc_get_var1_ulonglong(int ncid, int varid, const size_t *indexp, unsigned long long *ip)
EXTERNL int nc_get_var_int(int ncid, int varid, int *ip)
EXTERNL int nc_inq_compound_field(int ncid, nc_type xtype, int fieldid, char *name, size_t *offsetp, nc_type *field_typeidp, int *ndimsp, int *dim_sizesp)
EXTERNL int nc_get_varm_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, float *ip)
EXTERNL int ncclose(int ncid)
EXTERNL int nc_inq_path(int ncid, size_t *pathlen, char *path)
EXTERNL int nc_get_vars_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, double *ip)
EXTERNL int nc_put_vars_uint(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned int *op)
EXTERNL int nc_get_var_short(int ncid, int varid, short *ip)
EXTERNL int nc_inq_compound(int ncid, nc_type xtype, char *name, size_t *sizep, size_t *nfieldsp)
EXTERNL int nc_put_varm_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const long *op)
EXTERNL int nc_put_var1_longlong(int ncid, int varid, const size_t *indexp, const long long *op)
EXTERNL int nc__create(const char *path, int cmode, size_t initialsz, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_get_vars_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long long *ip)
EXTERNL int nc_get_vara_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, unsigned short *ip)
EXTERNL int nc_put_var1_uchar(int ncid, int varid, const size_t *indexp, const unsigned char *op)
EXTERNL int nc_def_enum(int ncid, nc_type base_typeid, const char *name, nc_type *typeidp)
EXTERNL int ncdimrename(int ncid, int dimid, const char *name)
EXTERNL int nc_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp)
EXTERNL int nc_show_metadata(int ncid)
EXTERNL int ncvardef(int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp)
EXTERNL int nc_get_var_ubyte(int ncid, int varid, unsigned char *ip)
EXTERNL int nc_get_vars_long(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, long *ip)
EXTERNL int nc_get_var1_uchar(int ncid, int varid, const size_t *indexp, unsigned char *ip)
EXTERNL int nc_put_vars_ushort(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned short *op)
EXTERNL int nc__open(const char *path, int mode, size_t *chunksizehintp, int *ncidp)
EXTERNL int nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
EXTERNL int nc_inq_grpname_len(int ncid, size_t *lenp)
EXTERNL int nc_get_var_string(int ncid, int varid, char **ip)
EXTERNL int nc_inq_compound_name(int ncid, nc_type xtype, char *name)
EXTERNL int nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip)
EXTERNL int nc_put_vars_ulonglong(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const unsigned long long *op)
EXTERNL int nc_get_vara_string(int ncid, int varid, const size_t *startp, const size_t *countp, char **ip)
EXTERNL int nc_put_var1_schar(int ncid, int varid, const size_t *indexp, const signed char *op)
EXTERNL int nc_inq_dimid(int ncid, const char *name, int *idp)
EXTERNL int nc_inq_ndims(int ncid, int *ndimsp)
EXTERNL int nc_get_var_uchar(int ncid, int varid, unsigned char *ip)
IterBase * data
EXTERNL int nc_put_vars_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const float *op)
EXTERNL int nc_put_var1_double(int ncid, int varid, const size_t *indexp, const double *op)
EXTERNL int nc_put_var_uchar(int ncid, int varid, const unsigned char *op)
EXTERNL int nc_put_att_uint(int ncid, int varid, const char *name, nc_type xtype, size_t len, const unsigned int *op)
EXTERNL int nc_put_varm_float(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, const float *op)
EXTERNL int nc_get_var1_ushort(int ncid, int varid, const size_t *indexp, unsigned short *ip)
EXTERNL int nc_put_var1_ubyte(int ncid, int varid, const size_t *indexp, const unsigned char *op)
EXTERNL int nc_get_var1_ubyte(int ncid, int varid, const size_t *indexp, unsigned char *ip)
EXTERNL int nc_inq_dimlen(int ncid, int dimid, size_t *lenp)
EXTERNL int nc_put_var_text(int ncid, int varid, const char *op)
EXTERNL int nc_put_vara_long(int ncid, int varid, const size_t *startp, const size_t *countp, const long *op)
EXTERNL int ncdimdef(int ncid, const char *name, long len)
EXTERNL int nc_put_vara_int(int ncid, int varid, const size_t *startp, const size_t *countp, const int *op)
EXTERNL int nc_get_varm(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, void *ip)
EXTERNL int nc_rename_var(int ncid, int varid, const char *name)
EXTERNL int nc_get_vara_float(int ncid, int varid, const size_t *startp, const size_t *countp, float *ip)
EXTERNL int nc_get_att_long(int ncid, int varid, const char *name, long *ip)
EXTERNL int nc_get_var_ulonglong(int ncid, int varid, unsigned long long *ip)
EXTERNL int nc_put_var1_uint(int ncid, int varid, const size_t *indexp, const unsigned int *op)
EXTERNL int nc_del_att(int ncid, int varid, const char *name)
EXTERNL int nc_get_varm_double(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, double *ip)
EXTERNL int nc_sync(int ncid)
EXTERNL int nc_def_var_deflate(int ncid, int varid, int shuffle, int deflate, int deflate_level)
EXTERNL int nc_get_vars_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, unsigned char *ip)
EXTERNL int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
EXTERNL int nc_put_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, const long long *op)
EXTERNL int nc_copy_att(int ncid_in, int varid_in, const char *name, int ncid_out, int varid_out)
EXTERNL int nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
EXTERNL int ncvarinq(int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp)
EXTERNL int nc_inq_dim(int ncid, int dimid, char *name, size_t *lenp)
unsigned int idx(const ElemType type, const unsigned int nx, const unsigned int i, const unsigned int j)
EXTERNL int nc_get_varm_uchar(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, unsigned char *ip)
EXTERNL int nc_get_varm_string(int ncid, int varid, const size_t *startp, const size_t *countp, const ptrdiff_t *stridep, const ptrdiff_t *imapp, char **ip)
EXTERNL int nc_put_var_schar(int ncid, int varid, const signed char *op)
EXTERNL int nc_put_att_short(int ncid, int varid, const char *name, nc_type xtype, size_t len, const short *op)
EXTERNL int nc_put_var_float(int ncid, int varid, const float *op)
EXTERNL int nc_inq_compound_fieldoffset(int ncid, nc_type xtype, int fieldid, size_t *offsetp)
EXTERNL int nc_put_var1(int ncid, int varid, const size_t *indexp, const void *op)
EXTERNL int nc_inq_var_deflate(int ncid, int varid, int *shufflep, int *deflatep, int *deflate_levelp)
EXTERNL int nc_get_vara_longlong(int ncid, int varid, const size_t *startp, const size_t *countp, long long *ip)