VAPoR
3.0.0
|
Data variable metadata. More...
#include <DC.h>
Public Member Functions | |
DataVar () | |
constructor for default Data variable definition More... | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< size_t > bs, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, std::vector< string > coordvars, double missing_value) | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< size_t > bs, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, std::vector< string > coordvars, double missing_value, string maskvar) | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< size_t > bs, string wname, std::vector< size_t > cratios, std::vector< bool > periodic, std::vector< string > coordvars) | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< bool > periodic, std::vector< string > coordvars, double missing_value) | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< bool > periodic, std::vector< string > coordvars, double missing_value, string maskvar) | |
DataVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< bool > periodic, std::vector< string > coordvars) | |
virtual | ~DataVar () |
std::vector< string > | GetCoordvars () const |
Access data variable's coordinate variable names. More... | |
void | SetCoordvars (std::vector< string > coordvars) |
string | GetMaskvar () const |
Access data variable's mask variable names. More... | |
void | SetMaskvar (string maskvar) |
bool | GetHasMissing () const |
Access data variable's missing data flag. More... | |
void | SetHasMissing (bool has_missing) |
double | GetMissingValue () const |
Access data variable's missing data value. More... | |
void | SetMissingValue (double missing_value) |
Public Member Functions inherited from VAPoR::DC::BaseVar | |
BaseVar () | |
BaseVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< size_t > bs, string wname, std::vector< size_t > cratios, std::vector< bool > periodic) | |
BaseVar (string name, std::vector< DC::Dimension > dimensions, string units, XType type, std::vector< bool > periodic) | |
virtual | ~BaseVar () |
string | GetName () const |
Get variable name. More... | |
void | SetName (string name) |
std::vector< DC::Dimension > | GetDimensions () const |
Access variable's dimension names. More... | |
void | SetDimensions (std::vector< DC::Dimension > dimensions) |
string | GetUnits () const |
Access variable units. More... | |
void | SetUnits (string units) |
XType | GetXType () const |
Access variable external storage type. More... | |
void | SetXType (XType type) |
std::vector< size_t > | GetBS () const |
Access variable's block size. More... | |
void | SetBS (std::vector< size_t > bs) |
string | GetWName () const |
Access variable's wavelet family name. More... | |
void | SetWName (string wname) |
std::vector< size_t > | GetCRatios () const |
Access variable's compression ratios. More... | |
void | SetCRatios (std::vector< size_t > cratios) |
std::vector< bool > | GetPeriodic () const |
Access variable bounary periodic. More... | |
void | SetPeriodic (std::vector< bool > periodic) |
std::map< string, Attribute > | GetAttributes () const |
Access variable attributes. More... | |
void | SetAttributes (std::map< string, Attribute > &atts) |
bool | IsCompressed () const |
Return true if no wavelet is defined. More... | |
bool | IsTimeVarying () const |
Return true if a time dimension is present. More... | |
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 |
|
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] | 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 |
[in] | bs | An ordered array specifying the storage blocking factor for the variable. Results are undefined if the rank of of bs does not match that of dimensions spatial dimensions. dimensions only the needed elements of bs are accessed |
[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 |
[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] | coordvars | Names of coordinate variables associated with this variables dimensions |
[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] | 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 |
[in] | bs | An ordered array specifying the storage blocking factor for the variable. Results are undefined if the rank of of bs does not match that of dimensions spatial dimensions. dimensions only the needed elements of bs are accessed |
[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 |
[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] | coordvars | Names of coordinate variables associated with this variables dimensions |
[in] | missing_value | Value used to fill masked values |
[in] | maskvar | Name of variable containing mask array. |
|
inline |
|
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] | coordvars | Names of coordinate variables associated with this variables dimensions |
[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] | coordvars | Names of coordinate variables associated 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] | coordvars | Names of coordinate variables associated with this variables dimensions |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |