Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Seitosh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Seitosh
Seitosh
Commits
51045329
Commit
51045329
authored
Jul 12, 2016
by
thomas.forbriger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libdatrwxx [TASK]: uniquely specify sign of correction
parent
0d001823
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/libs/libdatrwxx/mseed/mseedread_mseedrecord_other.cc
src/libs/libdatrwxx/mseed/mseedread_mseedrecord_other.cc
+13
-4
No files found.
src/libs/libdatrwxx/mseed/mseedread_mseedrecord_other.cc
View file @
51045329
...
...
@@ -29,11 +29,12 @@
*
* REVISIONS and CHANGES
* - 23/06/2016 V1.0 Thomas Forbriger
* - 12/07/2016 V1.1 thof: uniquely specify sign of correction
*
* ============================================================================
*/
#define DATRW_MSEEDREAD_MSEEDRECORD_OTHER_CC_VERSION \
"DATRW_MSEEDREAD_MSEEDRECORD_OTHER_CC V1.
0
"
"DATRW_MSEEDREAD_MSEEDRECORD_OTHER_CC V1.
1
"
#include <datrwxx/mseedread.h>
#include<aff/subarray.h>
...
...
@@ -77,27 +78,35 @@ namespace datrw {
libtime
::
TRelativeTime
corr
(
0
,
0
,
0
,
0
,
0
,
100
);
//long int tcorr=this->recordheader().tcorr;
int
tcorr
=
this
->
recordheader
().
tcorr
;
if
(
tcorr
>
0
)
if
(
tcorr
>
=
0
)
{
retval
+=
(
corr
*
tcorr
);
}
else
{
// result of multiplication of libtime::TAbsoluteTime with
// any value (also negative) provides a positive result;
// swap sign just to make things clear
tcorr
*=
-
1
;
retval
-=
(
corr
*
tcorr
);
}
}
if
(
this
->
hasblockette1001
())
{
const
int
&
tcorr
=
this
->
blockette1001
().
iusec
();
int
tcorr
=
this
->
blockette1001
().
iusec
();
if
(
tcorr
!=
0
)
{
libtime
::
TRelativeTime
corr
(
0
,
0
,
0
,
0
,
0
,
1
);
if
(
tcorr
>
0
)
if
(
tcorr
>
=
0
)
{
retval
+=
(
corr
*
tcorr
);
}
else
{
// result of multiplication of libtime::TAbsoluteTime with
// any value (also negative) provides a positive result;
// swap sign just to make things clear
tcorr
*=
-
1
;
retval
-=
(
corr
*
tcorr
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment