VAPoR
0.1
|
NetCDFSimple API interface. More...
#include <NetCDFSimple.h>
Public Member Functions | |
Variable () | |
Variable (string varname, std::vector< string > dimnames, int varid, int type) | |
string | GetName () const |
Return the variable's name. More... | |
std::vector< string > | GetAttNames () const |
std::vector< string > | GetDimNames () const |
int | GetAttType (string name) const |
int | GetVarID () const |
Return the netCDF variable ID for this variable. More... | |
void | GetAtt (string name, std::vector< double > &values) const |
void | GetAtt (string name, std::vector< long > &values) const |
void | GetAtt (string name, string &values) const |
void | SetAtt (string name, const std::vector< double > &values) |
void | SetAtt (string name, const std::vector< long > &values) |
void | SetAtt (string name, const string &values) |
Friends | |
VDF_API friend std::ostream & | operator<< (std::ostream &o, const Variable &var) |
VDF_API friend bool | operator== (const Variable &v1, const Variable &v2) |
NetCDFSimple API interface.
A NetCDFSimple data variable
Definition at line 43 of file NetCDFSimple.h.
VAPoR::NetCDFSimple::Variable::Variable | ( | ) |
VAPoR::NetCDFSimple::Variable::Variable | ( | string | varname, |
std::vector< string > | dimnames, | ||
int | varid, | ||
int | type | ||
) |
Constructor for NetCDFSimple::Variable class
[in] | varname | Name of the netCDF variable |
[in] | dimnames | A vector dimension names, ordered from slowest-varying to fastest. |
[in] | varid | The netCDF variable ID |
[in] | type | The netCDF external data type for the variable |
void VAPoR::NetCDFSimple::Variable::GetAtt | ( | string | name, |
std::vector< double > & | values | ||
) | const |
Return attribute values for attribute of type float
Return the values of the named attribute converted to type float.
[in] | name | Name of the attribute |
[out] | values | A vector of attribute values |
void VAPoR::NetCDFSimple::Variable::GetAtt | ( | string | name, |
std::vector< long > & | values | ||
) | const |
void VAPoR::NetCDFSimple::Variable::GetAtt | ( | string | name, |
string & | values | ||
) | const |
std::vector<string> VAPoR::NetCDFSimple::Variable::GetAttNames | ( | ) | const |
Return variable's attribute names
This method returns a vector containing the names of all of the attributes associated with this variable
int VAPoR::NetCDFSimple::Variable::GetAttType | ( | string | name | ) | const |
Return the netCDF external data type for an attribute
Returns the nc_type of the named variable attribute.
[in] | name | Name of the attribute |
If | an attribute named by name does not exist, a negative value is returned. |
|
inline |
Return variable's dimension names
Returns an ordered list of the variable's netCDF dimension names.
Definition at line 74 of file NetCDFSimple.h.
|
inline |
Return the variable's name.
Definition at line 61 of file NetCDFSimple.h.
|
inline |
Return the netCDF variable ID for this variable.
Definition at line 88 of file NetCDFSimple.h.
|
inline |
Set an attribute
Set the floating point attribute, name
, to the values given by values
Definition at line 113 of file NetCDFSimple.h.
|
inline |
Definition at line 116 of file NetCDFSimple.h.
|
inline |
Definition at line 119 of file NetCDFSimple.h.
Definition at line 124 of file NetCDFSimple.h.