VAPOR3 3.9.4
|
Data variable metadata. More...
#include <DC.h>
Public Member Functions | |
DataVar () | |
DataVar (string name, string units, XType type, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location, double missing_value) | |
DataVar (string name, string units, XType type, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location, double missing_value, string maskvar) | |
DataVar (string name, string units, XType type, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location) | |
DataVar (string name, string units, XType type, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location, double missing_value) | |
DataVar (string name, string units, XType type, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location, double missing_value, string maskvar) | |
DataVar (string name, string units, XType type, std::vector< bool > periodic, string mesh, string time_coord_var, Mesh::Location location) | |
virtual | ~DataVar () |
string | GetMeshName () const |
void | SetMeshName (string mesh) |
string | GetTimeCoordVar () const |
void | SetTimeCoordVar (string time_coord_var) |
Mesh::Location | GetSamplingLocation () const |
string | GetMaskvar () const |
Access data variable's mask variable names. | |
void | SetMaskvar (string maskvar) |
bool | GetHasMissing () const |
Access data variable's missing data flag. | |
void | SetHasMissing (bool has_missing) |
double | GetMissingValue () const |
Access data variable's missing data value. | |
void | SetMissingValue (double missing_value) |
Public Member Functions inherited from VAPoR::DC::BaseVar | |
BaseVar () | |
BaseVar (string name, string units, XType type, string wname, std::vector< size_t > cratios, std::vector< bool > periodic) | |
BaseVar (string name, string units, XType type, std::vector< bool > periodic) | |
virtual | ~BaseVar () |
string | GetName () const |
Get variable name. | |
void | SetName (string name) |
string | GetUnits () const |
Access variable units. | |
void | SetUnits (string units) |
XType | GetXType () const |
Access variable external storage type. | |
void | SetXType (XType type) |
string | GetWName () const |
Access variable's wavelet family name. | |
void | SetWName (string wname) |
std::vector< size_t > | GetCRatios () const |
Access variable's compression ratios. | |
void | SetCRatios (std::vector< size_t > cratios) |
std::vector< bool > | GetPeriodic () const |
void | SetPeriodic (std::vector< bool > periodic) |
const std::map< string, Attribute > & | GetAttributes () const |
Access variable attributes. | |
void | SetAttributes (std::map< string, Attribute > &atts) |
bool | GetAttribute (string name, Attribute &att) const |
void | SetAttribute (const Attribute &att) |
bool | IsCompressed () const |
Return true if no wavelet is defined. | |
Friends | |
VDF_API friend std::ostream & | operator<< (std::ostream &o, const DataVar &var) |
Data variable metadata.
This class defines metadata associatd with a Data variable
|
inline |
Construct Data variable definition with missing values
Elements of the variable whose value matches that specified by missing_value
are considered invalid
Constructor
[in] | name | The variable's name |
[in] | units | A string recognized by Udunits-2 specifying the unit measure for the variable. An empty string indicates that the variable is unitless. |
[in] | type | The external storage type for variable data |
[in] | wname | The wavelet family name for compressed variables |
[in] | cratios | Specifies a vector of compression factors for compressed variable definitions. If empty, or if cratios.size()==1 and cratios[0]==1, the variable is not compressed |
periodic
does not match that of dimensions
. [in] | mesh | Name of mesh upon which this variable is sampled |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
[in] | location | Location of samples on Mesh. Samples can be located at the Mesh nodes, edge centers, face centers, or volume centers. |
[in] | missing_value | Value of the missing value indicator |
|
inline |
Construct Data variable definition with a mask variable
This version of the constructor specifies the name of a variable varmask
whose contents indicate the presense or absense of invalid entries in the data variable. The contents of the mask array are treated as booleans, true values indicating valid data. The rank of of the variable may be less than or equal to that of name
. The dimensions of maskvar
must match the fastest varying dimensions of name
.
Constructor
[in] | name | The variable's name |
[in] | units | A string recognized by Udunits-2 specifying the unit measure for the variable. An empty string indicates that the variable is unitless. |
[in] | type | The external storage type for variable data |
[in] | wname | The wavelet family name for compressed variables |
[in] | cratios | Specifies a vector of compression factors for compressed variable definitions. If empty, or if cratios.size()==1 and cratios[0]==1, the variable is not compressed |
periodic
does not match that of dimensions
. [in] | mesh | Name of mesh upon which this variable is sampled |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
[in] | location | Location of samples on Mesh. Samples can be located at the Mesh nodes, edge centers, face centers, or volume centers. |
[in] | missing_value | Value used to fill masked values |
[in] | maskvar | Name of variable containing mask array. |
|
inline |
Construct Data variable definition without missing values
[in] | coord_vars | Names of coordinate variables associated with this variables dimensions |
[in] | mesh | Name of mesh upon which this variable is sampled |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
[in] | location | Location of samples on Mesh. Samples can be located at the Mesh nodes, edge centers, face centers, or volume centers. |
|
inline |
Construct Data variable definition with missing values but no compression
No compression constructor
[in] | name | The variable's name |
[in] | dimensions | An ordered vector specifying the variable's spatial and/or temporal dimensions |
[in] | units | A string recognized by Udunits-2 specifying the unit measure for the variable. An empty string indicates that the variable is unitless. |
[in] | type | The external storage type for variable data factor for the variable. |
[in] | periodic | An ordered array of booleans specifying the spatial boundary periodicity. Results are undefined if the rank of of periodic does not match that of dimensions . |
[in] | coord_vars | Names of coordinate variables associated with this variables dimensions |
[in] | mesh | Name of mesh upon which this variable is sampled |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
[in] | location | Location of samples on Mesh. Samples can be located at the Mesh nodes, edge centers, face centers, or volume centers. |
[in] | missing_value | Value of the missing value indicator |
|
inline |
Construct Data variable definition with a mask but no compression
This version of the constructor specifies the name of a variable varmask
whose contents indicate the presense or absense of invalid entries in the data variable. The contents of the mask array are treated as booleans, true values indicating valid data. The rank of of the variable may be less than or equal to that of name
. The dimensions of maskvar
must match the fastest varying dimensions of name
.
No compression constructor
[in] | name | The variable's name |
[in] | dimensions | An ordered vector specifying the variable's spatial and/or temporal dimensions |
[in] | units | A string recognized by Udunits-2 specifying the unit measure for the variable. An empty string indicates that the variable is unitless. |
[in] | type | The external storage type for variable data factor for the variable. |
[in] | periodic | An ordered array of booleans specifying the spatial boundary periodicity. Results are undefined if the rank of of periodic does not match that of dimensions . |
[in] | coord_vars | Names of coordinate variables associated |
[in] | mesh | Name of mesh upon which this variable is sampled |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
[in] | location | Location of samples on Mesh. Samples can be located at the Mesh nodes, edge centers, face centers, or volume centers. |
with this variables dimensions
[in] | missing_value | Value used to fill masked values |
[in] | maskvar | Name of variable containing mask array. |
|
inline |
Construct Data variable definition with no missing values or compression
No compression constructor
[in] | name | The variable's name |
[in] | dimensions | An ordered vector specifying the variable's spatial and/or temporal dimensions |
[in] | units | A string recognized by Udunits-2 specifying the unit measure for the variable. An empty string indicates that the variable is unitless. |
[in] | type | The external storage type for variable data factor for the variable. |
[in] | periodic | An ordered array of booleans specifying the spatial boundary periodicity. Results are undefined if the rank of of periodic does not match that of dimensions . |
[in] | coord_vars | Names of coordinate variables associated with this variables dimensions |
[in] | time_coord_var | Name of time coordinate variable. If the variable is time varying this parameter provides the name of it's time coordinate variable. If the variable is invariant over time time_coord_var should be the empty string. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |