39 #define RACK_BASE "ProductBase"
41 #include <drain/Log.h>
49 #include <drain/RegExp.h>
50 #include <drain/util/SmartMap.h>
51 #include <drain/util/TreeOrdered.h>
54 #include "data/Data.h"
55 #include "data/DataSelector.h"
56 #include "data/ODIM.h"
57 #include "data/ODIMPath.h"
58 #include "data/ProductConf.h"
102 std::string lastArguments;
107 const std::string & getLastArguments()
const{
108 return lastArguments;
130 void help(std::ostream &ostr = std::cout,
bool showDescription =
true)
const;
150 mout.
debug2(
"Checking if these are allowed" );
151 allowedEncoding.setValues(p);
153 catch (std::exception & e) {
155 mout.
warn(
" unsupported parameters in: '" , p ,
"', use: " , allowedEncoding.getKeys() );
164 void setAllowedEncoding(
const std::string & keys);
172 void completeEncoding(
ODIM & productODIM,
const std::string & targetEncoding);
183 void applyODIM(
ODIM & productODIM,
const ODIM & srcODIM,
bool applyDefaults =
false);
193 void setODIMspecials(
ODIM & productODIM);
Something which has a name, a description and possibly some parameters of varying type.
Definition: BeanLike.h:60
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & warn(const TT &... args)
Possible error, but execution can continue.
Definition: Log.h:426
Logger & debug2(const TT &... args)
Debug information.
Definition: Log.h:686
Definition: ReferenceMap.h:207
A map of Variables.
Definition: VariableMap.h:61
Tool for selecting datasets based on paths, quantities and min/max elevations.
Definition: DataSelector.h:112
static const group_t DATASET
First level group, /dataset + digit .
Definition: ODIMPath.h:103
ODIM metadata (quantity, gain, offset, undetect, nodata, date, time)
Definition: ODIM.h:79
Base class for radar data processors. Input can be in polar or Cartesian coordinates.
Definition: ProductBase.h:82
virtual ~ProductBase()
Destructor.
Definition: ProductBase.h:114
void help(std::ostream &ostr=std::cout, bool showDescription=true) const
Dumps the help of this operator.
Definition: ProductBase.cpp:62
const DataSelector & getDataSelector() const
Returns the data selector of this operator.
Definition: ProductBase.h:123
DataSelector & getDataSelector()
Returns the data selector of this operator.
Definition: ProductBase.h:127
void storeLastArguments(const std::string &p) override
Called after setParameters()
Definition: ProductBase.h:98
void setDataSelector(const DataSelector &selector)
Copies the conditions of another selector.
Definition: ProductBase.h:119
const drain::ReferenceMap & getAllowedEncoding() const
Returns a map of encoding parameters that can be changed by the user.
Definition: ProductBase.h:135
virtual void setEncodingRequest(const std::string &p)
Set encoding parameters for the result: type,gain,offset,undetect,nodata.
Definition: ProductBase.h:145
drain::ReferenceMap allowedEncoding
Defines which encoding parameters can be changed by the user from command line.
Definition: ProductBase.h:205
ProductBase(const std::string &name, const std::string &description)
Default constructor.
Definition: ProductBase.h:88
Shared properties for meteorological products and Cartesian products (composites and single-radar ima...
Definition: ProductConf.h:63
Namespace for images and image processing tools.
Definition: AccumulationArray.cpp:45
Definition: DataSelector.cpp:1277
Definition: DataSelector.cpp:44