Changeset 4912 in ntrip
- Timestamp:
- Feb 13, 2013, 3:21:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r4908 r4912 592 592 double sc = 1.0 + _sc * 1e-9 + dt * _scr * 1e-9; 593 593 594 // Clock correction due to heavy scale in GDA94 transformation 595 // ----------------------------------------------------------- 596 if (_crdTrafo != "GDA94") { 597 dc = 0.0; 598 } 599 else { 600 601 // Spefify mean of Australia (here: GDA94 coordinates of site ALIC) 602 // ---------------------------------------------------------------- 603 ColumnVector meanSta(3); 604 meanSta(1) = -4052051.767; 605 meanSta(2) = 4212836.197; 606 meanSta(3) = -2545106.022; 607 608 // Correction proportional to topocentric distance to satellites 609 // ------------------------------------------------------------- 610 double rho = (xyz - meanSta).norm_Frobenius(); 611 dc = rho * (sc - 1.0) / t_CST::c; 612 } 594 // Specify approximate center of area 595 // ---------------------------------- 596 ColumnVector meanSta(3); 597 598 if (_crdTrafo == "ETRF2000") { 599 meanSta(1) = 3661090.0; 600 meanSta(2) = 845230.0; 601 meanSta(3) = 5136850.0; 602 } 603 else if (_crdTrafo == "NAD83") { 604 meanSta(1) = -1092950.0; 605 meanSta(2) = -4383600.0; 606 meanSta(3) = 4487420.0; 607 } 608 else if (_crdTrafo == "GDA94") { 609 meanSta(1) = -4052050.0; 610 meanSta(2) = 4212840.0; 611 meanSta(3) = -2545110.0; 612 } 613 else if (_crdTrafo == "SIRGAS2000") { 614 meanSta(1) = 3740860.0; 615 meanSta(2) = -4964290.0; 616 meanSta(3) = -1425420.0; 617 } 618 else if (_crdTrafo == "SIRGAS95") { 619 meanSta(1) = 3135390.0; 620 meanSta(2) = -5017670.0; 621 meanSta(3) = -2374440.0; 622 } 623 else if (_crdTrafo == "Custom") { 624 meanSta(1) = 0.0; // TODO 625 meanSta(2) = 0.0; // TODO 626 meanSta(3) = 0.0; // TODO 627 } 628 629 // Clock correction proportional to topocentric distance to satellites 630 // ------------------------------------------------------------------- 631 double rho = (xyz - meanSta).norm_Frobenius(); 632 dc = rho * (sc - 1.0) / t_CST::c; 613 633 614 634 Matrix rMat(3,3);
Note:
See TracChangeset
for help on using the changeset viewer.