NetCDFSimple API interface.
More...
#include <NetCDFSimple.h>
|
| | Variable () |
| |
| | Variable (string varname, std::vector< string > dimnames, int type) |
| |
| string | GetName () const |
| | Return the variable's name.
|
| |
| std::vector< string > | GetAttNames () const |
| |
| std::vector< string > | GetDimNames () const |
| |
| void | SetDimNames (const std::vector< string > dimnames) |
| |
| int | GetAttType (string name) const |
| |
| int | GetXType () const |
| |
| 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) |
| |
NetCDFSimple API interface.
A NetCDFSimple data variable
Definition at line 43 of file NetCDFSimple.h.
◆ Variable() [1/2]
| VAPoR::NetCDFSimple::Variable::Variable |
( |
| ) |
|
◆ Variable() [2/2]
| VAPoR::NetCDFSimple::Variable::Variable |
( |
string |
varname, |
|
|
std::vector< string > |
dimnames, |
|
|
int |
type |
|
) |
| |
Constructor for NetCDFSimple::Variable class
- Parameters
-
| [in] | varname | Name of the netCDF variable |
| [in] | dimnames | A vector dimension names, ordered from slowest-varying to fastest. |
| [in] | type | The netCDF external data type for the variable |
◆ GetAtt() [1/3]
| 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.
- Note
- Attributes of type int are cast to float
-
All attributes with floating point representation of any precision are returned by this method. Attributes that do not have floating point internal representations can not be returned
- Parameters
-
| [in] | name | Name of the attribute |
| [out] | values | A vector of attribute values |
◆ GetAtt() [2/3]
| void VAPoR::NetCDFSimple::Variable::GetAtt |
( |
string |
name, |
|
|
std::vector< long > & |
values |
|
) |
| const |
◆ GetAtt() [3/3]
| void VAPoR::NetCDFSimple::Variable::GetAtt |
( |
string |
name, |
|
|
string & |
values |
|
) |
| const |
◆ GetAttNames()
| 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
◆ GetAttType()
| 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.
- Parameters
-
| [in] | name | Name of the attribute |
- Return values
-
| If | an attribute named by name does not exist, a negative value is returned. |
◆ GetDimNames()
| std::vector< string > VAPoR::NetCDFSimple::Variable::GetDimNames |
( |
| ) |
const |
|
inline |
Return variable's dimension names
Returns an ordered list of the variable's netCDF dimension names.
Definition at line 70 of file NetCDFSimple.h.
◆ GetName()
| string VAPoR::NetCDFSimple::Variable::GetName |
( |
| ) |
const |
|
inline |
◆ GetXType()
| int VAPoR::NetCDFSimple::Variable::GetXType |
( |
| ) |
const |
|
inline |
Return the netCDF external data type for the variable
Definition at line 85 of file NetCDFSimple.h.
◆ SetAtt() [1/3]
| void VAPoR::NetCDFSimple::Variable::SetAtt |
( |
string |
name, |
|
|
const std::vector< double > & |
values |
|
) |
| |
|
inline |
Set an attribute
Set the floating point attribute, name, to the values given by values
Definition at line 110 of file NetCDFSimple.h.
◆ SetAtt() [2/3]
| void VAPoR::NetCDFSimple::Variable::SetAtt |
( |
string |
name, |
|
|
const std::vector< long > & |
values |
|
) |
| |
|
inline |
◆ SetAtt() [3/3]
| void VAPoR::NetCDFSimple::Variable::SetAtt |
( |
string |
name, |
|
|
const string & |
values |
|
) |
| |
|
inline |
◆ SetDimNames()
| void VAPoR::NetCDFSimple::Variable::SetDimNames |
( |
const std::vector< string > |
dimnames | ) |
|
|
inline |
◆ operator<<
| VDF_API friend std::ostream & operator<< |
( |
std::ostream & |
o, |
|
|
const Variable & |
var |
|
) |
| |
|
friend |
◆ operator==
The documentation for this class was generated from the following file: