Index: trunk/BNC/src/PPP/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP/pppClient.cpp	(revision 11008)
+++ trunk/BNC/src/PPP/pppClient.cpp	(revision 11009)
@@ -112,4 +112,10 @@
 void t_pppClient::putTec(const t_vTec* vTec) {
   _obsPool->putTec(new t_vTec(*vTec));
+}
+
+//
+//////////////////////////////////////////////////////////////////////////////
+void t_pppClient::putMetaData(const t_metaData* metaData) {
+  _obsPool->putMetaData(new t_metaData(*metaData));
 }
 
@@ -457,5 +463,39 @@
   // Tides
   // -----
-  station->setTideDsplEarth(_tides->earth(time, station->xyzApr()));
+  // SSR Metadata (model correction type 3 = solid earth tides) tells us
+  // whether - and with which model - the correction stream's generation
+  // system already accounted for solid earth tides. To stay consistent with
+  // the orbit/clock corrections, mirror that choice here: skip our own
+  // correction if the provider applied none, apply our default model if the
+  // provider used its own default, and fall back to our default (with a
+  // warning) if the provider used some other, unsupported model - we have no
+  // way to reproduce an unknown model exactly. Absent any Metadata message
+  // (e.g. RTNET or older streams), keep today's unconditional behavior.
+  bool applyEarthTide = true;
+  const t_metaData* metaData = _obsPool->metaData();
+  if (metaData) {
+    for (unsigned ii = 0; ii < metaData->_entries.size(); ii++) {
+      const t_metaDataEntry& entry = metaData->_entries[ii];
+      if (entry._typeIndicator == 3) { // solid earth tides
+        if (!entry._applicationIndicator) {
+          applyEarthTide = false;
+        }
+        else if (entry._nonDefaultIndicator) {
+          LOG << "WARNING: SSR Metadata signals a non-default solid earth "
+              << "tide model (identifier " << entry._nonDefaultIdentifier
+              << "); applying BNC's default model anyway, results may be "
+              << "inconsistent" << endl;
+        }
+        break;
+      }
+    }
+  }
+  if (applyEarthTide) {
+    station->setTideDsplEarth(_tides->earth(time, station->xyzApr()));
+  }
+  else {
+    ColumnVector tideDsplEarth(3); tideDsplEarth = 0.0;
+    station->setTideDsplEarth(tideDsplEarth);
+  }
   station->setTideDsplOcean(_tides->ocean(time, station->xyzApr(), station->name()));
 
Index: trunk/BNC/src/PPP/pppClient.h
===================================================================
--- trunk/BNC/src/PPP/pppClient.h	(revision 11008)
+++ trunk/BNC/src/PPP/pppClient.h	(revision 11009)
@@ -28,4 +28,5 @@
   void putEphemeris(const t_eph* eph);
   void putTec(const t_vTec* vTec);
+  void putMetaData(const t_metaData* metaData);
   void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
   void putClkCorrections(const std::vector<t_clkCorr*>& corr);
Index: trunk/BNC/src/PPP/pppObsPool.cpp
===================================================================
--- trunk/BNC/src/PPP/pppObsPool.cpp	(revision 11008)
+++ trunk/BNC/src/PPP/pppObsPool.cpp	(revision 11009)
@@ -52,4 +52,5 @@
   }
   _vTec = 0;
+  _metaData = 0;
 }
 
@@ -64,4 +65,5 @@
   }
   delete _vTec;
+  delete _metaData;
   while (_epochs.size() > 0) {
     delete _epochs.front();
@@ -144,4 +146,12 @@
 //
 /////////////////////////////////////////////////////////////////////////////
+void t_pppObsPool::putMetaData(t_metaData* metaData) {
+  delete _metaData;
+  _metaData = new t_metaData(*metaData);
+  delete metaData;
+}
+
+//
+/////////////////////////////////////////////////////////////////////////////
 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
                             bool pseudoObsIono) {
Index: trunk/BNC/src/PPP/pppObsPool.h
===================================================================
--- trunk/BNC/src/PPP/pppObsPool.h	(revision 11008)
+++ trunk/BNC/src/PPP/pppObsPool.h	(revision 11009)
@@ -33,4 +33,5 @@
   void putPhaseBias(t_satPhaseBias* satPhaseBias);
   void putTec(t_vTec* _vTec);
+  void putMetaData(t_metaData* metaData);
   void clearCodeBiases(char sys);
   void clearPhaseBiases(char sys);
@@ -46,4 +47,5 @@
   }
   const t_vTec* vTec() const {return _vTec;}
+  const t_metaData* metaData() const {return _metaData;}
 
   t_epoch* lastEpoch() {
@@ -60,4 +62,5 @@
   t_satPhaseBias*          _satPhaseBiases[t_prn::MAXPRN+1];
   t_vTec*                  _vTec;
+  t_metaData*              _metaData;
   std::deque<t_epoch*>     _epochs;
 };
Index: trunk/BNC/src/pppRun.cpp
===================================================================
--- trunk/BNC/src/pppRun.cpp	(revision 11008)
+++ trunk/BNC/src/pppRun.cpp	(revision 11009)
@@ -104,4 +104,7 @@
     connect(BNC_CORE, SIGNAL(newTec(t_vTec)),
             this, SLOT(slotNewTec(t_vTec)),conType);
+
+    connect(BNC_CORE, SIGNAL(newMetaData(t_metaData)),
+            this, SLOT(slotNewMetaData(t_metaData)),conType);
 
     connect(BNC_CORE, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
@@ -467,4 +470,19 @@
 //
 ////////////////////////////////////////////////////////////////////////////
+void t_pppRun::slotNewMetaData(t_metaData metaData) {
+  if (metaData._entries.size() == 0) {
+    return;
+  }
+
+  if (_opt->_realTime) {
+    if (_opt->_corrMount.empty() || _opt->_corrMount != metaData._staID) {
+      return;
+    }
+  }
+  _pppClient->putMetaData(&metaData);
+}
+
+//
+////////////////////////////////////////////////////////////////////////////
 void t_pppRun::slotNewOrbCorrections(QList<t_orbCorr> orbCorr) {
   if (orbCorr.size() == 0) {
@@ -607,4 +625,5 @@
     connect(_corrFile, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)));
     connect(_corrFile, SIGNAL(newClkCorrections(QList<t_clkCorr>)), this, SLOT(slotNewClkCorrections(QList<t_clkCorr>)));
+    connect(_corrFile, SIGNAL(newMetaData(t_metaData)), this, SLOT(slotNewMetaData(t_metaData)));
     if (_opt->_biasFile.empty()) {
       connect(_corrFile, SIGNAL(newCodeBiases(QList<t_satCodeBias>)), this, SLOT(slotNewCodeBiases(QList<t_satCodeBias>)));
Index: trunk/BNC/src/pppRun.h
===================================================================
--- trunk/BNC/src/pppRun.h	(revision 11008)
+++ trunk/BNC/src/pppRun.h	(revision 11009)
@@ -41,4 +41,5 @@
   void slotNewBDSEph(t_ephBDS);
   void slotNewTec(t_vTec);
+  void slotNewMetaData(t_metaData);
   void slotNewOrbCorrections(QList<t_orbCorr> orbCorr);
   void slotNewClkCorrections(QList<t_clkCorr> clkCorr);
