- Timestamp:
- Jul 6, 2018, 10:30:06 AM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r8403 r8405 2689 2689 QComboBox* system = new QComboBox(); 2690 2690 system->setEditable(false); 2691 system->addItems(QString("IGS14,ETRF2000, NAD83,GDA2020,SIRGAS2000,DREF91,Custom").split(","));2691 system->addItems(QString("IGS14,ETRF2000,GDA2020,SIRGAS2000,DREF91,Custom").split(",")); 2692 2692 system->setFrame(false); 2693 2693 _uploadTable->setCellWidget(iRow, iCol, system); -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8361 r8405 105 105 // Set Transformation Parameters 106 106 // ----------------------------- 107 // Transformation Parameters from ITRF20 08to ETRF2000107 // Transformation Parameters from ITRF2014 to ETRF2000 108 108 if (_crdTrafo == "ETRF2000") { 109 _dx = 0.05 21;110 _dy = 0.0 493;111 _dz = -0.05 85;109 _dx = 0.0537; 110 _dy = 0.0512; 111 _dz = -0.0551; 112 112 _dxr = 0.0001; 113 113 _dyr = 0.0001; 114 _dzr = -0.001 8;115 _ox = 116 _oy = 117 _oz = -0.008712;118 _oxr = 119 _oyr = 120 _ozr = -0.000792;121 _sc = 1. 34;122 _scr = 0. 08;114 _dzr = -0.0019; 115 _ox = -0.000891; 116 _oy = -0.005390; 117 _oz = 0.008712; 118 _oxr = -0.000081; 119 _oyr = -0.000490; 120 _ozr = +0.000792; 121 _sc = 1.02; 122 _scr = 0.11; 123 123 _t0 = 2000.0; 124 }125 // Transformation Parameters from ITRF2008 to NAD83126 else if (_crdTrafo == "NAD83") {127 _dx = 0.99343;128 _dy = -1.90331;129 _dz = -0.52655;130 _dxr = 0.00079;131 _dyr = -0.00060;132 _dzr = -0.00134;133 _ox = -0.02591467;134 _oy = -0.00942645;135 _oz = -0.01159935;136 _oxr = -0.00006667;137 _oyr = 0.00075744;138 _ozr = 0.00005133;139 _sc = 1.71504;140 _scr = -0.10201;141 _t0 = 1997.0;142 124 } 143 125 // Transformation Parameters from ITRF2014 to GDA2020 (Ryan Ruddick, GA) … … 177 159 _t0 = 2000.4; 178 160 } 179 // Transformation Parameters from ITRF20 08to DREF91161 // Transformation Parameters from ITRF2014 to DREF91 180 162 else if (_crdTrafo == "DREF91") { 181 _dx = -0.0118;182 _dy = 0. 1432;183 _dz = -0. 1117;163 _dx = 0.0537; 164 _dy = 0.0512; 165 _dz = -0.0551; 184 166 _dxr = 0.0001; 185 167 _dyr = 0.0001; 186 _dzr = -0.001 8;187 _ox = 0.003291;188 _oy = 0.006190;189 _oz = -0.011012;190 _oxr = 191 _oyr = 192 _ozr = -0.000792;193 _sc = 1 2.24;194 _scr = 0. 08;168 _dzr = -0.0019; 169 _ox = -0.000233; 170 _oy = -0.005598; 171 _oz = 0.009467; 172 _oxr = -0.000081; 173 _oyr = -0.000490; 174 _ozr = 0.000792; 175 _sc = 1.02; 176 _scr = 0.11; 195 177 _t0 = 2000.0; 196 178 } … … 212 194 _t0 = settings.value("trafo_t0").toDouble(); 213 195 } 214 // TODO: the following lines can be deleted if all parameters are updated regarding ITRF2014215 if (_crdTrafo == "ETRF2000" ||216 _crdTrafo == "NAD83" ||217 _crdTrafo == "DREF91" ) {// Transformation Parameters from ITRF2014 to ITRF2008218 // (http://itrf.ign.fr/doc_ITRF/Transfo-ITRF2014_ITRFs.txt)219 _dx8 = 0.0016;220 _dy8 = 0.0019;221 _dz8 = 0.0024;222 _dxr8 = 0.0;223 _dyr8 = 0.0;224 _dzr8 = -0.0001;225 _ox8 = 0.0;226 _oy8 = 0.0;227 _oz8 = 0.0;228 _oxr8 = 0.0;229 _oyr8 = 0.0;230 _ozr8 = 0.0;231 _sc8 = -0.02;232 _scr8 = 0.03;233 _t08 = 2010.0;234 }235 196 } 236 197 … … 682 643 break; 683 644 biasSat->NumberOfCodeBiases += 1; 684 biasSat->Biases[ii].Type = CODETYPEGPS_L2 _CM;645 biasSat->Biases[ii].Type = CODETYPEGPS_L2C_M; 685 646 biasSat->Biases[ii].Bias = it.value(); 686 647 } … … 690 651 break; 691 652 biasSat->NumberOfCodeBiases += 1; 692 biasSat->Biases[ii].Type = CODETYPEGPS_L2 _CL;653 biasSat->Biases[ii].Type = CODETYPEGPS_L2C_L; 693 654 biasSat->Biases[ii].Bias = it.value(); 694 655 } … … 698 659 break; 699 660 biasSat->NumberOfCodeBiases += 1; 700 biasSat->Biases[ii].Type = CODETYPEGPS_L2 _CML;661 biasSat->Biases[ii].Type = CODETYPEGPS_L2C_ML; 701 662 biasSat->Biases[ii].Bias = it.value(); 702 663 } … … 1028 989 break; 1029 990 biasSat->NumberOfCodeBiases += 1; 1030 biasSat->Biases[ii].Type = CODETYPEQZSS_L EX_S;991 biasSat->Biases[ii].Type = CODETYPEQZSS_L6_D; 1031 992 biasSat->Biases[ii].Bias = it.value(); 1032 993 } … … 1036 997 break; 1037 998 biasSat->NumberOfCodeBiases += 1; 1038 biasSat->Biases[ii].Type = CODETYPEQZSS_L EX_L;999 biasSat->Biases[ii].Type = CODETYPEQZSS_L6_P; 1039 1000 biasSat->Biases[ii].Bias = it.value(); 1040 1001 } … … 1044 1005 break; 1045 1006 biasSat->NumberOfCodeBiases += 1; 1046 biasSat->Biases[ii].Type = CODETYPEQZSS_L EX_SL;1007 biasSat->Biases[ii].Type = CODETYPEQZSS_L6_DP; 1047 1008 biasSat->Biases[ii].Bias = it.value(); 1048 1009 } … … 1327 1288 break; 1328 1289 phasebiasSat->NumberOfPhaseBiases += 1; 1329 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2 _CM;1290 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_M; 1330 1291 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1331 1292 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 1340 1301 break; 1341 1302 phasebiasSat->NumberOfPhaseBiases += 1; 1342 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2 _CL;1303 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_L; 1343 1304 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1344 1305 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 1353 1314 break; 1354 1315 phasebiasSat->NumberOfPhaseBiases += 1; 1355 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2 _CML;1316 phasebiasSat->Biases[ii].Type = CODETYPEGPS_L2C_ML; 1356 1317 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1357 1318 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 1878 1839 break; 1879 1840 phasebiasSat->NumberOfPhaseBiases += 1; 1880 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L EX_S;1841 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_D; 1881 1842 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1882 1843 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 1891 1852 break; 1892 1853 phasebiasSat->NumberOfPhaseBiases += 1; 1893 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L EX_L;1854 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_P; 1894 1855 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1895 1856 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 1904 1865 break; 1905 1866 phasebiasSat->NumberOfPhaseBiases += 1; 1906 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L EX_SL;1867 phasebiasSat->Biases[ii].Type = CODETYPEQZSS_L6_DP; 1907 1868 phasebiasSat->Biases[ii].Bias = pbSig.bias; 1908 1869 phasebiasSat->Biases[ii].SignalIntegerIndicator = pbSig.integerIndicator; … … 2296 2257 2297 2258 double dc = 0.0; 2298 //TODO: the following 3 lines can be activated again if all parameters are updated regarding ITRF2014 2299 //if (_crdTrafo != "IGS14") { 2300 // crdTrafo(GPSweek, xP, dc); 2301 //} 2302 //TODO: the following 3 lines can be deleted if all parameters are updated regarding ITRF2014 2303 if (_crdTrafo == "ETRF2000") { 2304 crdTrafo8(GPSweek, xP, dc); 2305 crdTrafo(GPSweek, xP, dc); 2306 } 2307 else if (_crdTrafo == "NAD83") { 2308 crdTrafo8(GPSweek, xP, dc); 2309 crdTrafo(GPSweek, xP, dc); 2310 } 2311 else if (_crdTrafo == "DREF91") { 2312 crdTrafo8(GPSweek, xP, dc); 2313 crdTrafo(GPSweek, xP, dc); 2314 } 2315 else if (_crdTrafo == "SIRGAS2000" || 2316 _crdTrafo == "GDA2020") { 2259 if (_crdTrafo != "IGS14") { 2317 2260 crdTrafo(GPSweek, xP, dc); 2318 2261 } … … 2396 2339 meanSta(3) = 5136850.0; 2397 2340 } 2398 else if (_crdTrafo == "NAD83") {2399 meanSta(1) = -1092950.0;2400 meanSta(2) = -4383600.0;2401 meanSta(3) = 4487420.0;2402 }2403 2341 else if (_crdTrafo == "GDA2020") { 2404 2342 meanSta(1) = -4052050.0; … … 2421 2359 meanSta(3) = 0.0; // TODO 2422 2360 } 2423 // TODO: has to be deleted as soon all parameters are available with respect to ITRF20142424 else if (_crdTrafo == "ITRF2008") {2425 meanSta(1) = 0.0; // TODO2426 meanSta(2) = 0.0; // TODO2427 meanSta(3) = 0.0; // TODO2428 }2429 2361 2430 2362 // Clock correction proportional to topocentric distance to satellites … … 2447 2379 } 2448 2380 2449 // Transform Coordinates2450 ////////////////////////////////////////////////////////////////////////////2451 void bncRtnetUploadCaster::crdTrafo8(int GPSWeek, ColumnVector& xyz,2452 double& dc) {2453 2454 // Current epoch minus 2000.0 in years2455 // ------------------------------------2456 double dt = (GPSWeek - (1042.0 + 6.0 / 7.0)) / 365.2422 * 7.0 + 2000.0 - _t0;2457 2458 ColumnVector dx(3);2459 2460 dx(1) = _dx8 + dt * _dxr8;2461 dx(2) = _dy8 + dt * _dyr8;2462 dx(3) = _dz8 + dt * _dzr8;2463 2464 static const double arcSec = 180.0 * 3600.0 / M_PI;2465 2466 double ox = (_ox8 + dt * _oxr8) / arcSec;2467 double oy = (_oy8 + dt * _oyr8) / arcSec;2468 double oz = (_oz8 + dt * _ozr8) / arcSec;2469 2470 double sc = 1.0 + _sc8 * 1e-9 + dt * _scr8 * 1e-9;2471 2472 // Specify approximate center of area2473 // ----------------------------------2474 ColumnVector meanSta(3);2475 meanSta(1) = 0.0; // TODO2476 meanSta(2) = 0.0; // TODO2477 meanSta(3) = 0.0; // TODO2478 2479 2480 // Clock correction proportional to topocentric distance to satellites2481 // -------------------------------------------------------------------2482 double rho = (xyz - meanSta).norm_Frobenius();2483 dc = rho * (sc - 1.0) / sc / t_CST::c;2484 2485 Matrix rMat(3, 3);2486 rMat(1, 1) = 1.0;2487 rMat(1, 2) = -oz;2488 rMat(1, 3) = oy;2489 rMat(2, 1) = oz;2490 rMat(2, 2) = 1.0;2491 rMat(2, 3) = -ox;2492 rMat(3, 1) = -oy;2493 rMat(3, 2) = ox;2494 rMat(3, 3) = 1.0;2495 2496 xyz = sc * rMat * xyz + dx;2497 }2498 2499 2381 int bncRtnetUploadCaster::determineUpdateInd(double samplingRate) { 2500 2382 -
trunk/BNC/src/upload/bncrtnetuploadcaster.h
r8275 r8405 39 39 QString& outLine); 40 40 void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc); 41 42 // TODO: the following lines can be deleted if all parameters are updated regarding ITRF201443 void crdTrafo8(int GPSWeek, ColumnVector& xyz, double& dc);44 41 45 42 int determineUpdateInd(double samplingRate);
Note:
See TracChangeset
for help on using the changeset viewer.