Changeset 11019 in ntrip for trunk/BNC/src/bncutils.cpp


Ignore:
Timestamp:
Sep 10, 2026, 3:45:13 PM (2 hours ago)
Author:
stuerze
Message:

added epoch/velocity fields to PPP coordinates file to allow BNC to propagate the reference coordinates related to a dedicated reference epoch to the current epoch

File:
1 edited

Legend:

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

    r10791 r11019  
    203203//
    204204////////////////////////////////////////////////////////////////////////////
     205double decimalYear(const bncTime& time) {
     206
     207  unsigned int year, month, day;
     208  time.civil_date(year, month, day);
     209
     210  bncTime jan1;
     211  jan1.set(int(year), 1, 1, 0, 0, 0.0);
     212
     213  return year + (time.mjddec() - jan1.mjddec()) / 365.25;
     214}
     215
     216//
     217////////////////////////////////////////////////////////////////////////////
    205218void currentGPSWeeks(int& week, double& sec) {
    206219
Note: See TracChangeset for help on using the changeset viewer.