26 #if (defined macintosh) || (defined MPW) || (defined __MWERKS__) 30 #define NO_SYS_XDR_INC 42 #define FILENAME_MAX 255 46 #ifndef NO_SYS_XDR_INC 48 # define STDC_INCLUDES 53 #include <rpc/types.h> 59 #if defined(macintosh) || defined (SYMANTEC_C) 62 #include "::xdr:types.h" 63 #include "::xdr:xdr.h" 90 #define ATTR_TAG DFTAG_VH 91 #define DIM_TAG DFTAG_VG 92 #define VAR_TAG DFTAG_VG 93 #define DATA_TAG DFTAG_SD 94 #define BOGUS_TAG ((uint16) 721) 97 #define ATTRIBUTE "Attr0.0" 98 #define VARIABLE "Var0.0" 99 #define DIMENSION "Dim0.0" 100 #define UDIMENSION "UDim0.0" 101 #define DIM_VALS "DimVal0.0" 102 #define DIM_VALS01 "DimVal0.1" 107 #define DATA0 "Data0.0" 108 #define ATTR_FIELD_NAME "VALUES" 111 #define DIMVAL_VERSION00 0 112 #define DIMVAL_VERSION01 1 113 #define BLOCK_MULT 64 114 #define MAX_BLOCK_SIZE 65536 115 #define BLOCK_COUNT 128 120 #ifndef MAX_VXR_ENTRIES 121 #define MAX_VXR_ENTRIES 10 126 typedef struct vix_t_def {
132 struct vix_t_def * next;
155 #define NC_compare_string(s1,s2) ((s1)->hash!=(s2)->hash ? 1 : HDstrcmp((s1)->values,(s2)->values)) 257 #define IS_RECVAR(vp) \ 258 ((vp)->shape != NULL ? (*(vp)->shape == NC_UNLIMITED) : 0 ) 260 #define netCDF_FILE 0 267 #define NCMAGIC 0x43444601 269 #define NCLINKMAGIC 0x43444c01 276 #ifndef NO_HAVE_PROTOTYPES 290 #ifndef H4_HAVE_NETCDF 291 #define nc_serror HNAME(nc_serror) 292 #define NCadvise HNAME(NCadvise) 293 #define NC_computeshapes HNAME(NC_computeshapes) 294 #define NC_xtypelen HNAME(NC_xtypelen) 295 #define NC_xlen_array HNAME(NC_xlen_array) 296 #define NC_xlen_attr HNAME(NC_xlen_attr) 297 #define NC_xlen_cdf HNAME(NC_xlen_cdf) 298 #define NC_xlen_dim HNAME(NC_xlen_dim) 299 #define NC_xlen_iarray HNAME(NC_xlen_iarray) 300 #define NC_xlen_string HNAME(NC_xlen_string) 301 #define NC_xlen_var HNAME(NC_xlen_var) 302 #define NCmemset HNAME(NCmemset) 303 #define NC_arrayfill HNAME(NC_arrayfill) 304 #define NC_copy_arrayvals HNAME(NC_copy_arrayvals) 305 #define NC_free_array HNAME(NC_free_array) 306 #define NC_free_attr HNAME(NC_free_attr) 307 #define NC_free_cdf HNAME(NC_free_cdf) 308 #define NC_free_dim HNAME(NC_free_dim) 309 #define NC_free_iarray HNAME(NC_free_iarray) 310 #define NC_free_string HNAME(NC_free_string) 311 #define NC_free_var HNAME(NC_free_var) 312 #define NC_incr_array HNAME(NC_incr_array) 313 #define NC_dimid HNAME(NC_dimid) 314 #define NCcktype HNAME(NCcktype) 315 #define NC_indefine HNAME(NC_indefine) 316 #define xdr_cdf HNAME(xdr_cdf) 317 #define xdr_numrecs HNAME(xdr_numrecs) 318 #define xdr_shorts HNAME(xdr_shorts) 319 #define xdr_NC_array HNAME(xdr_NC_array) 320 #define xdr_NC_attr HNAME(xdr_NC_attr) 321 #define xdr_NC_dim HNAME(xdr_NC_dim) 322 #define xdr_NC_fill HNAME(xdr_NC_fill) 323 #define xdr_NC_iarray HNAME(xdr_NC_iarray) 324 #define xdr_NC_string HNAME(xdr_NC_string) 325 #define xdr_NC_var HNAME(xdr_NC_var) 326 #define NC_typelen HNAME(NC_typelen) 327 #define NC_check_id HNAME(NC_check_id) 328 #define NC_dup_cdf HNAME(NC_dup_cdf) 329 #define NC_new_cdf HNAME(NC_new_cdf) 330 #define NC_new_array HNAME(NC_new_array) 331 #define NC_re_array HNAME(NC_re_array) 332 #define NC_new_attr HNAME(NC_new_attr) 333 #define NC_findattr HNAME(NC_findattr) 334 #define NC_new_dim HNAME(NC_new_dim) 335 #define NC_new_iarray HNAME(NC_new_iarray) 336 #define NC_new_string HNAME(NC_new_string) 337 #define NC_re_string HNAME(NC_re_string) 338 #define NC_hlookupvar HNAME(NC_hlookupvar) 339 #define NC_new_var HNAME(NC_new_var) 340 #define NCvario HNAME(NCvario) 341 #define NCcoordck HNAME(NCcoordck) 342 #define xdr_NCvshort HNAME(xdr_NCvshort) 343 #define NC_dcpy HNAME(NC_dcpy) 344 #define NCxdrfile_sync HNAME(NCxdrfile_sync) 345 #define NCxdrfile_create HNAME(NCxdrfile_create) 347 #define NCgenio HNAME(NCgenio) 348 #define NC_var_shape HNAME(NC_var_shape) 352 #define nncpopt H4_F77_FUNC(ncpopt, NCPOPT) 353 #define nncgopt H4_F77_FUNC(ncgopt, NCGOPT) 354 #define nnccre H4_F77_FUNC(nccre, NCCRE) 355 #define nncopn H4_F77_FUNC(ncopn, NCOPN) 356 #define nncddef H4_F77_FUNC(ncddef, NCDDEF) 357 #define nncdid H4_F77_FUNC(ncdid, NCDID) 358 #define nncvdef H4_F77_FUNC(ncvdef, NCVDEF) 359 #define nncvid H4_F77_FUNC(ncvid, NCVID) 360 #define nnctlen H4_F77_FUNC(nctlen, NCTLEN) 361 #define nncclos H4_F77_FUNC(ncclos, NCCLOS) 362 #define nncredf H4_F77_FUNC(ncredf, NCREDF) 363 #define nncendf H4_F77_FUNC(ncendf, NCENDF) 364 #define nncinq H4_F77_FUNC(ncinq, NCINQ) 365 #define nncsnc H4_F77_FUNC(ncsnc, NCSNC) 366 #define nncabor H4_F77_FUNC(ncabor, NCABOR) 367 #define nncdinq H4_F77_FUNC(ncdinq, NCDINQ) 368 #define nncdren H4_F77_FUNC(ncdren, NCDREN) 369 #define nncvinq H4_F77_FUNC(ncvinq, NCVINQ) 370 #define nncvpt1 H4_F77_FUNC(ncvpt1, NCVPT1) 371 #define nncvp1c H4_F77_FUNC(ncvp1c, NCVP1C) 372 #define nncvpt H4_F77_FUNC(ncvpt, NCVPT) 373 #define nncvptc H4_F77_FUNC(ncvptc, NCVPTC) 374 #define nncvptg H4_F77_FUNC(ncvptg, NCVPTG) 375 #define nncvpgc H4_F77_FUNC(ncvpgc, NCVPGC) 376 #define nncvgt1 H4_F77_FUNC(ncvgt1, NCVGT1) 377 #define nncvg1c H4_F77_FUNC(ncvg1c, NCVG1C) 378 #define nncvgt H4_F77_FUNC(ncvgt, NCVGT) 379 #define nncvgtc H4_F77_FUNC(ncvgtc, NCVGTC) 380 #define nncvgtg H4_F77_FUNC(ncvgtg, NCVGTG) 381 #define nncvggc H4_F77_FUNC(ncvggc, NCVGGC) 382 #define nncvren H4_F77_FUNC(ncvren, NCVREN) 383 #define nncapt H4_F77_FUNC(ncapt, NCAPT) 384 #define nncaptc H4_F77_FUNC(ncaptc, NCAPTC) 385 #define nncainq H4_F77_FUNC(ncainq, NCAINQ) 386 #define nncagt H4_F77_FUNC(ncagt, NCAGT) 387 #define nncagtc H4_F77_FUNC(ncagtc, NCAGTC) 388 #define nncacpy H4_F77_FUNC(ncacpy, NCACPY) 389 #define nncanam H4_F77_FUNC(ncanam, NCANAM) 390 #define nncaren H4_F77_FUNC(ncaren, NCAREN) 391 #define nncadel H4_F77_FUNC(ncadel, NCADEL) 392 #define nncsfil H4_F77_FUNC(ncsfil, NCSFIL) 400 PROTO((
char* pathname,
int* clobmode,
int* rcode,
int pathnamelen));
402 PROTO((
char* pathname,
int* rwmode,
int* rcode,
int pathnamelen));
404 PROTO((
int* cdfid,
char* dimname,
int* dimlen,
int* rcode,
int dimnamelen));
406 PROTO((
int* cdfid,
char* dimname,
int* rcode,
int dimnamelen));
408 PROTO((
int* cdfid,
char* varname,
int*
datatype,
int* ndims,
int* dimarray,
int* rcode,
int varnamelen));
410 PROTO((
int* cdfid,
char* varname,
int* rcode,
int varnamelen));
414 PROTO((
int* cdfid,
int* rcode));
416 PROTO((
int* cdfid,
int* rcode));
418 PROTO((
int* cdfid,
int* rcode));
420 PROTO((
int* cdfid,
int* ndims,
int* nvars,
int* natts,
int* recdim,
int* rcode));
422 PROTO((
int* cdfid,
int* rcode));
424 PROTO((
int* cdfid,
int* rcode));
426 PROTO((
int* cdfid,
int* dimid,
char* dimname,
int*
size,
int* rcode,
int dimnamelen));
428 PROTO((
int* cdfid,
int* dimid,
char* dimname,
int* rcode,
int dimnamelen));
430 PROTO((
int* cdfid,
int* varid,
char* varname,
int*
datatype,
int* ndims,
int* dimarray,
int* natts,
int* rcode,
int varnamelen));
432 PROTO((
int* cdfid,
int* varid,
int* indices,
void* value,
int* rcode));
434 PROTO((
int* cdfid,
int* varid,
int* indices,
char* chval,
int* rcode,
int chvallen));
436 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
void* value,
int* rcode));
438 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
char*
string,
int* lenstr,
int* rcode,
int stringlen));
440 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
int*
stride,
int* basis,
void* value,
int* rcode));
442 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
int*
stride,
int* basis,
char*
string,
int* rcode,
int stringlen));
444 PROTO((
int* cdfid,
int* varid,
int* indices,
void* value,
int* rcode));
446 PROTO((
int* cdfid,
int* varid,
int* indices,
char* chval,
int* rcode,
int chvallen));
448 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
void* value,
int* rcode));
450 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
char*
string,
int* lenstr,
int* rcode,
int stringlen));
452 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
int*
stride,
int* basis,
void* value,
int* rcode));
454 PROTO((
int* cdfid,
int* varid,
int*
start,
int*
count,
int*
stride,
int* basis,
char*
string,
int* rcode,
int stringlen));
456 PROTO((
int* cdfid,
int* varid,
char* varname,
int* rcode,
int varnamelen));
458 PROTO((
int* cdfid,
int* varid,
char* attname,
int*
datatype,
int* attlen,
void* value,
int* rcode,
int attnamelen));
460 PROTO((
int* cdfid,
int* varid,
char* attname,
int*
datatype,
int* lenstr,
char*
string,
int* rcode,
int attnamelen,
int stringlen));
462 PROTO((
int* cdfid,
int* varid,
char* attname,
int*
datatype,
int* attlen,
int* rcode,
int attnamelen));
464 PROTO((
int* cdfid,
int* varid,
char* attname,
void* value,
int* rcode,
int attnamelen));
466 PROTO((
int* cdfid,
int* varid,
char* attname,
char*
string,
int* lenstr,
int* rcode,
int attnamelen,
int stringlen));
468 PROTO((
int* incdfid,
int* invarid,
char* attname,
int* outcdfid,
int* outvarid,
int* rcode,
int attnamelen));
470 PROTO((
int* cdfid,
int* varid,
int* attnum,
char* attname,
int* rcode,
int attnamelen));
472 PROTO((
int* cdfid,
int* varid,
char* attname,
char* newname,
int* rcode,
int attnamelen,
int newnamelen));
474 PROTO((
int* cdfid,
int* varid,
char* attname,
int* rcode,
int attnamelen));
476 PROTO((
int* cdfid,
int* fillmode,
int* rcode));
702 PROTO((XDR *xdrs,
const char *path,
int ncmode));
707 PROTO(( XDR *xdrs,
int ncop));
730 HDFLIBAPI intn hdf_create_compat_dim_vdata
731 PROTO((XDR *xdrs,
NC *handle,
NC_dim *dim, int32 dimval_ver));
788 PROTO((intn req_max));
804 PROTO((XDR *xdrs,
NC **handlep));
807 PROTO((XDR *xdrs,
NC **handlep));
810 PROTO((XDR *xdrs,
NC **handlep));
HDFFCLIBAPI intf intf intf * count
HDFFCLIBAPI intf * block_size
HDFFCLIBAPI _fcd _fcd intf intf * datatype
HDFLIBAPI void NCadvise(int err, const char *fmt,...)
HDFFCLIBAPI void intf dims[]
HDFFCLIBAPI intf _fcd intf intf intf * values
HDFFCLIBAPI _fcd _fcd intf * n
#define NC_copy_arrayvals
HDFFCLIBAPI intf intf start[]
HDFLIBAPI void nc_serror(const char *fmt,...)
HDFFCLIBAPI intf intf intf * type
HDFFCLIBAPI intf stride[]
HDFLIBAPI const char * cdf_routine_name
HDFFCLIBAPI intf * offset