- To: Daniel.Potter@xxxxxxxx
- Subject: Re: [netcdfgroup] NcType problems on Ubuntu 16.04
- From: "Elizabeth A. Fischer" <elizabeth.fischer@xxxxxxxxxxxx>
- Date: Fri, 2 Dec 2016 01:07:34 -0500
Daniel,
I believe you're using the "new" (NetCDF4) C++ interface?
It has known problems with NcType, specifically for any types not in the
NetCDF3 data model. I solved them by using strings instead of the symbolic
enums; some of the API functions take strings. If I need a NcType object,
I use the following function to get one:
inline netCDF::NcType nc_type(netCDF::NcVar ncvar, std::string sntype)
{ return ncvar.getParentGroup().getType(sntype,
netCDF::NcGroup::ParentsAndCurrent);
}
-- Elizabeth
- Follow-Ups:
- Re: [netcdfgroup] NcType problems on Ubuntu 16.04
- From: Daniel.Potter
- Re: [netcdfgroup] NcType problems on Ubuntu 16.04
- References:
- [netcdfgroup] NcType problems on Ubuntu 16.04
- From: Daniel.Potter
- [netcdfgroup] NcType problems on Ubuntu 16.04