|
|
|
@ -2,10 +2,15 @@
|
|
|
|
|
* and redistribution conditions.*/
|
|
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
* @internal This file contains functions that return NC_ENOTNC4, for
|
|
|
|
|
* dispatch layers that only implement the classic model.
|
|
|
|
|
* @internal This file contains functions that
|
|
|
|
|
* can be used in dispatch tables to handle
|
|
|
|
|
* such things as unimplemented functions.
|
|
|
|
|
* As a rule, these functions will return NC_ENOTNC4.
|
|
|
|
|
* In some cases, the function may succeed and set
|
|
|
|
|
* appropriate output parameter values. These are indicated
|
|
|
|
|
* by the NC_NOOP prefix to the function name.
|
|
|
|
|
*
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "netcdf.h"
|
|
|
|
@ -14,7 +19,7 @@
|
|
|
|
|
#include "nc4internal.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented in some dispatch tables
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
@ -22,7 +27,7 @@
|
|
|
|
|
* @param nparams Ignored.
|
|
|
|
|
* @param parms Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -40,7 +45,7 @@ NC_NOTNC4_def_var_filter(int ncid, int varid, unsigned int id, size_t nparams,
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param new_ncid Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -50,12 +55,12 @@ NC_NOTNC4_def_grp(int parent_ncid, const char *name, int *new_ncid)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param grpid Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -65,14 +70,14 @@ NC_NOTNC4_rename_grp(int grpid, const char *name)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param size Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -82,7 +87,7 @@ NC_NOTNC4_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -90,7 +95,7 @@ NC_NOTNC4_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp
|
|
|
|
|
* @param offset Ignored.
|
|
|
|
|
* @param field Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -101,7 +106,7 @@ NC_NOTNC4_insert_compound(int ncid, nc_type typeid1, const char *name, size_t of
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -111,7 +116,7 @@ NC_NOTNC4_insert_compound(int ncid, nc_type typeid1, const char *name, size_t of
|
|
|
|
|
* @param ndims Ignored.
|
|
|
|
|
* @param dim Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
extern int
|
|
|
|
@ -123,7 +128,7 @@ NC_NOTNC4_insert_array_compound(int ncid, int typeid1, const char *name,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -134,7 +139,7 @@ NC_NOTNC4_insert_array_compound(int ncid, int typeid1, const char *name,
|
|
|
|
|
* @param ndimsp Ignored.
|
|
|
|
|
* @param dim Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -146,14 +151,14 @@ NC_NOTNC4_inq_compound_field(int ncid, nc_type typeid1, int fieldid, char *name,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param fieldidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -165,14 +170,14 @@ NC_NOTNC4_inq_compound_fieldindex(int ncid, nc_type typeid1, const char *name, i
|
|
|
|
|
/* Opaque type. */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param datum Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -183,14 +188,14 @@ NC_NOTNC4_def_opaque(int ncid, size_t datum_size, const char *name,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param base_typeid Ignored.
|
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -201,14 +206,14 @@ NC_NOTNC4_def_vlen(int ncid, const char *name, nc_type base_typeid,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param base_typeid Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -220,14 +225,14 @@ NC_NOTNC4_def_enum(int ncid, nc_type base_typeid, const char *name,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param xtype Ignored.
|
|
|
|
|
* @param value Ignored.
|
|
|
|
|
* @param identifier Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -237,7 +242,7 @@ NC_NOTNC4_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -245,7 +250,7 @@ NC_NOTNC4_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identif
|
|
|
|
|
* @param identifier Ignored.
|
|
|
|
|
* @param value Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -256,14 +261,14 @@ NC_NOTNC4_inq_enum_member(int ncid, nc_type typeid1, int idx, char *identifier,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
|
* @param identifier Ignored.
|
|
|
|
|
* @param value Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -274,7 +279,7 @@ NC_NOTNC4_insert_enum(int ncid, nc_type typeid1, const char *identifier,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -293,7 +298,7 @@ NC_NOTNC4_put_vlen_element(int ncid, int typeid1, void *vlen_element,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -301,7 +306,7 @@ NC_NOTNC4_put_vlen_element(int ncid, int typeid1, void *vlen_element,
|
|
|
|
|
* @param len Ignored.
|
|
|
|
|
* @param data Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -312,7 +317,7 @@ NC_NOTNC4_get_vlen_element(int ncid, int typeid1, const void *vlen_element,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
@ -320,7 +325,7 @@ NC_NOTNC4_get_vlen_element(int ncid, int typeid1, const void *vlen_element,
|
|
|
|
|
* @param nelems Ignored.
|
|
|
|
|
* @param preemption Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -331,7 +336,7 @@ NC_NOTNC4_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
@ -339,7 +344,7 @@ NC_NOTNC4_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
|
|
|
|
|
* @param nelemsp Ignored.
|
|
|
|
|
* @param preemptionp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -350,7 +355,7 @@ NC_NOTNC4_get_var_chunk_cache(int ncid, int varid, size_t *sizep,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
@ -358,7 +363,7 @@ NC_NOTNC4_get_var_chunk_cache(int ncid, int varid, size_t *sizep,
|
|
|
|
|
* @param deflate Ignored.
|
|
|
|
|
* @param deflate_level Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -369,13 +374,13 @@ NC_NOTNC4_def_var_deflate(int ncid, int varid, int shuffle, int deflate,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
|
* @param fletcher32 Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -385,14 +390,14 @@ NC_NOTNC4_def_var_fletcher32(int ncid, int varid, int fletcher32)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
|
* @param contiguous Ignored.
|
|
|
|
|
* @param chunksizesp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -403,13 +408,13 @@ NC_NOTNC4_def_var_chunking(int ncid, int varid, int contiguous, const size_t *ch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
|
* @param endianness Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -419,13 +424,13 @@ NC_NOTNC4_def_var_endian(int ncid, int varid, int endianness)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param varid Ignored.
|
|
|
|
|
* @param par_access Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -435,13 +440,13 @@ NC_NOTNC4_var_par_access(int ncid, int varid, int par_access)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param grp_ncid Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -451,13 +456,13 @@ NC_NOTNC4_inq_ncid(int ncid, const char *name, int *grp_ncid)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param numgrps Ignored.
|
|
|
|
|
* @param ncids Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -467,12 +472,12 @@ NC_NOTNC4_inq_grps(int ncid, int *numgrps, int *ncids)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -482,13 +487,13 @@ NC_NOTNC4_inq_grpname(int ncid, char *name)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param lenp Ignored.
|
|
|
|
|
* @param full_name Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -498,12 +503,12 @@ NC_NOTNC4_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param parent_ncid Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -513,13 +518,13 @@ NC_NOTNC4_inq_grp_parent(int ncid, int *parent_ncid)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param full_name Ignored.
|
|
|
|
|
* @param grp_ncid Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -529,13 +534,13 @@ NC_NOTNC4_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param nvars Ignored.
|
|
|
|
|
* @param varids Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -545,14 +550,14 @@ NC_NOTNC4_inq_varids(int ncid, int *nvars, int *varids)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param ndims Ignored.
|
|
|
|
|
* @param dimids Ignored.
|
|
|
|
|
* @param include_parents Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -562,13 +567,13 @@ NC_NOTNC4_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param ntypes Ignored.
|
|
|
|
|
* @param typeids Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -578,7 +583,7 @@ NC_NOTNC4_inq_typeids(int ncid, int *ntypes, int *typeids)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
|
* @internal Not implemented for a dispatch table.
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Ignored.
|
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
@ -588,7 +593,7 @@ NC_NOTNC4_inq_typeids(int ncid, int *ntypes, int *typeids)
|
|
|
|
|
* @param nfieldsp Ignored.
|
|
|
|
|
* @param classp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
@ -605,11 +610,28 @@ NC_NOTNC4_inq_user_type(int ncid, nc_type typeid1, char *name, size_t *size,
|
|
|
|
|
* @param name Ignored.
|
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author Ed Hartnett
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
|
NC_NOTNC4_inq_typeid(int ncid, const char *name, nc_type *typeidp)
|
|
|
|
|
{
|
|
|
|
|
/* Note that this should actually work for atomic types */
|
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal Carry out one of several filter actions
|
|
|
|
|
*
|
|
|
|
|
* @param ncid Containing group id
|
|
|
|
|
* @param varid Containing variable id
|
|
|
|
|
* @param action Action to perform
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
|
|
|
|
* @author D. Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
|
NC_NOTNC4_filter_actions(int ncid, int varid, int action, struct NC_Filterobject* spec)
|
|
|
|
|
{
|
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
|
}
|
|
|
|
@ -621,11 +643,23 @@ NC_NOTNC4_inq_typeid(int ncid, const char *name, nc_type *typeidp)
|
|
|
|
|
* @param varid Containing variable id
|
|
|
|
|
* @param action Action to perform
|
|
|
|
|
*
|
|
|
|
|
* @return ::NC_ENOTNC4 Not allowed for classic model.
|
|
|
|
|
* @return ::NC_NOERR Implemented as a no-op.
|
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented
|
|
|
|
|
* @return ::NC_ENOFILTER No filter defined
|
|
|
|
|
* @author D. Heimbigner
|
|
|
|
|
*/
|
|
|
|
|
int
|
|
|
|
|
NC_NOTNC4_filter_actions(int ncid, int varid, int action, struct NC_Filterobject* spec)
|
|
|
|
|
NC_NOOP_filter_actions(int ncid, int varid, int action, struct NC_Filterobject* args)
|
|
|
|
|
{
|
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
|
NC_FILTER_OBJ_HDF5* obj = (NC_FILTER_OBJ_HDF5*)args;
|
|
|
|
|
switch (action) {
|
|
|
|
|
case NCFILTER_FILTERIDS:
|
|
|
|
|
obj->u.ids.nfilters = 0;
|
|
|
|
|
return NC_NOERR;
|
|
|
|
|
case NCFILTER_INQ: /* fall thrue */
|
|
|
|
|
case NCFILTER_INFO:
|
|
|
|
|
return NC_ENOFILTER;
|
|
|
|
|
default:
|
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|