D
duejihh
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一GPS数据(TXT文件,看下面),想把此数据分成几个TXT文件,每个文件都包含前部的HEADER部分,
之后将主数据分块读出(98 12 31 0 0 0.0000000 到 98 12 31 0 0 30.0000000为一块,类推),
各自放到以有HEADER的新文件中.
********************************************************************************
2 OBSERVATION DATA RINEX VERSION / TYPE
1998 12 31 0 0 0.000000 TIME OF FIRST OBS
1998 12 31 23 59 30.000000 TIME OF LAST OBS
27 # OF SATELLITES
1 815 815 808 808 PRN / # OF OBS
2 821 822 812 812 PRN / # OF OBS
END OF HEADER
98 12 31 0 0 0.0000000 0 9 1 5 8 9 17 21 23 26 30
-9892294.76600 23815072.55500 -1656748.08440 23815077.47740
-23356009.66800 21861052.30500 -14272161.11940 21861056.30140
-37130034.01200 20130560.10200 -28631705.28140 20130562.78540
-38590986.70700 20801252.23400 -29842787.09340 20801254.71940
-27482464.41900 23288667.83600 -20784587.50240 23288673.59040
-22698326.37000 22099217.08600 -17421039.55540 22099220.46140
-38940125.57200 20496584.45300 -19157585.99540 20496587.20740
-31776434.74600 23443663.07000 -24453040.06340 23443667.69940
-8453134.97200 24009832.72700 -6248611.76140 24009838.71540
98 12 31 0 0 30.0000000 0 9 1 5 8 9 17 21 23 26 30
-9997026.69500 23795142.45300 -1738357.38140 23795145.91040
-23452444.59900 21842701.50000 -14347305.19540 21842705.09840
-37189742.73100 20119197.94500 -28678231.56140 20119200.58240
-38568332.85500 20805563.28100 -29825134.77640 20805565.66040
-27413522.68500 23301787.25000 -20730866.83640 23301793.57840
-22817227.72700 22076591.04700 -17513689.95840 22076594.53940
-38993481.62200 20486431.35900 -19199162.16540 20486434.05540
-31741216.32300 23450364.78100 -24425597.25140 23450368.78940
-8594446.74600 23982941.75800 -6358724.68240 23982946.18840
98 12 31 0 1 0.0000000 0 9 1 5 8 9 17 21 23 26 30
-10101719.52300 23775220.09400 -1819936.25440 23775224.95740
-23548450.40100 21824432.04700 -14422114.90240 21824435.82040
-37248947.02800 20107931.82800 -28724364.79540 20107934.38340
-38545306.97600 20809945.01600 -29807192.56240 20809947.55940
-27344417.35400 23314937.57000 -20677018.69440 23314943.46540
-22935882.81600 22054012.10200 -17606148.48740 22054015.53540
-39046365.17200 20476367.82800 -19240370.14940 20476370.69940
-31705949.37700 23457075.57000 -24398116.58940 23457080.29340
-8735745.69900 23956053.15600 -6468827.51540 23956058.62940
98 12 31 0 1 30.0000000 0 9 1 5 8 9 17 21 23 26 30
-10206358.65900 23755308.02300 -1901473.26940 23755312.45340
-23644036.95500 21806242.72700 -14496597.91640 21806246.62940
-37307634.11000 20096764.00000 -28770094.99640 20096766.50840
-38521905.17400 20814398.10900 -29788957.42340 20814400.45340
-27275158.62100 23328116.78100 -20623051.04340 23328122.73440
-23054281.23200 22031481.17200 -17698407.00340 22031484.50040
-39098766.43700 20466396.33600 -19281202.32040 20466399.31240
-31670623.57300 23463797.80500 -24370590.08140 23463800.02040
-8877031.79900 23929167.17200 -6578920.40340 23929171.75440
之后将主数据分块读出(98 12 31 0 0 0.0000000 到 98 12 31 0 0 30.0000000为一块,类推),
各自放到以有HEADER的新文件中.
********************************************************************************
2 OBSERVATION DATA RINEX VERSION / TYPE
1998 12 31 0 0 0.000000 TIME OF FIRST OBS
1998 12 31 23 59 30.000000 TIME OF LAST OBS
27 # OF SATELLITES
1 815 815 808 808 PRN / # OF OBS
2 821 822 812 812 PRN / # OF OBS
END OF HEADER
98 12 31 0 0 0.0000000 0 9 1 5 8 9 17 21 23 26 30
-9892294.76600 23815072.55500 -1656748.08440 23815077.47740
-23356009.66800 21861052.30500 -14272161.11940 21861056.30140
-37130034.01200 20130560.10200 -28631705.28140 20130562.78540
-38590986.70700 20801252.23400 -29842787.09340 20801254.71940
-27482464.41900 23288667.83600 -20784587.50240 23288673.59040
-22698326.37000 22099217.08600 -17421039.55540 22099220.46140
-38940125.57200 20496584.45300 -19157585.99540 20496587.20740
-31776434.74600 23443663.07000 -24453040.06340 23443667.69940
-8453134.97200 24009832.72700 -6248611.76140 24009838.71540
98 12 31 0 0 30.0000000 0 9 1 5 8 9 17 21 23 26 30
-9997026.69500 23795142.45300 -1738357.38140 23795145.91040
-23452444.59900 21842701.50000 -14347305.19540 21842705.09840
-37189742.73100 20119197.94500 -28678231.56140 20119200.58240
-38568332.85500 20805563.28100 -29825134.77640 20805565.66040
-27413522.68500 23301787.25000 -20730866.83640 23301793.57840
-22817227.72700 22076591.04700 -17513689.95840 22076594.53940
-38993481.62200 20486431.35900 -19199162.16540 20486434.05540
-31741216.32300 23450364.78100 -24425597.25140 23450368.78940
-8594446.74600 23982941.75800 -6358724.68240 23982946.18840
98 12 31 0 1 0.0000000 0 9 1 5 8 9 17 21 23 26 30
-10101719.52300 23775220.09400 -1819936.25440 23775224.95740
-23548450.40100 21824432.04700 -14422114.90240 21824435.82040
-37248947.02800 20107931.82800 -28724364.79540 20107934.38340
-38545306.97600 20809945.01600 -29807192.56240 20809947.55940
-27344417.35400 23314937.57000 -20677018.69440 23314943.46540
-22935882.81600 22054012.10200 -17606148.48740 22054015.53540
-39046365.17200 20476367.82800 -19240370.14940 20476370.69940
-31705949.37700 23457075.57000 -24398116.58940 23457080.29340
-8735745.69900 23956053.15600 -6468827.51540 23956058.62940
98 12 31 0 1 30.0000000 0 9 1 5 8 9 17 21 23 26 30
-10206358.65900 23755308.02300 -1901473.26940 23755312.45340
-23644036.95500 21806242.72700 -14496597.91640 21806246.62940
-37307634.11000 20096764.00000 -28770094.99640 20096766.50840
-38521905.17400 20814398.10900 -29788957.42340 20814400.45340
-27275158.62100 23328116.78100 -20623051.04340 23328122.73440
-23054281.23200 22031481.17200 -17698407.00340 22031484.50040
-39098766.43700 20466396.33600 -19281202.32040 20466399.31240
-31670623.57300 23463797.80500 -24370590.08140 23463800.02040
-8877031.79900 23929167.17200 -6578920.40340 23929171.75440