1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
/***********************************************/
/**
* @file gnssProcessingStepWriteResults.h
*
* @brief GNSS processing step: WriteResults.
*
* @author Torsten Mayer-Guerr
* @date 2021-09-05
*
*/
/***********************************************/
#ifndef __GROOPS_GNSSPROCESSINGSTEPWRITERESULTS__
#define __GROOPS_GNSSPROCESSINGSTEPWRITERESULTS__
// Latex documentation
#ifdef DOCSTRING_GnssProcessingStep
static const char *docstringGnssProcessingStepWriteResults = R"(
\subsection{WriteResults}\label{gnssProcessingStepType:writeResults}
In this step all \config{outputfiles} defined in \configClass{parametrizations}{gnssParametrizationType}
are written. It considers the settings of
\configClass{processingStep:selectParametrizations}{gnssProcessingStepType:selectParametrizations},
\configClass{processingStep:selectEpochs}{gnssProcessingStepType:selectEpochs}, and
\configClass{processingStep:selectReceivers}{gnssProcessingStepType:selectReceivers}.
It is usually the last processing step, but can also be used at other points in the
processing in combination with \config{suffix} to write intermediate results, for example
before \configClass{gnssProcessingStep:resolveAmbiguities}{gnssProcessingStepType:resolveAmbiguities} to
output the float solution.
)";
#endif
/***********************************************/
#include "config/config.h"
#include "gnss/gnssProcessingStep/gnssProcessingStep.h"
/***** CLASS ***********************************/
/** @brief GNSS processing step: WriteResults.
* @ingroup gnssProcessingStepGroup
* @see GnssProcessingStep */
class GnssProcessingStepWriteResults : public GnssProcessingStepBase
{
std::string suffix;
public:
GnssProcessingStepWriteResults(Config &config);
void process(GnssProcessingStep::State &state) override;
};
/***********************************************/
inline GnssProcessingStepWriteResults::GnssProcessingStepWriteResults(Config &config)
{
readConfig(config, "suffix", suffix, Config::OPTIONAL, "", "appended to every output file name (e.g. orbit.G01.suffix.dat)");
}
/***********************************************/
inline void GnssProcessingStepWriteResults::process(GnssProcessingStep::State &state)
{
try
{
logStatus<<"=== write results =========================================="<<Log::endl;
state.gnss->writeResults(state.normalEquationInfo, !suffix.empty() ? "."+suffix : "");
}
catch(std::exception &e)
{
GROOPS_RETHROW(e)
}
}
/***********************************************/
#endif
|