-
Notifications
You must be signed in to change notification settings - Fork 0
HeZhaoBo/GAs
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Function: A GA method to calculate attitude angles and scale factors between two vector instruments Note: This program is based on Matlab's genetic algorithm toolbox. The main and objective functions are customized to achieve the optimization search problem of the relative attitude angle and the scale factor between two sets of vector instruments. Manuscript title: Data agreement analysis and correction of comparative geomagnetic vector observations. Manuscript authors: Zhaobo He, Xingxing Hu, Yuntian Teng, Xiuxia Zhang, Xiaoyu Shen. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1.Unzip the file "generic.rar" and copy the folder to the MATLAB installation path. 2.Open the "mytoolbox.txt" file, modify the "generic" path and copy it and run in the MATLAB window. Note: This step may be made each time you restart your computer when you find a error report with key word "function rep" in matlab. 3.Open the "GA_days.m" or "GA_days_ex.m" file, modify the data path and the month of data . Run "GA_days.m" or "GA_days_ex.m" file after confirming or modifying the attitude angle range in the function file "jiaodufanyan_gen.m". 4.The program gives the data comparison diagram before and after daily-correction, and the calculation results "Q_huizong" are given in the variable position of the MATLAB command window. The column of "Q_huizong" is represented from left to right: attitude angles Roll, Pitch, YAW, and scale factors on the three components. 5.It should be noted that this program can continuously calculate the attitude angles and scale factors of two sets of instruments in one month. However, in order to obtain a good calculation result, the results should be filtered in accordance with the flowchart in the manuscript, and may calculate multiple times. This is mainly because the attitude angle and the scale factor are mutually coupled in the raw data of the two sets of instruments, and we need to gradually peel the two influencing factors through a series of operations. If you have any question on running this codes, please contact us with email. hezb@cea-igp.ac.cn huxx@cea-igp.ac.cn
About
A program in a manuscript in Earth Planet and Space
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published