![]() |
|
Tool for selecting datasets based on paths, quantities and min/max elevations. More...
#include <DataTools.h>
Public Types | |
| typedef std::map< std::string, ODIMPathElem > | quantity_map |
Static Public Member Functions | |
| static TreeFileInfo & | getTreeFileInfo () |
| template<class M > | |
| static void | getAttributes (const Hi5Tree &src, const Hi5Tree::path_t &path, M &attributes, bool updateOnly=false) |
| Traverses upward in hierachy to find the value of the given PolarODIM where, what, or how attribute. | |
| static void | getQuantityMap (const Hi5Tree &srcDataset, ODIMPathElemMap &m) |
| static void | updateInternalAttributes (Hi5Tree &src) |
Copies values of what , where and how attributes to internal attributes down to data[n] groups. | |
| static void | updateInternalAttributes (const Hi5Tree &) |
This const version does nothing, but is needed for Data:: #supdateTree3() | |
| static void | updateCoordinatePolicy (Hi5Tree &src, const drain::image::CoordinatePolicy &policy=drain::image::CoordinatePolicy(drain::image::EdgePolicy::LIMIT)) |
| static int | getMaxRange (const Hi5Tree &src, bool projected=true) |
| static void | superDump (const Hi5Tree &src, std::ostream &ostr=std::cerr) |
| Tree output designed above all for debugging. | |
| static void | adjustWhatObject (Hi5Tree &src) |
| If polar data contains single or several elevations, mark SCAN or PVOL, respectively. | |
| static bool | treeToStream (const Hi5Tree::node_data_t &data, std::ostream &ostr) |
| (Un)mark groups along a path for deletion by Hi5Base::deleteExcluded() | |
| static drain::VariableMap & | getAttributeStyles () |
| List of most important ODIM attributes (with style suggestion). | |
Static Protected Member Functions | |
| static void | updateInternalAttributes (Hi5Tree &src, const drain::FlexVariableMap &attributes) |
| Removes the children of the tree if Node::exclude is set. | |
Tool for selecting datasets based on paths, quantities and min/max elevations.
Applies drain::RegExp in matching.
|
static |
Traverses upward in hierachy to find the value of the given PolarODIM where, what, or how attribute.
| src | - structure to be searched |
| path | - starting path, to be continued upwards Collects PolarODIM /where, /what and /how attributes recursively along the path and stores them in a std::map<std::string,T> (e.g. VariableMap or ReferenceMap, ODIM). Does not change attributes of src. |
Future option: limit elevation angle range.
(Un)mark groups along a path for deletion by Hi5Base::deleteExcluded()
Tree attribute formatter Applied by drain::TreeUtils::dump(). Example:
This const version does nothing, but is needed for Data:: #supdateTree3()
|
static |
Copies values of what , where and how attributes to internal attributes down to data[n] groups.
Traverses the data tree, updates the data (image) attributes along the path down to data[n] level; the lowest groups containing data arrays, that is data groups, are not updated.
Note that also the coordinate policy is updated, because the corresponding variable is linked by ImageFrame::init().
Typically, this is called on the root.
|
staticprotected |
Removes the children of the tree if Node::exclude is set.
\return - true if children were removed
static bool removeIfExcluded_REMOVE(Hi5Tree & dst); Does nothing
\return - false (always, as nothing will be removed)
static bool removeIfExcluded(const Hi5Tree & src){ return false; }; Copies values of what , where and how attributes to internal attributes down to data[n] groups. Traverses the data tree, updates the data (image) attributes along the path down to data[n] level; the lowest groups containing data arrays, that is data groups, are not updated.
Note that also the coordinate policy is updated, because the corresponding variable is linked by ImageFrame::init().
Typically, this is called on the root.
Write to "hidden" variables of this node (src).
Step 1: collect local values of /what, /where, and /how groups, overwriting attributes initialised to parent values.
1.9.8