NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NcUtil.h File Reference
#include "NcType.h"
#include <vector>
#include <algorithm>
+ Include dependency graph for NcUtil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 netcdf
 

Functions

bool netcdf::IsAtomicType (NcType::ncType const typeClass)
 true if is a netCDF atomic type More...
 
bool netcdf::IsUserDefinedType (NcType::ncType const typeClass)
 true if is a netCDF user-defined type More...
 
template<class TNCT >
TNCT::value_type * netcdf::MakeCArray (TNCT const &ncType, int const size, typename TNCT::value_type const initValue=0)
 Create an empty C-ptr array from the NcType object and size. More...
 
template<class TSrc , class TDest >
void netcdf::ToVector (TSrc const srcBegin, TSrc const srcEnd, std::vector< TDest > &dest)
 Copy a C-ptr array to a std::vector. More...
 
template<class TSrc , class TDest >
void netcdf::ToVector (TSrc const srcBegin, std::vector< TDest > &dest, std::size_t const count)
 Copy a C-ptr array to a std::vector. More...
 
template<class T >
T * netcdf::FromVector (std::vector< T > const &src)
 Create a C-array from a std::vector. More...
 
char ** netcdf::MakeCStringArray (int const numStrings, short const size)
 Allocates array and copies strings. More...
 
char ** netcdf::ToCStringArray (std::vector< std::string > const &strVec)
 
void netcdf::FreeCStringArray (char **&cStrArray, std::size_t const numStrings)
 
void netcdf::GetNcDims (int const groupID, int const varID, std::vector< NcDim > &ncDims)
 Get the dimensions for a variable as vector of NcDim objects. More...
 
bool netcdf::IsRecordVariable (int const groupID, int const varID)
 
std::size_t netcdf::GetTotalSize (NcVar const &var)
 Get total number of elements of data from the dimensions of a variable. throws error if netcdf error. returns zero if has no sizes > 0. Unlimited dimensions are counted only if > zero. More...
 
std::size_t netcdf::GetTotalSize (int const groupID, int const varID)
 
std::size_t netcdf::GetTotalSize (int const groupID, int const varID, std::vector< std::size_t > const &count)
 
void netcdf::GetTypeName (NcGroup const &group,NcType::ncType const typeID,std::string &name)
 Gets the netCDF name of existing type object from the type ID. More...
 
NcGroup netcdf::GetGroup (NcFile const &ncFile, int const groupID)
 Get item info from netCDF ID numbers. More...
 
NcVar netcdf::GetVar (NcFile const &ncFile, int const groupID, int const varID)
 
std::string netcdf::GetVarName (int const groupID, int const varID)
 
std::size_t netcdf::GetDimSize (int const groupID,int const varID,int const dimIndex)
 Get the size of a variable's dimension. More...
 

Detailed Description