Changeset 8101 in ntrip for branches/BNC_2.12/src/upload
- Timestamp:
- Apr 10, 2017, 11:12:15 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8089 r8101 96 96 // Set Transformation Parameters 97 97 // ----------------------------- 98 // Transformation Parameters from ITRF2008 to ETRF2000 98 99 if (_crdTrafo == "ETRF2000") { 99 _dx =0.0521;100 _dy =0.0493;101 _dz = -0.0585;102 _dxr = 0.0001;103 _dyr = 0.0001;100 _dx = 0.0521; 101 _dy = 0.0493; 102 _dz = -0.0585; 103 _dxr = 0.0001; 104 _dyr = 0.0001; 104 105 _dzr = -0.0018; 105 _ox =0.000891;106 _oy =0.005390;107 _oz = -0.008712;108 _oxr = 0.000081;109 _oyr = 0.000490;106 _ox = 0.000891; 107 _oy = 0.005390; 108 _oz = -0.008712; 109 _oxr = 0.000081; 110 _oyr = 0.000490; 110 111 _ozr = -0.000792; 111 _sc = 1.34; 112 _scr = 0.08; 113 _t0 = 2000.0; 114 } 112 _sc = 1.34; 113 _scr = 0.08; 114 _t0 = 2000.0; 115 } 116 // Transformation Parameters from ITRF2008 to NAD83 115 117 else if (_crdTrafo == "NAD83") { 116 _dx =0.99343;117 _dy = -1.90331;118 _dz = -0.52655;119 _dxr = 0.00079;118 _dx = 0.99343; 119 _dy = -1.90331; 120 _dz = -0.52655; 121 _dxr = 0.00079; 120 122 _dyr = -0.00060; 121 123 _dzr = -0.00134; 122 _ox = -0.02591467;123 _oy = -0.00942645;124 _oz = -0.01159935;124 _ox = -0.02591467; 125 _oy = -0.00942645; 126 _oz = -0.01159935; 125 127 _oxr = -0.00006667; 126 _oyr = 0.00075744;127 _ozr = 0.00005133;128 _sc =1.71504;128 _oyr = 0.00075744; 129 _ozr = 0.00005133; 130 _sc = 1.71504; 129 131 _scr = -0.10201; 130 _t0 = 1997.0; 131 } 132 else if (_crdTrafo == "GDA94") { 133 _dx = -0.08468; 134 _dy = -0.01942; 135 _dz = 0.03201; 136 _dxr = 0.00142; 137 _dyr = 0.00134; 138 _dzr = 0.00090; 139 _ox = 0.0004254; 140 _oy = -0.0022578; 141 _oz = -0.0024015; 142 _oxr = -0.0015461; 143 _oyr = -0.0011820; 144 _ozr = -0.0011551; 145 _sc = 9.710; 146 _scr = 0.109; 147 _t0 = 1994.0; 148 } 149 else if (_crdTrafo == "SIRGAS2000") { // from IGb14 (Sonia Costa, BRA) 150 _dx = 0.0026; 151 _dy = 0.0018; 152 _dz = -0.0061; 153 _dxr = 0.0000; 154 _dyr = 0.0000; 155 _dzr = 0.0000; 156 _ox = 0.000170; 157 _oy = -0.000030; 158 _oz = 0.000070; 159 _oxr = 0.000000; 160 _oyr = 0.000000; 161 _ozr = 0.000000; 162 _sc = -1.000; 163 _scr = 0.000; 164 _t0 = 0000.0; 165 } 166 else if (_crdTrafo == "SIRGAS95") { 167 _dx = 0.0077; 168 _dy = 0.0058; 169 _dz = -0.0138; 170 _dxr = 0.0000; 171 _dyr = 0.0000; 172 _dzr = 0.0000; 173 _ox = 0.000000; 174 _oy = 0.000000; 175 _oz = -0.000030; 176 _oxr = 0.000000; 177 _oyr = 0.000000; 178 _ozr = 0.000000; 179 _sc = 1.570; 180 _scr = 0.000; 181 _t0 = 0000.0; 182 } 132 _t0 = 1997.0; 133 } 134 // Transformation Parameters from ITRF2014 to GDA2020 (Ryan Ruddick, GA) 135 else if (_crdTrafo == "GDA2020") { 136 _dx = 0.0; 137 _dy = 0.0; 138 _dz = 0.0; 139 _dxr = 0.0; 140 _dyr = 0.0; 141 _dzr = 0.0; 142 _ox = 0.0; 143 _oy = 0.0; 144 _oz = 0.0; 145 _oxr = 0.00150379; 146 _oyr = 0.00118346; 147 _ozr = 0.00120716; 148 _sc = 0.0; 149 _scr = 0.0; 150 _t0 = 2020.0; 151 } 152 // Transformation Parameters from IGb14 to SIRGAS2000 (Sonia Costa, BRA) 153 else if (_crdTrafo == "SIRGAS2000") { 154 _dx = 0.0026; 155 _dy = 0.0018; 156 _dz = -0.0061; 157 _dxr = 0.0000; 158 _dyr = 0.0000; 159 _dzr = 0.0000; 160 _ox = 0.000170; 161 _oy = -0.000030; 162 _oz = 0.000070; 163 _oxr = 0.000000; 164 _oyr = 0.000000; 165 _ozr = 0.000000; 166 _sc = -1.000; 167 _scr = 0.000; 168 _t0 = 2000.4; 169 } 170 // Transformation Parameters from ITRF2008 to DREF91 183 171 else if (_crdTrafo == "DREF91") { 184 _dx = -0.0118;185 _dy =0.1432;186 _dz = -0.1117;187 _dxr = 0.0001;188 _dyr = 0.0001;172 _dx = -0.0118; 173 _dy = 0.1432; 174 _dz = -0.1117; 175 _dxr = 0.0001; 176 _dyr = 0.0001; 189 177 _dzr = -0.0018; 190 _ox =0.003291;191 _oy =0.006190;192 _oz = -0.011012;193 _oxr = 0.000081;194 _oyr = 0.000490;178 _ox = 0.003291; 179 _oy = 0.006190; 180 _oz = -0.011012; 181 _oxr = 0.000081; 182 _oyr = 0.000490; 195 183 _ozr = -0.000792; 196 _sc = 12.24; 197 _scr = 0.08; 198 _t0 = 2000.0; 184 _sc = 12.24; 185 _scr = 0.08; 186 _t0 = 2000.0; 187 } 188 // Transformation Parameters from ITRF2014 to ITRF2008 (http://itrf.ign.fr/doc_ITRF/Transfo-ITRF2014_ITRFs.txt) 189 else if (_crdTrafo == "ITRF2008") { 190 _dx = 0.0016; 191 _dy = 0.0019; 192 _dz = 0.0024; 193 _dxr = 0.0; 194 _dyr = 0.0; 195 _dzr = -0.0001; 196 _ox = 0.0; 197 _oy = 0.0; 198 _oz = 0.0; 199 _oxr = 0.0; 200 _oyr = 0.0; 201 _ozr = 0.0; 202 _sc = -0.02; 203 _scr = 0.03; 204 _t0 = 2010.0; 199 205 } 200 206 else if (_crdTrafo == "Custom") { … … 2278 2284 2279 2285 double dc = 0.0; 2280 if (_crdTrafo != "IGS14") { 2286 //TODO: the following 3 lines can be activated again if all parameters are updated regarding ITRF2014 2287 //if (_crdTrafo != "IGS14") { 2288 // crdTrafo(GPSweek, xP, dc); 2289 //} 2290 if (_crdTrafo == "ETRF2000") { 2291 _crdTrafo == "ITRF2008"; crdTrafo(GPSweek, xP, dc); 2292 _crdTrafo == "ETRF2000"; crdTrafo(GPSweek, xP, dc); 2293 } 2294 else if (_crdTrafo == "NAD83") { 2295 _crdTrafo == "ITRF2008"; crdTrafo(GPSweek, xP, dc); 2296 _crdTrafo == "NAD83"; crdTrafo(GPSweek, xP, dc); 2297 } 2298 else if (_crdTrafo == "DREF91") { 2299 _crdTrafo == "ITRF2008"; crdTrafo(GPSweek, xP, dc); 2300 _crdTrafo == "DREF91"; crdTrafo(GPSweek, xP, dc); 2301 } 2302 else if (_crdTrafo == "SIRGAS2000" || 2303 _crdTrafo == "GDA2020") { 2281 2304 crdTrafo(GPSweek, xP, dc); 2282 2305 } … … 2365 2388 meanSta(3) = 4487420.0; 2366 2389 } 2367 else if (_crdTrafo == "GDA 94") {2390 else if (_crdTrafo == "GDA2020") { 2368 2391 meanSta(1) = -4052050.0; 2369 2392 meanSta(2) = 4212840.0; … … 2375 2398 meanSta(3) = -1425420.0; 2376 2399 } 2377 else if (_crdTrafo == "SIRGAS95") {2378 meanSta(1) = 3135390.0;2379 meanSta(2) = -5017670.0;2380 meanSta(3) = -2374440.0;2381 }2382 2400 else if (_crdTrafo == "DREF91") { 2383 2401 meanSta(1) = 3959579.0; … … 2390 2408 meanSta(3) = 0.0; // TODO 2391 2409 } 2410 // TODO: has to be deleted as soon all parameters are available with respect to ITRF2014 2411 else if (_crdTrafo == "ITRF2008") { 2412 meanSta(1) = 0.0; // TODO 2413 meanSta(2) = 0.0; // TODO 2414 meanSta(3) = 0.0; // TODO 2415 } 2392 2416 2393 2417 // Clock correction proportional to topocentric distance to satellites
Note:
See TracChangeset
for help on using the changeset viewer.