29bool is_user_defined_type(
int ,
int type)
31#if NETCDF_VERSION >= 4
32 return type >= NC_FIRSTUSERTYPEID;
37 int typeids[NC_MAX_VARS];
40 int err = nc_inq_typeids(ncid, &ntypes, typeids);
42 throw Error(err,
"Could not get the user defined type information.");
44 for (
int i = 0; i < ntypes; ++i) {
45 if (type == typeids[i])