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
5dcfa25e
Commit
5dcfa25e
authored
2 years ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Change name to be more readable
parent
733a7a82
No related branches found
No related tags found
1 merge request
!56
Extract GPS data for Q330
Pipeline
#2087
passed with stage
in 3 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/mseed/mseed.py
+6
-6
6 additions, 6 deletions
sohstationviewer/model/mseed/mseed.py
with
6 additions
and
6 deletions
sohstationviewer/model/mseed/mseed.py
+
6
−
6
View file @
5dcfa25e
...
@@ -380,13 +380,13 @@ class MSeed(DataTypeModel):
...
@@ -380,13 +380,13 @@ class MSeed(DataTypeModel):
# Start pass the end of the string and look backward one
# Start pass the end of the string and look backward one
# index every iteration so we don't have to add 1 to the
# index every iteration so we don't have to add 1 to the
# final index.
# final index.
i
=
len
(
height_str
)
current_idx
=
len
(
height_str
)
current_char
=
height_str
[
i
-
1
]
current_char
=
height_str
[
current_idx
-
1
]
while
current_char
!=
'
.
'
and
not
current_char
.
isnumeric
():
while
current_char
!=
'
.
'
and
not
current_char
.
isnumeric
():
i
-=
1
current_idx
-=
1
current_char
=
height_str
[
i
-
1
]
current_char
=
height_str
[
current_idx
-
1
]
height
=
float
(
height_str
[:
i
])
height
=
float
(
height_str
[:
current_idx
])
height_unit
=
height_str
[
i
:]
height_unit
=
height_str
[
current_idx
:]
# Latitude and longitude are encoded in the format
# Latitude and longitude are encoded in the format
# <degree><decimal minute><cardinal direction>. For
# <degree><decimal minute><cardinal direction>. For
...
...
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