![]() |
|
Select parts of hierarchical data using path, quantity, elevation angle and PRF mode as selection criteria. More...


Public Member Functions | |
| CmdSelect (const CmdSelect &cmd) | |
| virtual void | exec () const override |
| Run the command with current parameter values. | |
| virtual void | parametersToStreamFOO (std::ostream &ostr, const std::string &indent=" ") const |
| virtual void | parameterKeysToStreamFOO (std::ostream &ostr) const |
Public Member Functions inherited from BasicCommand | |
| BasicCommand (const std::string &name, const std::string &description) | |
| Constructor. | |
| BasicCommand (const BasicCommand &cmd) | |
| Copy constructor. | |
Public Member Functions inherited from BeanCommand< BeanLike > | |
| BeanCommand (const std::string &name, const std::string &description) | |
| Constructor. | |
| BeanCommand (const BeanCommand &cmd) | |
| Copy constructor. | |
| BeanCommand (BeanLike &b) | |
| Constructor wrapping an existing bean. | |
| virtual const bean_t & | getBean () const |
| Returns the wrapped bean. | |
| virtual bean_t & | getBean () |
| Returns the wrapped bean. | |
| const std::string & | getName () const final |
| Returns the command name. | |
| const std::string & | getDescription () const final |
| Returns the command description. | |
| virtual const drain::ReferenceMap & | getParameters () const |
| Returns the command parameters. | |
Public Member Functions inherited from Command | |
| Command (const Command &cmd) | |
| Copy constructor. | |
| virtual void | setParameters (const std::string &args) final |
| template<class T > | |
| void | setParameters (const T &args) |
| Sets parameters from argument. | |
| template<class T > | |
| void | setParameter (const std::string &key, const T &value) |
| Set a value to a single parameter. | |
| bool | hasParameters () const |
| Returns true if this command has parameters. | |
| virtual void | run (const std::string ¶ms="") final |
| Description of result, comparable to a return type of a function. ? | |
| virtual void | update () |
| Optional method for preparing command to execution. | |
| Command & | addSection (int i) |
| Marks this command as belonging to section i. | |
| const std::string & | getLastParameters () const |
| Returns the parameters from the last execution. | |
| virtual void | getRelatedCommands (std::ostream &ostr=std::cout) const |
| Writes related command names to stream. | |
| void | linkRelated (const std::string &cmdKey) const |
| Add related command(s), to appear in help after "See-also:" phrase. | |
| virtual void | parametersToStream (std::ostream &ostr, const std::string &indent=" ") const |
| By default, the "true", technical parameters. | |
| virtual void | parameterKeysToStream (std::ostream &ostr) const |
| Writes parameter keys to stream. | |
| void | parameterKeysToStream (std::ostream &ostr, const std::list< std::string > &list, char sep=',') const |
| Writes parameter keys to stream. | |
Public Member Functions inherited from Contextual | |
| Contextual () | |
| Sets internal contextPtr to NULL. | |
| Contextual (const Contextual &src) | |
| Copies base context (even null) of the source. Notice that the actual instance may be of derived class. | |
| Contextual (Context &ctx) | |
| Copies internal contextPtr. | |
| template<class C > | |
| void | setContext () |
| Sets internal contextPtr to the static source. | |
| void | setExternalContext (Context &ctx) |
| Sets internal contextPtr to outside target. | |
| bool | contextIsSet () const |
| True, if contextPtr has been set. | |
| template<class T = Context> | |
| T & | getContext () const |
| If context has been set, returns it through a cast to base class Context. | |
Additional Inherited Members | |
Public Types inherited from BeanCommand< BeanLike > | |
| typedef BeanLike | bean_t |
| The bean type. | |
Public Types inherited from Command | |
| typedef int | cmd_section_type |
Static Public Member Functions inherited from Contextual | |
| template<class T > | |
| static Cloner< Context, T > & | getCloner () |
| Returns the object cloner. | |
Public Attributes inherited from BeanCommand< BeanLike > | |
| BeanLike | bean |
| The wrapped bean instance. | |
Public Attributes inherited from Command | |
| cmd_section_type | section = 1 |
| Section bitmask; zero means hidden from help. | |
Static Public Attributes inherited from Command | |
| static const SprinterLayout | cmdArgLayout = {",", "?", "=", ""} |
| Layout flag for command argument handling. | |
Protected Member Functions inherited from CmdBaseSelective | |
| CmdBaseSelective (const std::string &name, const std::string &description) | |
| CmdBaseSelective (const CmdBaseSelective &cmd) | |
Protected Member Functions inherited from BeanCommand< BeanLike > | |
| virtual drain::ReferenceMap & | getParameters () final |
Protected Attributes inherited from CmdBaseSelective | |
| DataSelector | mySelector |
Protected Attributes inherited from Command | |
| std::set< std::string > | relatedCommands |
| Set of related command keys shown in help. | |
| std::string | lastParameters |
| String record of the last argument(s) passed. | |
Protected Attributes inherited from Contextual | |
| Context * | contextPtr |
| Pointer to the current context; nullptr if not set. | |
Select parts of hierarchical data using path, quantity, elevation angle and PRF mode as selection criteria.
This command determines the data to be applied in subsequent input read or product generation commands.
In Rack, many operations implictly select a subset of available data instead of using it all. For example, in computing a Pseudo CAPPI image, DBZH data from single-PRF sweeps is used by default.
Synopsis
Remarks on the options:
path argument defines a path segment to be matched, with desired index ranges (example: dataset2:4/data3:8 )path argument, a leading slash fixes the matching to the root (example: /dataset:/data: ), otherwise the tail part is matchedquantity argument accepts a list of strings separated by semicolon ':'quantity argument list can be a literal string like DBZH or a regular experession like ^DBZ[HV]?$See examples further below.
This option is useful in selecting data for:
In addition, these explicit data modification options use the same syntax
--keep - prune internal data structure such that only the selected part remains (what , where and how groups are preserved automatically).--delete - remove parts of internal data structure – single attributes or large subtrees.The following command lines illustrate usage of --select in product generation and image output.
The following examples are less realistic than those above, but are used in unit testing of the program code. ( You may wish to change output file extension from .txt to .h5 ).
Run the command with current parameter values.
Reimplemented from Command.
1.9.8