[QOCA学习笔记]利用QOCA软件PCA模块进行共模误差分析
生活随笔
收集整理的這篇文章主要介紹了
[QOCA学习笔记]利用QOCA软件PCA模块进行共模误差分析
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
操作環境:win10+虛擬機ubuntu下QOCA(ver 1.33)
數據:通過解算得到的安徽省CORS參考站坐標時間序列(neu格式)
QOCA軟件是優秀的GNSS坐標時間序列分析軟件,其簡介及PCA模塊的使用方法在QOCA online tutor上已經有詳細介紹:
附上鏈接:Principal component analysis.pdf
下面簡單介紹利用PCA模塊對時間序列的共模誤差進行分析的過程(具體PCA的介紹請下載相關文獻)
注:本次pca運算采用的輸入文件是經過QOCA analyze_tseri模塊分析后,扣除了階躍、速度、周年項、半周年項等項的殘差序列。具體的分析過程將在另外一篇博文中介紹。
(1). 先驗文件coordinate.solutn,是在analyze_tseri模塊運行完之后在輸出文件中提取的更新后的先驗文件(在analyze_tseri模塊介紹中會介紹如何生成)
(2).輸入文件(analyze_tseri模塊的殘差文件)
(3).pca.site
(4).pca_data.list
設置好驅動文件和前期準備文件即可運行pca pca.drv ,生成的文件有: pca.out、 pca.cpt、 pca.res、 pca.seign文件,分別為:
(1)pca.out
(2) pca.cpt
(3)pca.res
(4) pca.seign
為了方便后面解算完成提取各個測站的信息,在工程目錄下運行完pca之后,再利用以下腳本分別新建文件夾,在利用腳本提取信息,現貼出各腳本,其功能在腳本中均有注釋。
(1)
(2)
#從pca.seign提取前三階主成分對應的標準化特征向量declare -a sites=(AQSS AQWJ AQYX CZLA CZMG CZTC FYFN FYJS HBSX HSQM LAHQ LAHS MASM SZDS SZDS SZLB WHWH XCJD XCLX XCNG) for (( i=0 ; i<18 ; i++ )) do cp ${sites[$i]}/pca.seign pca.seignsed -i '/*/d' pca.seign #刪除含有“*”的那一行echo ${sites[$i]} >> 1st2nd3rd_eVector.txtcat pca.seign | awk '{print $3 " " $4 " " $5 " " $6}' >> 1st2nd3rd_eVector.txtrm pca.seign done(3)
#列出前三階主成分特征值占總特征值的百分比echo '1st order' >> 1st2nd3rd_per.txt grep ' 1 ' pca.out >> 1st2nd3rd_per.txtecho '2nd order' >> 1st2nd3rd_per.txt grep ' 2 ' pca.out >> 1st2nd3rd_per.txtecho '3rd order' >> 1st2nd3rd_per.txt grep ' 3 ' pca.out >> 1st2nd3rd_per.txt(4)
#!/bin/bash #從濾波后殘差序列輸出文件pca.res中提取各站的cme序列 mkdir cme mkdir filtered mkdir unfiltered declare -a sites=(AQSS AQWJ AQYX CZLA CZMG CZTC FYFN FYJS HBSX HSQM LAHQ LAHS MASM SZDS SZDS SZLB WHWH XCJD XCLX XCNG) for (( i=0 ; i<18 ; i++ )) do cd ${sites[$i]}grep ${sites[$i]}_GPS pca.res >> ${sites[$i]}_temp.txtgrep north ${sites[$i]}_temp.txt | awk '{print $1 " " $4}' >> ${sites[$i]}_n_cme.txtgrep east_ ${sites[$i]}_temp.txt | awk '{print $4}' >> ${sites[$i]}_e_cme.txtgrep up__ ${sites[$i]}_temp.txt | awk '{print $4}' >> ${sites[$i]}_u_cme.txt #cme序列paste -d" " ${sites[$i]}_n_cme.txt ${sites[$i]}_e_cme.txt ${sites[$i]}_u_cme.txt >> ${sites[$i]}_cme.txtmv ${sites[$i]}_cme.txt ../cmegrep north ${sites[$i]}_temp.txt | awk '{print $1 " " $3}' >> ${sites[$i]}_n_filtered.txtgrep east_ ${sites[$i]}_temp.txt | awk '{print $3}' >> ${sites[$i]}_e_filtered.txtgrep up__ ${sites[$i]}_temp.txt | awk '{print $3}' >> ${sites[$i]}_u_filtered.txt #濾波后的殘差序列paste -d" " ${sites[$i]}_n_filtered.txt ${sites[$i]}_e_filtered.txt ${sites[$i]}_u_filtered.txt >> ${sites[$i]}_filtered.txtmv ${sites[$i]}_filtered.txt ../filteredgrep north ${sites[$i]}_temp.txt | awk '{print $1 " " $2}' >> ${sites[$i]}_n_unfiltered.txtgrep east_ ${sites[$i]}_temp.txt | awk '{print $2}' >> ${sites[$i]}_e_unfiltered.txtgrep up__ ${sites[$i]}_temp.txt | awk '{print $2}' >> ${sites[$i]}_u_unfiltered.txt #濾波前的序列paste -d" " ${sites[$i]}_n_unfiltered.txt ${sites[$i]}_e_unfiltered.txt ${sites[$i]}_u_unfiltered.txt >> ${sites[$i]}_unfiltered.txtmv ${sites[$i]}_unfiltered.txt ../unfilteredrm *.txtcd .. done參考文獻:
[1]紀海源. 基于GAMIT/GLOBK與QOCA的汾渭斷陷帶地殼運動研究[D]. 西安科技大學, 2014.
[2]QOCA官網online toturing
感謝昆明理工大學李建濤師兄提供的學習材料
總結
以上是生活随笔為你收集整理的[QOCA学习笔记]利用QOCA软件PCA模块进行共模误差分析的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 单稳型和闭锁型omron继电器的区别
- 下一篇: 线性代数行列式计算方法之降阶法