Changeset 8664 in ntrip


Ignore:
Timestamp:
Apr 4, 2019, 1:10:41 PM (5 years ago)
Author:
stuerze
Message:

minor changes reagarding skl filenames

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r8661 r8664  
    170170  }
    171171  if (!sklDir.isEmpty() && sklDir != "none") {
    172     QString staID;
     172    QString staID, staIDalternative;
     173    QUrl url;
    173174    int stIdLength = _mountPoint.path().length()-2;
    174     staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
    175     QUrl url(sklDir  + staID);
     175    staID =            _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
     176    staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl";
     177    url = sklDir + "/" + staID;
    176178    if (url.port() == -1) {
    177179      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    190192      QTextStream in(outData);
    191193      irc = _sklHeader.read(&in);
     194    }
     195    else {
     196      url = sklDir + "/" + staIDalternative;
     197      query->waitForRequestResult(url, outData);
     198      if (query->status() == bncNetQuery::finished &&
     199              outData.contains("END OF HEADER")) {
     200            QTextStream in(outData);
     201            irc = _sklHeader.read(&in);
     202          }
    192203    }
    193204
  • trunk/BNC/src/bncwindow.cpp

    r8637 r8664  
    13041304  _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file. <i>[key: rnxIntr]</i></p>"));
    13051305  _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. <i>[key: rnxSampl]</i></p>"));
    1306   _rnxSkelLineEdit->setWhatsThis(tr("<p>BNC allows using personal RINEX skeleton files that contain the RINEX header records you would like to include. You can derive a skeleton file from information given in an up to date sitelog.</p><p>A file in the RINEX Observations 'Directory' with a 'Skeleton extension' skl or SKL is interpreted by BNC as a personal RINEX header skeleton file for the corresponding stream. In case of 'SKL'/'skl' the 4-char ID forming the base name has to be written in upper/lower cases. <i>[key: rnxSkel]</i></p>"));
     1306  _rnxSkelLineEdit->setWhatsThis(tr("<p>BNC allows using personal RINEX skeleton files that contain the RINEX header records you would like to include. You can derive a skeleton file from information given in an up to date sitelog.</p><p>A file in the RINEX Observations 'Directory' with a 'Skeleton extension' skl or SKL is interpreted by BNC as a personal RINEX header skeleton file for the corresponding stream. In case of 'SKL'/'skl' the 4/9-char ID forming the base name has to be written in upper cases. <i>[key: rnxSkel]</i></p>"));
    13071307  _rnxFileCheckBox->setWhatsThis(tr("<p>Tick check box 'Skeleton mandatory' in case you want that RINEX files are only produced if skeleton files are available for BNC. If no skeleton file is available for a particular source then no RINEX Observation file will be produced from the affected stream.</p><p>Note that a skeleton file contains RINEX header information such as receiver and antenna types. In case of stream conversion to RINEX Version 3, a skeleton file should also contain information on potentially available observation types. A missing skeleton file will therefore enforce BNC to only save a default set of RINEX 3 observation types. <i>[key: rnxOnlyWithSKL]</i></p>"));
    13081308  _rnxScrpLineEdit->setWhatsThis(tr("<p>Whenever a RINEX Observation file is finally saved, you may want to compress, copy or upload it immediately, for example via FTP. BNC allows you to execute a script/batch file to carry out such operation.</p><p>Specify the full path of a script or batch file. BNC will pass the full RINEX Observation file path to the script as command line parameter (%1 on Windows systems, $1 on Unix/Linux/Mac systems). <i>[key: rnxScript]</i></p>"));
Note: See TracChangeset for help on using the changeset viewer.