Go to the documentation of this file.
41 #ifndef GNSSTK_SATELLITE_PASS_INCLUDE
42 #define GNSSTK_SATELLITE_PASS_INCLUDE
49 #include "gnsstk_export.h"
120 data = std::vector<double>(n, 0.0);
121 lli = std::vector<unsigned short>(n, 0);
122 ssi = std::vector<unsigned short>(n, 0);
136 lli.resize(right.
lli.size());
137 ssi.resize(right.
ssi.size());
139 for (i = 0; i < right.
data.size(); i++)
141 for (i = 0; i < right.
lli.size(); i++)
143 for (i = 0; i < right.
ssi.size(); i++)
191 std::vector<std::string> obstypes);
246 std::vector<std::string>& obstypes,
247 double dt, std::vector<SatPass>& SPList,
248 std::vector<RinexSatID> exSats,
249 bool lenient,
Epoch beginTime,
276 std::vector<std::string> obstypes);
300 int addData(
const Epoch& tt, std::vector<std::string>& obstypes,
301 std::vector<double>&
data);
318 int addData(
const Epoch& tt,
const std::vector<std::string>& obstypes,
319 const std::vector<double>&
data,
320 const std::vector<unsigned short>&
lli,
321 const std::vector<unsigned short>&
ssi,
357 double&
data(
unsigned int i,
const std::string& type);
376 unsigned short&
LLI(
unsigned int i,
const std::string& type);
386 unsigned short&
SSI(
unsigned int i,
const std::string& type);
425 void setFlag(
unsigned int i,
unsigned short flag);
435 void setUserFlag(
unsigned int i,
unsigned int inflag);
451 std::vector<std::string> v;
463 unsigned short getFlag(
unsigned int i)
const;
486 for (
int j = 0; j <
spdvector.size(); j++)
497 for (
int j =
spdvector.size() - 1; j >= 0; j--)
536 unsigned int getCount(
unsigned int i)
const;
547 double data(
unsigned int i,
const std::string& type1,
const std::string& type2)
const;
558 unsigned short LLI(
unsigned int i,
const std::string& type1,
const std::string& type2);
569 unsigned short SSI(
unsigned int i,
const std::string& type1,
const std::string& type2);
584 std::vector<std::string> ots;
617 for (
int i = 0; i <
spdvector.size(); i++)
634 std::map<std::string, std::string>::const_iterator it = subst.begin();
635 std::map<unsigned int, std::string>::iterator jt;
636 while (it != subst.end())
645 std::map<std::string, unsigned int>::value_type(it->second, i));
650 if (jt->second != it->first)
657 std::map<unsigned int, std::string>::value_type(i,
781 void smooth(
bool smoothPR,
bool smoothPH, std::string& msg,
808 void smoothSF(
bool smoothPR,
bool smoothPH, std::string& msg,
809 const int freq,
double wl);
821 "%04Y/%02m/%02d %02H:%02M:%06.3f = %04F %w %10.3g")
823 std::ostringstream os;
824 os << msg <<
" " <<
sat <<
" N " << std::setw(4) <<
size() <<
" good "
825 << std::setw(4) <<
ngood <<
" times "
829 for (
int i = 0; i < ots.size(); i++)
839 void dump(std::ostream& os,
const std::string& msg1,
840 const std::string& msg2 = std::string());
854 static const unsigned short BAD;
862 static const unsigned short OK;
869 static const unsigned short LL1;
876 static const unsigned short LL2;
883 static const unsigned short LL3;
924 #endif // GNSSTK_SATELLITE_PASS_INCLUDE
void decimate(const int N, Epoch refTime=CommonTime::BEGINNING_OF_TIME)
std::map< unsigned int, std::string > labelForIndex
int index(const Epoch &tt) const
void clear()
clear the data (but not the obs types) from the arrays
Epoch getLastGoodTime() const
int addData(const Epoch &tt, std::vector< std::string > &obstypes, std::vector< double > &data)
unsigned int ndt
time 'count' : time of data = FirstTime + ndt * dt + offset
double & data(unsigned int i, const std::string &type)
static GNSSTK_EXPORT double maxGap
size of maximum time gap, in seconds, allowed within SatPass data.
unsigned int ngood
number of timetags with good data in the data arrays.
std::map< std::string, unsigned int > indexForLabel
bool operator<(const SatPass &right) const
'less than' is required for sort() and map<SatPass,...>.find(SatPass)
double toffset
offset of time from integer number * dt since FirstTime.
Epoch getFirstTime() const
int countForTime(const Epoch &tt) const
std::string toString(std::string msg="", std::string fmt="%04Y/%02m/%02d %02H:%02M:%06.3f = %04F %w %10.3g")
static const GNSSTK_EXPORT unsigned short LL3
static const GNSSTK_EXPORT unsigned short BAD
flag indicating bad data
void setOutputFormat(std::string fmt, int round=3)
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
static const GNSSTK_EXPORT unsigned short OK
std::string getOutputFormat()
SatPass & operator=(const SatPass &right)
void dump(std::ostream &os, const std::string &msg1, const std::string &msg2=std::string())
double dt
Nominal time spacing of the data; determined on input or by decimate()
const double L2_WAVELENGTH_GPS
GPS L2 carrier wavelength in meters.
void smooth(bool smoothPR, bool smoothPH, std::string &msg, const double &wl1=L1_WAVELENGTH_GPS, const double &wl2=L2_WAVELENGTH_GPS)
int pushBack(const Epoch tt, SatPassData &spd)
unsigned short & LLI(unsigned int i, const std::string &type)
static const GNSSTK_EXPORT CommonTime END_OF_TIME
latest representable CommonTime
std::vector< std::string > getObsTypes()
SatPassData & operator=(const SatPassData &right)
struct SatPassData getData(unsigned int i) const
std::vector< unsigned short > lli
Epoch getFirstGoodTime() const
void smoothSF(bool smoothPR, bool smoothPH, std::string &msg, const int freq, double wl)
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
unsigned short getFlag(unsigned int i) const
int & status()
Access the status; l-value may be assigned SP.status() = 1;.
static GNSSTK_EXPORT std::string outFormat
static double setMaxGap(double gap)
void renameObstypes(std::map< std::string, std::string > &subst)
friend std::ostream & operator<<(std::ostream &os, SatPass &sp)
static const GNSSTK_EXPORT unsigned short LL2
bool hasType(std::string type) const
bool getGLOchannel(int &n, std::string &msg)
bool hasCommonView(const SatPass &that, double *pdelt=NULL, Epoch *pttb=NULL, Epoch *ptte=NULL)
unsigned int getUserFlag(unsigned int i) const
std::vector< SatPassData > spdvector
ALL data in the pass, stored in SatPassData objects, in time order.
void setUserFlag(unsigned int i, unsigned int inflag)
std::string printTime(const CommonTime &t, const std::string &fmt)
double & timeoffset(unsigned int i)
int trimAfter(const Epoch ttag)
std::vector< unsigned short > ssi
Epoch getLastTime() const
static GNSSTK_EXPORT std::string longfmt
SatPass(const RinexSatID &sat, double dt)
static const GNSSTK_EXPORT unsigned short LL1
std::vector< double > data
data for one epoch of RINEX data
bool includesTime(const Epoch &tt) const
RinexSatID sat
Satellite identifier for this data.
std::vector< std::string > getObstypes()
Access the obstypes (as strings)
bool split(int N, SatPass &newSP)
Epoch time(unsigned int i) const
void init(const RinexSatID &sat, double dt, std::vector< std::string > obstypes)
called by constructors to initialize - see doc for them.
unsigned short & SSI(unsigned int i, const std::string &type)
const double L1_WAVELENGTH_GPS
GPS L1 carrier wavelength in meters.
RinexSatID getSat() const
void setFlag(unsigned int i, unsigned short flag)
int getStatus() const
Access the status as r-value only.
bool hasOverlap(const SatPass &that, double *pdelt=NULL, Epoch *pttb=NULL, Epoch *ptte=NULL)
unsigned int size() const
friend int SatPassFromRinexFiles(std::vector< std::string > &filenames, std::vector< std::string > &obstypes, double dt, std::vector< SatPass > &SPList, std::vector< RinexSatID > exSats, bool lenient, Epoch beginTime, Epoch endTime)
static GNSSTK_EXPORT int outRound
SatPassData(unsigned short n=4)
unsigned int getCount(unsigned int i) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41