Home

Hector user manual version 1.2

image

Contents

1. TEST_out mom Number of observations 1000 Percentage of gaps 10 7 Number of data points n 1000 Page 11 of 28 Hector user manual Section 3 Number of data used N 1000 Number of segments K 7 Length of segments L 250 Total variance in signal time domain 3 297 Total variance in signal spectrum 3 123 freqO 4 6296e 08 freqi 5 7870e 06 The PSD of our estimated noise model can be computed using the program modelspectrum which has no control file and which saves its output in modelspectrum out How ever note that it gets information on the required set of noise models from the file estimatetrend ctl Normally one makes a PSD after estimating the trend so this should not be an inconvenience The user must manually enter the requested values for the noise parameters and provide the begin and end value of the frequency range For our example the input looks like Enter the standard deviation of the innovation noise 1 6190 Enter the sampling period in hours 24 Enter fraction for model Powerlaw 0 490 Enter fraction for model White 0 5103 Powerlaw Enter value of fractional difference d 0 3831 White 1 Linear or 2 logarithmic scaling of frequency 2 Enter freqO and freqi 4 6296e 08 5 7870e 06 The contents of estimatespectrum out and modelspectrum out are plotted in Fig ure 4 3 1 4 Some additional tests So far we have explained how to remove the outliers in the data estimate the linear trend a
2. 0 represents 100 power law noise The second noise parameter is the slope of the power law noise d This is equal to 2a and 2u which is found in other papers on time series analysis of GPS time series The values of these two parameters need to be determined using the numerical minisation scheme and their values during each step 42 steps are needed before convergence has Page 9 of 28 Hector user manual Section 3 been reached are shown in the output For white noise there is no additional parameter to estimate so that is why there is this line No noise parameters to show in the output in the white noise section More details on the noise models are given in section 5 The rest of the lines show the estimated values of the model such as nominal bias also known at intercept at t and which is equal to the estimated value at t linear trend and a seasonal signal To get the most accurate estimate of the linear trend the linear trend in the design matrix has a zero mean To explain this better assume that we have 5 observations The design matrix H looks like 1 2 1 1 H 1 0 1 1 1 1 2 The first column will estimate the nominal bias the second the linear trend The two columns are orthogonal since HTH produces a diagonal matrix Thus the estimation of the nominal bias is not influenced by the estimation of the linear trend which is beneficial for the accuracy It also means that the nominal bias corresponds to
3. 0 625495 0 211591 mm sin yearly 0 751631 0 238983 mm gt PHLW_out mom Total computing time 29 00000 sec 3 2 1 Station position estimation As was noted in the introduction of this manual the objective of hector is to estimate the linear trend in geophysical time series A linear function is given by f t a bt where t represents the time a a constant and b a coefficient of the linear trend Sometimes also the constant a is of interest as is the case when one wants to estimate the position of a GPS station with respect to a certain reference epoch We will now show how to compute the X coordinate of station PHLW in the Earth fixed Cartesian reference frame with respect to reference epoch 1 January 2008 First the Tcl script convert_sol_files need to be run again but now with the argument position convert_sol_files tcl position Page 15 of 28 Hector user manual Section 3 250 p 200 f 150 100 mm 50 1 1 1 1 1 1 1 2000 2002 2004 2006 2008 2010 2012 2014 Years Figure 5 The preprocessed data and the estimated model of the North component of station PHLW stored in PHLW_out mom This creates three extra files PHLW_X mom PHLW_Y mom and PHLW_Z mom which contain the time series for each component The first few lines of PHLW_X mom are 51778 4728141 4515 51779 4728141 4479 51780 4728141 4520 51781 4728141 4585 51782 4728141 4526 The first column contains the Modified Ju
4. This file is read by simulatenoise Page 25 of 28 Hector user manual Section 7 Keyword Value s SimulationDir directory where created files will be stored SimulationLabel base name of the created files NumberOfSimulations number of simulations NumberOfPoints length of each simulation SamplingPeriod specifies the time step in days TimeNoiseStart number of points that need to be included before 1st observation has been made NoiseModels chose any set from White Flicker RandomWalk Pow erlaw PowerlawApprox ARFIMA ARMA and GGM m License and Copyright Hector is Copyright 2012 1016 Machiel Bos Rui Fernandes and Lu sa Bastos Hector is free software you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License or at your option any later version This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details You should have received a copy of the GNU General Public License along with this program if not write to the Free Software Foundation Inc 51 Franklin Street Fifth Floor Boston MA 02110 1301 USA You can also find the GPL on the GNU web site mm References Agnew D C 1992 The time domain behaviour of power law n
5. 000500 m year cos yearly 0 002546 0 000630 m sin yearly 0 000349 0 000696 m gt PHLW_X_out mom Total computing time 22 00000 sec In this case the X coordinate of PHLW is 4728141 299 metres at 1 January 2008 3 3 Example 3 The monthly PSMSL tide gauge data at Cascais In the directory examples ex3 we have stored the monthly tide gauge data of Cascaise downloaded from PSMSL http www psmsl org data obtaining stations 52 php This time series has no outliers so we can directly estimate the linear trend The control file estimatetrend ctl is DataFile 52 rlrdata Page 17 of 28 Hector user manual Section 3 DataDirectory uf OutputFile 52_out mom QuadraticTerm no interpolate no firstdifference no seasonalsignal yes halfseasonalsignal yes estimateoffsets no NoiseModels ARMA PhysicalUnit mm AR_p 1 MA_q 0 Here we are using the ARMA noise model To be precise there is 1 AR coefficient set by the AR_p keyword and 0 MA coefficients set by the MA_q keyword Thus we can shorten our notation of ARMA 1 0 to AR 1 If we now run estimatetrend we obtain a linear trend of 1 270 0 075 mm yr If we now change the noise model to AR 5 ARFIMA with AR_p 1 and MA_q 0 and GGM we obtain trends of 1 277 0 103 1 253 0 175 and 1 259 0 201 mm yr which all have lower BIC and AIC values than the AR 1 noise model Using modelspectrum and estimatespectrum one can produce the power spectral density plot shown in F
6. 4 f 1724 982836 size 0 000 Likelihood value min log L 1724 983 AIC 3453 966 BIC 3463 555 Powerlaw fraction 0 490 0 3831 0 0868 White fraction 0 5103 No noise parameters to show STD of the innovation noise 1 6190 bias 0 831535 0 994658 mm at MJD 50583 500000 trend 16 393336 0 687413 mm year cos yearly 4 090394 0 280224 mm sin yearly 3 936342 aus 0 285006 mm offset at 50284 0000 24 493855 0 687678 mm offset at 50334 0000 24 686144 0 750109 mm offset at 50784 0000 39 755662 0 702739 mm offset at 51034 0000 38 529800 0 724268 mm gt TEST_out mom Total computing time 4 00000 sec The first lines are self explanatory The number of CPU s used is also shown to make sure that Multi Threading on Multi Core Processors is working In this case 4 CPU s are used The next few lines show the minimization steps of the negative value of the natural logaritm of the likelihood which is thus maximised Nowadays the quality of the chosen noise models in describing the noise in the data is evaluated using the Akaike Information Criteria AIC and the Baysian Information Criteria BIC These values are shown below the value of the natural logarithm of the Likelihood value Since we are using white and power law noise two noise parameters need to be estimated The first parameter determines the distribution of white and power law noise 1 represents 100 white noise
7. 5 1 White noise For white noise the covariance matrix is just the unit matrix The first column of the covariance matrix C with o 1 is yi 1 fri 0 5 0 i 0 6 Its one sided power spectrum density is 1 S f 2 7 where fs is the sampling frequency in Hz If you integrate this from zero frequency to the Nyquist frequency you get the variance that is observed in the time series as it should be It can be used for first differenced data 5 2 Power law noise For power law noise the first column of the covariance matrix is T d i P 1 2d T rd i drd d 8 Its one sided power spectrum density with 1 is 1 1 S 25 Bina fT It can be used for first differenced data Page 22 of 28 Hector user manual Section 5 5 3 Flicker noise and Random Walk noise Flicker noise and Random walk noise are simply two types of power law noise where the spectral index d has the fixed value of 0 5 and 1 0 respectively It can be used for first differenced data 5 4 Power law approximated Bos et al 2012 note that it is still not clear what causes the noise in GNSS time series nor is it known when the noise started This could be when the receiver was switched on or since the launch of the GNSS satellites or some geophysical signal that has always been present They used this uncertainty to let the noise start at some arbitrary time in the past Since the noise is weakly stationary after some time th
8. Hector user manual version 1 2 Machiel Bos Rui Fernandes and Lutisa Bastos May 15 2013 eee Contents 1 Introduction 1 1 Howto cite Hector 000000000000 0000084 1 2 Main features 0 000 000000000 2 ee Installation Tutorial 3 1 Example 1 Synthetic GPS time series with spikes and offsets 3 1 1 Removal of outliers 2 0 020 002 0020 2 0020008 3 1 2 Estimation of the linear trend 0 3 1 3 Plotting the power spectral density 3 1 4 Some additional tests ooo 3 2 Example 2 A real GPS time series with a lot of missing data 3 2 1 Station position estimation 3 3 Example 3 The monthly PSMSL tide gauge data at Cascais 3 4 Example 4 Creating synthetic coloured noise Acceptable data format 4 1 mom format aoaaa a a 4 2 enu format 2 ras racire tr parara n emade aa 4 3 pos format oaa 4A neuctoOnmat o rs ereraa niya teks deed oh oS aa BESS 45 rirdataformat ec es raosna a ea aR E aa a Implemented Noise Models 5 1 White noise oaoa aaa a a 5 2 Power law noise 1 aa 5 3 Flicker noise and Random Walk noise 2 5 4 Power law approximated o o a a a 5 5 ARFIMA and ARMA eeoa ee 5 6 Generalized Gauss Markov noise model oa aa aa a a N oa A A N 12 14 15 17 18 20 20 20 21 21 21 Hector user manual Section 1 6 Quick reference for the control file
9. and the X Y and Z component in metres in columns 2 to 5 For example the first four lines of the file PHLW sol given in the ex2 directory are Page 14 of 28 Hector user manual Section 3 2000 08 22 2000 639344 2000 08 23 2000 642077 2000 08 24 2000 644809 2000 08 25 2000 647541 4728141 4515 4728141 4479 4728141 4520 4728141 4585 2879662 3793 2879662 3730 2879662 3746 2879662 3813 3157146 8947 3157146 8923 3157146 8909 3157146 8986 Columns 6 to 11 are not shown but contain the autocovariance and cross correlation values This information is not used by Hector and can therefore safely be omitted Here we are interested in the North component which must be specified in re moveoutliers ctl After preprocessing the data with removeoutliers we can run estimatetrend A problem with this time series is that it consists for 65 out of missing data The AmmarGrag likelihood method works but is not particularly fast when the number of missing data is more than 50 Therefore in this case one should use the FullCov likelihood method The results of running estimatetrend North component are Likelihood value min log L 3157 577 AIC 6319 154 BIC 6329 770 PowerlawApprox fraction 0 140 d 0 5388 0 0617 White fraction 0 8603 No noise parameters to show STD of the innovation noise 1 9233 bias 113 351514 0 938288 mm at MJD 53939 500000 trend 18 907049 0 143908 mm year cos yearly
10. caleFactor to 1000 0 and the PhysicalUnit to mm to work in millimetres Time of offsets for the East North or Up component can be specified in a separate file To use it set the keywords OffsetFile and component and give the filename and value of the component East North Up An example of this file is 3 3 2008 NaN O 0O 13 10 2010 NaN O 0 where NaN specifies that an offset needs to be estimated In this case we thus specify offsets for the East component 4 4 neu format This format is used by SOPAC http sopac ucsd edu and accepted by the CATS software The first column contains the time as year fractions and columns two to four contain the North East and Up component in metres Missing data are allowed The unit of these files is normally metres and it is convenient to convert these to millimetres using the keyword ScaleFactor in removeoutliers ctl The year fractions are converted inside Hector to MJD using the formula MJD floor 365 25 x T 1970 40587 0 1 0 5 2 This implies that only sampling periods which are an integer multiple of 1 day are acceptable Hector can read the slightly different offset headers which are of the form see the CATS manual Williams 2008 offset 2003 45479 7 Note however that if an external file with offset information is used then the expected format is of the form day month year NaN NaN NaN where the last three parameters stand for East North an
11. d Up NaN indicates that an offset needs to be estimated A normal number such as 0 tells the program not offset needs to be estimated for that component 4 5 rlrdata format Hector can read PSMSL s monthly data format see http www psmsl org To create an evenly spaced data set inside Hector each month is assumed to take exactly 30 4375 days equal to 730 5 hours Page 21 of 28 Hector user manual Section 5 m 5 Implemented Noise Models Hector can use various types of noise models and in addition accepts various combina tions of them with power law plus white noise being the most popular for GPS time series Williams 2008 wrote the covariance matrix C of this particular combination as Cae cos pI sin E d 3 where I is the unit matrix equal to the covariance matrix for unit white noise and E the covariance matrix for power law noise which depends on the spectral index d The distribution of the magnitudes of both noise models is controlled by the parameter The total variance of the noise is set by o This has been generalized to C g 1 p2 whe 1 on Ey 1 01 2 ee 1 on E2 1 1 1 2 nEn41 4 for N 1 noise models All parameters vary between 0 and 1 As was noted in section 1 only stationary noise is accepted This creates a Toeplitz covariance matrix and only the first column of the covariance matrix needs to be stored This column vector will be denoted by y
12. e covariance matrix almost obtains a Toeplitz structure which means that fast matrix operations can be used This Toeplitz approximation can be chosen using the name PowerlawApprox after the keyword Noisemodels In addition one must specify the number of days before the start of the observation when the noise is assumed to have started after the keyword TimeNoiseStart A value of 1000 is a good first guess 5 5 ARFIMA and ARMA The definition of the ARFIMA noise model is Sowell 1992 L 1 Ltn O L e 10 L is the backshift operator La xi 1 z is the residual at time t observation minus modelled signal and is a white noise signal In other words Eq 10 says that the residuals in the observations can be produced by applying some transformations on a white noise process The operators and are defined as see Hosking 1981 O L O L 1 pL pL Sue a 11 1 0 L 0 4 014 12 This definition is implemented in Hector but note that the definition of the signs before the coefficients in are positive in Sowell 1992 To complicate matters further the coefficients of are negative in the formula s of Zinde Wash 1988 The value of the integers p and q are set by the keywords AR_p and MA_q respec tively in estimatetrend ctl It is advised to use values for p smaller than 5 to ensure that the MLE procedure always start with coefficients values for 1 p of L that produce stationa
13. e nomial bias and the linear trend are altered although still within the 95 confidence interval 2c The spectral index is around 0 38 not too different from 0 5 which is the spectral index for flicker noise To investigate what the linear trend error is for flicker plus white noise we change the NoiseModels keyword to NoiseModels Flicker White Page 13 of 28 Hector user manual Section 3 However estimatetrend does not accept this right away because flicker noise is non stationary Therefore we also need to set the keyword firstdifference firstdifference yes Now estimatetrend runs fine but note that there are now 20 42 missing data because the missing data were artificially created at random times Taking the first difference thus doubles the percentage of missing data In real GPS time series the effect is normally less because of the presence of segments of missing data instead of only a set of single missing data points As a result we obtain a larger trend uncertainty trend 16 260990 4 542752 mm year If interpolation is used then this result changes to trend 15 467635 0 927564 mm year which is similar to the results obtained before Finally one could use the approximation of the power law covariance matrix as ex plained by Bos et al 2012 This requires no interpolation and no first difference interpolation no firstdifference no NoiseModels PowerlawApprox White TimeNoiseStart 1000 0 Now the re
14. er lines Page 4 of 28 Hector user manual Section 3 sampling period 1 0 offset 50284 0 0 offset 50334 0 0 offset 50334 0 1 offset 50784 0 0 offset 51034 0 0 H HH HH H The first line just tells the program that the sampling period of the data is daily T 1 day Furthermore there are offsets at the MJD epochs 50284 50334 50784 and 51034 The last O indicates that these only occur in the East component 0 East 1 North 2 Up If an offset occurs in more than one component the header line for the offset is repeated such as is the case for MJD 50334 Hector cannot find the time of offset these have to be provided by the user This information can also be provided in an another file instead of in the header of the file with the observations In this case one must specify the keyword OffsetFile and its name in the control file One must also not forget to specify the component in the control file Since most people prefer simple day month year format the format for the offsets in the external file is a bit different Using the offset data shown before we have 20 7 1996 NaN 0 8 9 1996 NaN NaN 2 12 1997 NaN 0O 9 8 1998 NaN 0 oOoOO 0 After these header lines if not given in an external file the data is given 50084 0 17 88951 21 47271 19 38038 50085 0 16 88599 20 40868 18 27968 50086 0 16 84916 20 31029 18 14525 As explained before each row contains the time MJD East North and Up component The eas
15. f the DataFile with the raw data which is TEST enu in our case The second line gives the directory where this file can be found and the third live contains the required name of the file with the preprocessed data outliers removed TEST_pre mom The output will always be in mom format which stands for MJD Observations Model The last column is optional and since removeoutliers only replaces the raw observations with the preprocessed observations no third column will be added See section 4 for more details on the acceptable data format removeoutliers fits a linear trend to the raw data using ordinary least sqares and afterwards subtracts this linear trend from the observations to create residuals These residuals are ordered by size and the interquartile range is computed this is the value of the residual at 75 of the sorted array minus the value of the residual at 25 of the sorted array Any residual with a value less than 3 times this interquartile range below or above the median is considered to be an outlier Langbein and Bock 2004 This factor of 3 is set by the keyword IQ_ factor and can be changed by the user Page 6 of 28 Hector user manual Section 3 140 T TEST enu using 1 51544 365 25 2000 2 i20 TEST_pre mom using 1 51544 365 25 2000 2 100 F 4 80 5 60 F 3 40 J 20 F 20 H 40 H 4 60 i fi i 1 1 1996 1996 5 1997 1997 5 1998 1998 5 1999 Fi
16. gure 2 The raw and preprocessed data of the East component stored in TEST enu and TEST_pre mom In this control file one must also give the physical unit of the data This information is not essential but reminds the user to think about the unit of the data and if some scaling is required Such scaling is set by the keyword ScaleFactor which is 1 0 in this case This keyword is optional and if omitted then a default value of 1 0 will be assumed The linear trend is estimated assuming a white noise model and as can be seen from the removeoutliers ct1 file a seasonal i e yearly signal is also included in the estimation process Offsets are also estimated On the other hand no half seasonal signal is estimated nor any other periodic signal and the missing data is not interpolated The keyword periodicsignals is optional and can be omitted In principle one could take the first difference of the observations but this has not been done As was mentioned before the information about the time of offsets can also be specified in another file instead of being listed in the header of the data file In this case the keyword OffsetFile must be set and the name of the file must be given after it The results of removeoutliers stored in TEST_pre mom are shown in Figure 2 which have been generated with gnuplot using the command plot TEST enu using 1 51544 365 25 2000 2 with lines TEST_pre mom using 1 51544 365 25 2000 2
17. hod At the moment no other method has been imple mented The chosen method for the Likelihood computation is AmmarGrag which is ex plained in more detail in Bos et al 2012 The keyword LikelihoodMethod is optional and can be omitted If it is omitted then the default method is AmmarGrag is the percentage of missing data is less than 50 of the total observation period Otherwise the Full Covariance matrix FullCov method is used Note that if the ScaleFactor is not 1 in the file removeoutliers ctl1 then you probably want to set it to 1 in estimatetrend ct1 to avoid applying the scaling twice Again this keyword is optional and a default value of 1 is assumed when this keyword is not provided As was mentioned before the information of the offsets can be given in another file by using the keyword OffsetFile and specifying the component keyword The program estimatetrend shows the following on the screen FKK KKK K K FK FK FK FK K K K K K FK FK FK K K K K K K K 2 2K 2K FK FK FK FK K K K estimatetrend version 1 2 SOOO EE E E Kk kkk kkk k kk kkk k Kk 2k Data format MJD Observations Model Filename TEST_pre mom Number of observations 1000 Percentage of gaps 10 7 AmmarGrag Page 8 of 28 Hector user manual Section 3 Number of CPU s used threads 1 0 25000 0 17500 1736 224211 size 0 146 41 0 51029 0 38316 1724 982836 size 0 000 converged to minimum at 42 0 51033 0 3831
18. hoice In fact Hector was written from scratch in C with the objective to have a faster CATS The reason is Hector is faster is that it accepts only stationary noise with constant noise properties and this allows the use of fast matrices operations The obtained reduction in computation time is a factor of 10 100 compared to CATS see Bos et al 2012 On the other hand CATS has the advantage that it offers a wider range of noise models The choice is up to the user If the observations are non stationary then stationarity can be obtained by taking the first difference of the data or using an approximation of the noise model as explained by Bos et al 2008 2012 where also more information on the theoretical background and more references can be found This manual starts in section 2 by explaining how to install Hector on your computer In section 3 a tutorial on using Hector is presented using two examples of analysing synthetic GPS data with offsets and outliers and a real GPS data set This is followed by section 4 and 5 on acceptable data formats and implemented noise models respectively Finally a quick reference of the parameters in the control files are presented in 6 1 1 How to cite Hector If you find the Hector program useful please cite it in your work as Page 2 of 28 Hector user manual Section 2 Bos M S Fernandes R M S Williams S D P and Bastos L 2012 Fast Error Analysis of Continuous GNSS Observat
19. igure 6 Note that the sampling time in hours is 730 5 hours Furthermore since only one noise model is used each time the fraction is always 1 The controlfile estimatespectrum ctl is DataFile 52_out mom DataDirectory af interpolate no firstdifference no This provides us with the frequency range of 1 1317e 09 to 1 9013e 07 Hz which needs to be fed into modelspectrum In sea level research one is sometimes also interested in the acceleration It is possible to estimate this by setting the optional keyword QuadraticTerm to yes in estimatetrend ctl It s default value is no If we do this then we obtain using the GGM noise model an acceleration of 0 007 0 012 mm yr 3 4 Example 4 Creating synthetic coloured noise In order to perform Monte Carlo simulations one must create time series with synthetic coloured noise This task can be performed with the program simulatenoise It is based on the method described by Kasdin 1995 where an impulse response different for each noise model is convoluted with a white noise time series The result is our desired synthetic noise time series As usual the convolution is performed using FFT There might be some spin up effects because implicitly it is assumed that the noise is zero before the first observation To migitate this problem the keyword TimeNoiseStart can have a large number normally 1000 is enough to specify the amount of extra points before the first obse
20. ions with Missing Data J Geod doi 10 1007 s00190 012 0605 0 1 2 Main features The main features of Hector are 1 Correctly deals with missing data No interpolation or zero padding of the data nor an approximation of the covariance matrix is required as long the noise is or has been made stationary 2 Allows yearly half yearly and other periodic signals to be included in the estimation process of the linear trend 3 Allows the option to estimate offsets at given time epochs 4 Includes power law noise ARFIMA generalized Gauss Markov and white noise models Any combination of these models can be made 5 Allows taking the first difference of the data if power law noise model is chosen including combination of white flicker and random walk 6 Comes with programs to remove outliers to make power spectral density plots and to create files with synthetic coloured noise ees 2 Installation The hector software package is mainly intended to be run on computers with Unix like operating systems For the Linux operating system a convenient debian binary package can be downloaded from http segal ubi pt hector Hector requires the ATLAS http math atlas sourceforge net FFTW3 http www fftw org and the GSL http www gnu org software gs1 libraries and these should be installed first On a computer with the Ubuntu linux distribution one can simply type sudo apt get install libfftw3 3 libatlas3gf base libg
21. isplacements Geophys Res Letters 31 15 Sowell F 1992 Maximum likelihood estimation of stationary univariate fractionally integrated time series models J Econom 53 165 188 Williams S D P 2008 CATS GPS coordinate time series analysis software GPS Solutions 12 2 147 153 Zinde Wash V 1988 Some Exact Formulae for Autoregressive Moving Average Pro cesses Econometric Theory 4 3 384 402 m A History of changes made in the various versions of Hector A 1 Version 1 1 1 The programs estimatetrend removeoutliers estimatespectrum and modelspectrum now accept the name of the control file on the command line For example estimatetrend mycontrol ctl 2 The date of the nominal bias of the whole time series can now be set in estimate trend ctl using the keyword ReferenceEpoch Furthermore in the output this date is now shown in day month year hour format instead of Modified Julian Date If this keyword is not provided then the default behaviour is to define the Refer enceEpoch as the midpoint between the start and end time of the observations 3 The ability to leave out a keyword also made it possible to define other default parameters Now it is no longer necessary to provide the ScaleFactor keyword if this is not different from 1 and the LikelihoodMethod keyword is optinal If it is missing then the AmmarGrag method will be used when the amount of missing data is less than 50 of the whole time serie
22. lation of some extra development libraries to obtain the header files sudo apt get install libfftw3 dev libatlas dev libatlas base dev libgsl0 dev If these extra three libraries have been installed in their default directories then one can compile the Hector source code by going to the hector 1 1 directory and type make sudo make install The programs listed in Table 1 will by default be installed in the usr bin directory If another directory for the binaries is required then the variable PREFIX in Makefile inc needs to be changed To run the examples one also need the Tcl scripting language and the gnuplot plotting program Again on an Ubuntu machine one can type sudo apt get install pgplot tcl aus 3 Tutorial By going step by step through the analysis of some example data sets the working of Hector will be explained First we look at some synthetic GPS data 3 1 Example 1 Synthetic GPS time series with spikes and offsets In the directory examples ex1 a data file called TEST enu is stored which represents some fictional GPS position data set The file extension enu stands for East North Up and these three components are stored in the 2 3 and 4 column respectively The first column contain the Modified Julian Date MJD which is convenient format to make plots These data are stored in a simple ASCII text file and can be inspected by any normal text editor When doing so one will detect some additional head
23. lian Date the second column contains the X coordinate of the PHLW station in metres The next step is to remove the outliers The control file for this example is removeoutliers_2 ctl DataFile PHLW_X mom DataDirectory OutputFile PHLW_X_pre mom interpolate no firstdifference no seasonalsignal yes halfseasonalsignal no estimateoffsets yes PhysicalUnit m IQ_factor 3 0 Note that now the Physical unit is m not millimetres The optional keywords ScaleFac tor and periodicsignals have been omitted After running removeoutliers removeoutliers_2 ctl one can run estimatetrend estimatetrend_2 ctl Its controlfile is given by Page 16 of 28 Hector user manual Section 3 DataFile PHLW_X_pre mom DataDirectory OutputFile PHLW_X_out mom interpolate no firstdifference no seasonalsignal yes halfseasonalsignal no estimateoffsets yes NoiseModels PowerlawApprox White TimeNoiseStart 1000 PhysicalUnit m ReferenceEpoch 2008 1 1 Note here the keyword ReferenceEpoch The output of estimatetrend is 43 0 88540 0 59247 f 4858 989620 size 0 000 converged to minimum at 44 0 88540 0 59247 f 4858 989620 size 0 000 Likelihood value min log L 4858 990 AIC 9713 979 BIC 9703 692 PowerlawApprox fraction 0 115 d 0 5925 0 0855 White fraction 0 8854 No noise parameters to show STD of the innovation noise 0 0049 bias 4728141 298695 0 003466 m at 2008 1 1 0 0 0 000000 trend 0 019957 0
24. name For example the file name TEST enu has the extension enu For the mom and enu format the sampling period in days can be specified in the header as follows sampling period 1 0 If this information is missing then hector tries to estimate the sampling period from the first few observations The sampling periods it can detect automatically are 0 5 hour 1 hour 1 day and 7 days Note that this sampling period must always be given in days 4 1 mom format This format expects 2 or 3 columns The first column contains the time in MJD the second the Observations The third column is optional and should contain the estimated Model Missing data are allowed 4 2 enu format This format is similar to the mom format but has four columns The first column contains the time in MJD the second to the fourth column contain the East North and Up component Missing data are allowed Page 20 of 28 Hector user manual Section 5 4 3 pos format This format is specified by the Plate Boundary Observatory http pbo unavco org data gps The first 9 header files are ignored and from all rows with data only the columns with the Modified Julian Date the X Y Z coordinates and the Ndel Edel Udel values are read Which component is being analysed is set with the keyword component and one of the following values X Y Z North East or Up Note that the units are in metres in these files so you might consider set the keyword S
25. nd how to make a PSD plot of the residuals Before ending this section we would like to show how some parameters can be changed First let us show the advantage of using the method of Bos et al 2012 in terms of computation speed with respect to the standard method which is also implemented in Hector To use the standard method change the likelihood method to FullCov in estimatetrend ctl LikelihoodMethod FullCov Running estimatetrend will now take about twice as long Another method is Levin son which is also slower than AmmarGrag but was used by Bos et al 2008 Note Page 12 of 28 Hector user manual Section 3 10 observed x model Ss Q 1 10 N oO 10 O A 3 10 10 10 10 Frequency cpy Figure 4 The PSD of the residuals and used noise model that these three methods give the same answer as it should be The Levinson method becomes a lot faster if the data is interpolated This can be achieved by altering the keyword Interpolate in estimatetrend ctl interpolate yes After running estimatetrend which is now faster we get Powerlaw fraction 0 671 d 0 3713 0 0810 White fraction 0 3292 No noise parameters to show STD of the innovation noise 1 6077 bias 0 318693 1 035911 mm at MJD 50583 500000 trend 15 485505 0 724109 mm year One can see that linear interpolation of the missing data does not have a large effect on the estimated noise parameters but th
26. oises Geophys Res Letters 19 4 333 336 Beran J 1992 Statistical methods for data with long range dependence Statistical Science 7 4 404 416 Bos M S Fernandes R M S Williams S D P and Bastos L 2008 Fast error analysis of continuous GPS observations J Geod 82 157 166 Bos M S Fernandes R M S Williams S D P and Bastos L 2012 Fast Error Analysis of Continuous GNSS Observations with Missing Data J Geod Brockwell P and Davis R A 2002 Introduction to Time Series and Forecasting Springer Verlag New York second edition edition Buttkus B 2000 Spectral Analysis and Filter Theory in Applied Geophysics Springer Verlag Berlin Heidelberg Doornik J A and Ooms M 2003 Computational Aspects of Maximum Likelihood Estimation of Autoregressive Fractionally Integrated Moving Average Models Com putational Statistics and Data Analysis 42 333 348 Page 26 of 28 Hector user manual Section A Hosking J R M 1981 Fractional differencing Biometrika 68 165 176 Kasdin N J 1995 Discrete simulation of colored noise and stochastic processes and 1 f power law noise generation Proc IEEE 83 5 802 827 Langbein J 2004 Noise in two color electronic distance meter measurements revisited J Geophys Res 109 B04406 Langbein J and Bock Y 2004 High rate real time GPS network at Parkfield Utility for detecting fault slip and seismic d
27. rvations need to be modelled see also section 5 4 In the directory examples ex4 the control file simulatenoise ct1l is given Page 18 of 28 Hector user manual Section 3 10 10 10 Frequency cpy Figure 6 The power spectral density plot of tide gauge data at Cascais Page 19 of 28 Hector user manual Section 4 SimulationDir SimulationLabel test_base NumberOfSimulations 10 NumberOfPoints 5000 SamplingPeriod 1 TimeNoiseStart 1000 NoiseModels ARFIMA AR_p 1 MA_q 0 Some of these keywords are new For example SimulationDir specifies in which di rectory the created files should be stored The keyword SimulationLabel specifies the base name of those files The next keyword tells hector how many simulation runs are required The filenames will in this case be test_base0 mom test_basel mom test_base9 mom The keyword NumberOfPoints specifies the number of points in the the time series and the keyord TimeNoiseStart was already discussed above When simulatenoise is run it will ask the user to manually enter the parameter values of the chosen noise model In this case it will ask the values of and d m 4 Acceptable data format Hector can accept various data formats which are described in this section All of the are plain ASCII files and the time should always be increasing and the time step should be constant The data format is specified by the extension of the file
28. ry noise If p and q are zero then one obtains again a pure power law noise process We have implemented the method of Doornik and Ooms 2003 to com pute the first column of the covariance matrix For the special case when d 0 we use the equations of Zinde Wash 1988 and can be selected by using the name ARMA after the keyword Noisemodels For sea level research the first order auto regressive noise model is a popular choice ARMA 1 0 For pure ARMA noise models faster Maximum Likelihood Methods exist see for example Brockwell and Davis 2002 but Hector will give the same result It can be used for first differenced data Page 23 of 28 Hector user manual Section 6 5 6 Generalized Gauss Markov noise model Langbein 2004 took the first order Gauss Markov noise model depending on the pa rameter and modified with an additional parameter d to create power law noise with a slope of 2d in the power density spectrum which flattens to white noise at the very low and very high frequencies The analytical expression for the autocovariance vector with 1 for this noise model is _ Pd a 1 9 PNT 1 et 2F d d i 1 i 1 13 This noise model can be used using the name GGM after the keyword Noisemodels in estimatetrend ctl ees Quick reference for the control files 6 1 removeoutliers ctl This file is read by removeoutliers Keyword Value s DataFile name of file with observa
29. s Otherwise the FullCov method is used 4 The ARFIMA model had two bugs one due to a sign error and one due to accessing arrays outside their range which have been resolved 5 The keyword MinimizingMethod has been removed because the Nelder Mead Simplex method is the only method available Page 27 of 28 Hector user manual Section A 6 The header information about the sampling period and the time of offsets can now be given in a separate file using the keyword OffsetFile 7 It is now also possible to estimate a quadratic polynomial by setting the keyword QuadraticTerm to yes 8 The program simulatenoise was added 9 Implemented the dd mm year NaN NaN NaN offset format for external files A 2 Version 1 2 1 simulatenoise has now correct power 2 The ARMA and ARFIMA noise model now also accept first difference 3 All programs now except ridiculously long names Page 28 of 28
30. s 24 6 1 removeoutliers cth 2 a a a a en 24 6 2 estimatetrend ctl oa oa a a a a a a 24 6 3 estimatespectrum ctl ooa a 25 6 4 simulatenoise ctlh oaoa a aa a a a a 25 7 License and Copyright 26 A History of changes made in the various versions of Hector 27 A 1 Version 1 1 0 0 00000000 0000000000000 a a 27 A 2 Version 1 2 oaa aaa a a a 28 mm l Introduction Hector is a software package that can be used to estimate the linear trend in time series with temporal corelated noise Trend estimation is a common task in geophysical research where one is interested in phenomena such as the increase in temperature sea level or GNSS derived station position over time It is well known that in most geophysical time series the noise is correlated in time Agnew 1992 Beran 1992 and this has a significant influence on the accuracy by which the linear trend can be estimated Therefore the use of a computer program such as Hector is advisable Hector assumes that the user knows what type of temporal correlated noise exists in the observations and estimates both the linear trend and the parameters of the chosen noise model using the Maximum Likelihood Estimation MLE method Since for most observations the choice of noise model can be found from literature or by looking at the power spectral density this is sufficient in most cases Instead of using Hector one can also use the CATS software of Williams 2008 which is a good and popular c
31. sl0ldbl The installation procedure of hector on a 64 bit computer is now sudo dpkg i hector_1 1_amd64 deb This will put the binaries in usr bin the documentation including this manual in usr share doc hector and the examples in usr share hector examples The man pages of the binaries are stored in usr share man manl1 For 32 bit computers one should replace the debian package by hector_1 1_i386 deb To remove the 64 bit hector package type sudo dpkg r hector_1 1_amd64 deb Page 3 of 28 Hector user manual Section 3 Table 1 List of programs provided by the Hector software package Name Description estimatetrend Main program to estimate a linear trend estimatespectrum Program to estimate the power spectral density from the data or residuals using the Welch periodogram method modelspectrum Given a noise model and values of the noise parame ters this program computed the associated power spec tral density for given frequency range removeoutliers Program to remove outliers from the data simulatenoise Program to files with synthetic coloured noise date2mjd Small program to convert calender date into Modified Julian Date mjd2date The inverse of date2MJD If this installation went successful then one can skip the rest of this section and try out the examples For other systems the source code of Hector needs to be downloaded and compiled using a C compiler such as g This will also require the instal
32. sult is bias 0 870049 0 962471 mm at MJD 50583 500000 trend 16 437759 0 721958 mm year There is no single set up which works best for all situations Nevertheless the Ammar Grag likelihood method i e how the likelihood value is computed is the fastest method when the number of missing data is less than around 50 otherwise the FullCov method should be used For GPS time series the spectral index is normally around 0 5 equal to a 1 or v 1 and we obtain in most case the best result with the noise model combination PowerlawApprox White 3 2 Example 2 A real GPS time series with a lot of missing data GPS position time series are normally given in a Cartesian reference frame with the origin at the centre of the Earth with the X and Y axes lying in the equatorial plane and with the X axis passing through the Greenwich meridian For plate tectonic research it is more convenient to use the North East and Up reference frame This also separates the Up component which is normally noisier from the North and East component In the directory examples ex2 the script convert_sol_files tcl performs this transforma tion This script reads all filenames with the sol extention in its directory and converts each file from a Cartesian XYZ to a a geodetic East North and Up reference frame enu format see section 4 This sol data format is a special format and contains the date in the first column the year fraction in the second
33. t component column 2 can be plotted in gnuplot using the command plot TEST enu using 1 51544 365 25 2000 2 with lines The time values are converted from MJD to years The result is shown in Figure 1 where one can detect the offsets and the presence of outliers 3 1 1 Removal of outliers To remove the outliers we need to run removeoutliers which requires a control file called removeoutliers ctl Hector uses various control files which are simple text files and the rows with the keywords can occur in any order If Hector cannot find a keyword then it will complain unless the keyword is optional If the keyword optional and omitted then its default value will be used Another control file can be specified on the command line For example removeoutliers othercontrolfile ctl Page 5 of 28 Hector user manual Section 3 140 T TEST enu using 1 51544 365 25 2000 2 120 L 80 F 4 60 F 4 40 J of eeen ih Ly yaent l 60 i fi 1 1 1996 1996 5 1997 1997 5 1998 1998 5 1999 Figure 1 The raw data of the East component of TEST enu The contents of removeoutliers ctl in the examples ex1 directory is DataFile TEST enu DataDirectory OutputFile TEST_pre mom component East interpolate no firstdifference no seasonalsignal yes halfseasonalsignal no periodicsignals estimateoffsets yes IQ factor 3 0 PhysicalUnit mm ScaleFactor 1 0 The first line gives the name o
34. terpolate yes no firstdifference yes no QuadraticTerm yes no optional default no seasonalsignal yes no halfseasonalsignal yes no periodicsignals a sequence of numbers separated by spaced represent ing the period of the periodic signals in days optional estimateoffsets yes no ScaleFactor a number to scale the observations optional default 1 PhysicalUnit the physical unit of the observations NoiseModels chose any set from White Flicker RandomWalk Pow erlaw PowerlawApprox ARFIMA ARMA and GGM Note only White Flicker RandomWalk Powerlaw can be used when firstdifference yes LikelinoodMethod chose one from AmmarGrag Levinson or FullCov op tional default Ammargrag if percentage of missing data is less than 50 of the whole time series Otherwise Full Cov method is used AR_p number of AR coefficients only for ARFIMA or ARMA MA_q number of MA coefficients only for ARFIMA or ARMA TimeNoiseStart number of days before the start of the observations when it is assumed that the noise started only for PowerlawAp prox 6 3 estimatespectrum ctl This file is read by estimatespectrum which creates a file called estimatespectrum out Keyword Value s DataFile name of file with observations DataDirectory directory where file with observations is stored interpolate yes no firstdifference yes no ScaleFactor a number to scale the observations optional default 1 6 4 simulatenoise ctl
35. the value of the model at the time at row 3 half of the time series hector notes this time If another reference epoch for the nominal bias is required then this date can be provided after the keyword ReferenceEpoch using year month and day For example a reference epoch of 1 January 2008 is given by ReferenceEpoch 2008 1 1 See section 3 2 1 for a more detailed example Also shown in the output are the values of the estimated offsets The results of estimatetrend stored in TEST_out mom are shown in Figure 3 which have been generated in gnuplot with the command plot TEST enu using 1 51544 365 25 2000 2 with lines TEST_out mom using 1 51544 365 25 2000 2 with lines TEST_out mom using 1 51544 365 25 2000 3 with lines 3 1 3 Plotting the power spectral density We have used a power law plus white noise model in our estimation process To verify if this is correct it is good to make a power spectral density PSD plot of the residuals i e the difference between observations minus the estimated linear trend and additional offsets and periodic signals This can be done using the program estimatespectrum which computes a Welch periodogram stored in the file estimatespectrum out As usual the behaviour of this program is controlled by the file estimatespectrum ctl DataFile TEST_out mom DataDirectory interpolate no firstdifference no ScaleFactor 1 0 Page 10 of 28 Hector user manual Sec
36. tion 3 140 T TEST enu using 1 51544 365 25 2000 2 TEST_out mom using 1 51544 365 25 2000 2 420 L TEST _out mom using 1 51544 365 25 2000 3 100 F 5 60 F 4 i 1996 1996 5 1997 1997 5 1998 1998 5 1999 Figure 3 The raw filtered data and the estimated model of the East component stored in TEST enu and TEST_out mom The contents of estimatespectrum out is shown in Figure 4 By default the time series is devided into 4 parts by estimatespectrum Since 50 overlap is used there are 7 segments in total and in this case the length of each segment is 250 data points The first and last 10 of each segment is smoothed to zero using a Parzen window function If more segments are required to get a better averaging of the periodograms but at the cost of a smaller frequency range one can specify the number of divisions of the data on the command line For example estimatespectrum 8 which will divided the time series into 8 pieces creating 15 segments due to the 50 overlap used The area underneath the one sided power spectral density plot should be equal to the variance of the time series Buttkus 2000 This area underneath the PSD plot has been computed by simply assuming that each point represents a bar of width 1 At and adding them all up Next it is important to note the begin and end value of the frequency range Data format MJD Observations Model Filename
37. tions DataDirectory directory where file with observations is stored OffsetFile name of file with header information offsets OutputFile name of file with observations and estimated model in mom format component only required for the enu and neu format or when an OffsetFile is being used Select East North or Up interpolate yes no firstdifference yes no QuadraticTerm yes no optional default no seasonalsignal yes no halfseasonalsignal yes no periodicsignals a sequence of numbers reprenting the period in days op tional estimateoffsets yes no ScaleFactor PhysicalUnit 1Q_ factor a number to scale the observations optional default 1 the physical unit of the observations the number used to scale the interquartile range 6 2 estimatetrend ctl This file is read by estimatetrend and by modelspectrum although the latter only reads the keyword NoiseModels and if necessary the keywords AR_p MA_q and TimeNoiseStart The program modelspectrum creates a file called modelspectrum out Page 24 of 28 Hector user manual Section 6 Keyword Value s DataFile name of file with observations DataDirectory directory where file with observations is stored OffsetFile name of file with header information offsets OutputFile name of file with observations and estimated model in mom format component only required for the enu and neu format or when an OffsetFile is being used Select East North or Up in
38. with lines 3 1 2 Estimation of the linear trend Now that the outliers have been removed we can estimate the linear trend The pa rameters that control this analysis are by default given in the file estimatetrend ctl As before another name for the control file can be specified on the command line The contents of estimatetrend ctl is DataFile TEST_pre mom DataDirectory af Page 7 of 28 Hector user manual Section 3 OutputFile TEST_out mom interpolate no firstdifference no seasonalsignal yes halfseasonalsignal no periodicsignals estimateoffsets yes NoiseModels Powerlaw White LikelihoodMethod AmmarGrag PhysicalUnit mm ScaleFactor 1 0 Again there is the keyword DataFile which should be given by the name of the input file which is TEST_pre mom in this case because we are now going to use the preprocessed observations These preprocessed observations together with the estimated trend in the third column are written to the file name given after the keyword OutputFile As before the data is not interpolated and the first difference of the data is not applied However a seasonal signal and offsets are estimated The chosen noise models are a combination of power law noise plus white noise Alternatively we could have chosen from Flicker RandomWalk ARMA ARFIMA or GGM Generalized Gauss Markov for the noise models The numerical method for finding the maximum likelihood value is the Nelder amp Mead also called Simplex met

Download Pdf Manuals

image

Related Search

Related Contents

PLA GUICIDAS  RACK-250 CHASSIS USER`S MANUAL  Sprint Emerel Bactericida  descargar - Steyr Arms  point relais argentan  OMNITRONIC FX-524 User Manual  Epson STYLUS PHOTO 900 User's Manual  fichier 1 - CRDP de Montpellier  Mercury 2003 Automobile User Manual  

Copyright © All rights reserved.
Failed to retrieve file