Changeset 8936 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
May 22, 2020, 10:24:33 AM (4 years ago)
Author:
stuerze
Message:

minor changes to allow/check for local skl files that have lower and upper cases in the basename

Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnchelp.html

    r8848 r8936  
    15031503from sitelogs. An HTTP or HTTPS link to a directory containing these skeleton files may be available through data
    15041504field number 7 of the affected NET record in the source-table.
    1505 See <a href="http://www.epncb.oma.be:80/stations/log/skl/brus.skl" target="_blank">http://www.epncb.oma.be:80/stations/log/skl/brus.skl</a>
     1505See <a href="https://igs.bkg.bund.de/root_ftp/IGS/station/rnxskl/BRUX00BEL.skl" target="_blank">https://igs.bkg.bund.de/root_ftp/IGS/station/rnxskl/BRUX00BEL.skl</a>
    15061506for an example of a public RINEX header skeleton file for EPN station Brussels. Note that the download of RINEX
    15071507skeleton files from HTTPS websites requires the exchange of client and/or server certificates.
  • trunk/BNC/src/bncrinex.cpp

    r8792 r8936  
    217217  // Read the local file
    218218  // -------------------
    219   QFile skl(_sklName);
     219  QFile skl(_localSklName), sklAlt(_localSklNameAlternative);
    220220  if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) {
    221221    QTextStream in(&skl);
     222    if (_sklHeader.read(&in) == success) {
     223      readDone = true;
     224    }
     225  } else if ( sklAlt.exists() && sklAlt.open(QIODevice::ReadOnly) ) {
     226    QTextStream in(&sklAlt);
    222227    if (_sklHeader.read(&in) == success) {
    223228      readDone = true;
     
    372377  QString sklExt = settings.value("rnxSkel").toString();
    373378  if (!sklExt.isEmpty()) {
    374     _sklName = path + ID + distStr + "." + sklExt;
     379    _localSklName            = path + ID           + distStr + "." + sklExt;
     380    _localSklNameAlternative = path + ID.toLower() + distStr + "." + sklExt;
    375381  }
    376382
  • trunk/BNC/src/bncrinex.h

    r8621 r8936  
    6868   QString         _pgmName;
    6969   QString         _userName;
    70    QString         _sklName;
     70   QString         _localSklName;
     71   QString         _localSklNameAlternative;
    7172   bool            _writeRinexFileOnlyWithSkl;
    7273   bool            _rnxV3;
  • trunk/BNC/src/bncwindow.cpp

    r8905 r8936  
    13091309  _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file. <i>[key: rnxIntr]</i></p>"));
    13101310  _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. <i>[key: rnxSampl]</i></p>"));
    1311   _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>"));
     1311  _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. <i>[key: rnxSkel]</i></p>"));
    13121312  _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>"));
    13131313  _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.