File: observationMiscSst.cpp

package info (click to toggle)
groops 0%2Bgit20240830%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 11,052 kB
  • sloc: cpp: 134,939; fortran: 1,569; makefile: 20
file content (80 lines) | stat: -rw-r--r-- 2,235 bytes parent folder | download | duplicates (2)
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
77
78
79
80
/***********************************************/
/**
* @file observationMiscSst.cpp
*
* @brief Satellite to satellite tracking.
*
* @author Torsten Mayer-Guerr
* @date 2015-06-02
*
*/
/***********************************************/

#include "base/import.h"
#include "files/fileInstrument.h"
#include "misc/observation/covariancePod.h"
#include "misc/observation/observationMiscSstIntegral.h"
#include "misc/observation/observationMiscSstVariational.h"
#include "misc/observation/observationMiscSst.h"

/***** FUNCTIONS *******************************/

template<> Bool readConfig(Config &config, const std::string &name, ObservationMiscSstPtr &observation, Config::Appearance mustSet, const std::string &/*defaultValue*/, const std::string &/*annotation*/)
{
  try
  {
//     if(isCreateSchema(config))
//     {
//       config.xselement(name, ObservationMiscSst::typeName(), mustSet, Config::ONCE, "", annotation);
//       return FALSE;
//     }

    if(!hasName(config, name, mustSet))
      return FALSE;
    observation = ObservationMiscSst::create(config, name);
    return TRUE;
  }
  catch(std::exception &e)
  {
    GROOPS_RETHROW(e)
  }
}

/***********************************************/

ObservationMiscSstPtr ObservationMiscSst::create(Config &config, const std::string &name)
{
  try
  {
    ObservationMiscSstPtr observation;
    std::string type;
    readConfigChoice(config, name, type, Config::MUSTSET, "", "obervation equations (Sst)");
    if(readConfigChoiceElement(config, "sstIntegral",    type, "integral approach"))
      observation = ObservationMiscSstPtr(new ObservationMiscSstIntegral(config));
    if(readConfigChoiceElement(config, "sstVariational", type, "variational equations"))
      observation = ObservationMiscSstPtr(new ObservationMiscSstVariational(config));
    endChoice(config);

    return observation;
  }
  catch(std::exception &e)
  {
    GROOPS_RETHROW(e)
  }
}

/***********************************************/

void ObservationMiscSst::observation(UInt /*arcNo*/, Matrix &/*l*/, Matrix &/*A*/, Matrix &/*B*/)
{
  try
  {
    throw(Exception("Must not be called"));
  }
  catch(std::exception &e)
  {
    GROOPS_RETHROW(e)
  }
}

/***********************************************/