Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
e4ca62b6
Commit
e4ca62b6
authored
2 years ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Implement format check for Q330 GPS status
parent
afaf778b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/mseed/mseed.py
+38
-0
38 additions, 0 deletions
sohstationviewer/model/mseed/mseed.py
with
38 additions
and
0 deletions
sohstationviewer/model/mseed/mseed.py
+
38
−
0
View file @
e4ca62b6
...
@@ -309,3 +309,41 @@ class MSeed(DataTypeModel):
...
@@ -309,3 +309,41 @@ class MSeed(DataTypeModel):
f
'
Read
{
count
}
waveform files
'
,
LogType
.
INFO
)
f
'
Read
{
count
}
waveform files
'
,
LogType
.
INFO
)
sortData
(
self
.
waveformData
)
sortData
(
self
.
waveformData
)
@staticmethod
def
check_q330_gps_status_format
(
gps_status_lines
:
List
[
str
]):
if
gps_status_lines
[
12
].
lower
()
!=
'
pll status
'
:
raise
ValueError
(
'
Q330 log data is malformed.
'
'
PLL status does not follow GPS status.
'
)
if
'
fix type
'
not
in
gps_status_lines
[
3
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Fix type is not at expected position.
'
)
if
'
height
'
not
in
gps_status_lines
[
4
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Height is not at expected position.
'
)
if
'
latitude
'
not
in
gps_status_lines
[
5
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Latitude is not at expected position.
'
)
if
'
longitude
'
not
in
gps_status_lines
[
6
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Longitude is not at expected position.
'
)
if
'
sat. used
'
not
in
gps_status_lines
[
8
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Sat. Used is not at expected position.
'
)
if
'
last gps timemark
'
not
in
gps_status_lines
[
11
].
lower
():
raise
ValueError
(
'
Q330 log data is malformed.
'
'
Last GPS timemark is not at expected position.
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment