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

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52