DVS Dataset Metadata
The DVS API supports writing dataset metadata via the dvs_add_metadata() or DVS::IClient::add_metadata() methods for the C/C++ API (similarly named methods for the Python API). This must be done during the initialization step betweenbegin_init and end_init.
Supported EnSight Dataset Metadata
The EnSight DVS reader reserves specific metadata key/value pairs for specific operations within EnSight. Below is a list of currently supported tags.EnSight DVS Element Filtering
EnSight will automatically filter out elements based on a scalar variable value if the metadata tags are set on a dataset. To do this you first set_DVS::REMOVE_ELEMENT_VAR to the name of the variable definition that will be used and then set _DVS::REMOVE_ELEMENT_FILTER to the filtering equation. The filtering equation follows the standard format for Query Stanzas. There are some limitations however. Element filtering only works with scalar variables and the object/attribute must be var.value. It also only supports the operators gt (>), lt (<), eq (==), and neq (!=). Lastly it only works for a max of 2 chained query stanzas. A few examples should help this make sense.
Example 1
A user would like to filter out elements if the value ofmy_filter_var is equal to 1.1 or 1.2.
Example 2
A user would like to filter out elements based on the variablepressure if they are above the threshold of 2.0 and below the threshold of 15.4.
Example 3
A user would like to filter out elements based on the variabledelete_element if the value is not equal to 1.0.