-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split up observation and measurement routines; added obsTimeMJDTDB co…
…lumn to df
- Loading branch information
1 parent
597d6c8
commit 1343658
Showing
9 changed files
with
661 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#ifndef OBSERVE_H | ||
#define OBSERVE_H | ||
|
||
#include "force.h" | ||
|
||
/** | ||
* @brief Compute the correction to the apparent state of the body due to the | ||
* gravitational light bending. | ||
*/ | ||
void get_glb_correction(PropSimulation *propSim, const real &tInterpGeom, | ||
std::vector<real> &xInterpApparentBary); | ||
|
||
/** | ||
* @brief Get the relevant measurement (optical/radar) for a given measurement time. | ||
*/ | ||
void get_measurement(PropSimulation *propSim, const size_t &interpIdx, | ||
const real &t, const real &dt, const real tInterpGeom, | ||
const std::vector<real> &xInterpGeom, | ||
const std::vector<real> &xInterpApparent); | ||
|
||
/** | ||
* @brief Get the optical measurement and partials. | ||
*/ | ||
void get_optical_measurement(PropSimulation *propSim, | ||
const std::vector<real> &xInterpApparent, | ||
std::vector<real> &opticalMeasurement, | ||
std::vector<real> &opticalPartials); | ||
|
||
/** | ||
* @brief Get the radar measurement and partials. | ||
*/ | ||
void get_radar_measurement(PropSimulation *propSim, const size_t &interpIdx, | ||
const real &t, const real &dt, | ||
const real tInterpGeom, | ||
const std::vector<real> &xInterpGeom, | ||
std::vector<real> &radarMeasurement, | ||
std::vector<real> &radarPartials); | ||
|
||
/** | ||
* @brief Get the radar delay measurement and partials. | ||
*/ | ||
void get_delay_measurement(PropSimulation *propSim, const size_t &interpIdx, | ||
const real &t, const real &dt, const size_t &i, | ||
const real tInterpGeom, | ||
const std::vector<real> &xInterpGeom, | ||
const real &receiveTimeTDB, real &transmitTimeTDB, | ||
std::vector<real> &xObsBaryRcv, | ||
std::vector<real> &xTrgtBaryBounce, | ||
std::vector<real> &xObsBaryTx, real &delayMeasurement, | ||
std::vector<real> &delayPartials); | ||
|
||
/** | ||
* @brief Get the relativistic delay measurement correction. | ||
*/ | ||
void get_delta_delay_relativistic(PropSimulation *propSim, | ||
const real &tForSpice, | ||
const std::vector<real> &targetState, | ||
real &deltaDelayRelativistic); | ||
|
||
/** | ||
* @brief Get the Doppler measurement and partials. | ||
*/ | ||
void get_doppler_measurement(PropSimulation *propSim, const size_t &i, | ||
const real receiveTimeTDB, | ||
const real transmitTimeTDB, | ||
const std::vector<real> xObsBaryRcv, | ||
const std::vector<real> xTrgtBaryBounce, | ||
const std::vector<real> xObsBaryTx, | ||
const real transmitFreq, real &dopplerMeasurement, | ||
std::vector<real> &dopplerPartials); | ||
|
||
/** | ||
* @brief Interpolate the integrator state for one evaluation time. | ||
*/ | ||
void evaluate_one_interpolation( | ||
const PropSimulation *propSim, const real &t, const real &dt, | ||
const real &tInterp, | ||
std::vector<real> &xInterp); // defined in interpolate.cpp | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ approach.cpp | |
elements.cpp | ||
force.cpp | ||
gr15.cpp | ||
observe.cpp | ||
interpolate.cpp | ||
parallel.cpp | ||
pck.cpp | ||
|
Oops, something went wrong.