Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance scheduled for Thursday, April 10, from 5 PM to 6 PM ET.
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
df95097e
Commit
df95097e
authored
10 years ago
by
Hal Simpson
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up moved code, and moved convert_trace_to_decimal into post_process
parent
9d442a60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/edge/EdgeFactory.py
+1
-14
1 addition, 14 deletions
geomagio/edge/EdgeFactory.py
with
1 addition
and
14 deletions
geomagio/edge/EdgeFactory.py
+
1
−
14
View file @
df95097e
...
@@ -17,19 +17,6 @@ from obspy import earthworm
...
@@ -17,19 +17,6 @@ from obspy import earthworm
from
ObservatoryMetadata
import
ObservatoryMetadata
from
ObservatoryMetadata
import
ObservatoryMetadata
def
edge_add_parse_arguments
(
parser
):
"""
add edge specific arguments to parser
Parameters
----------
parser: argparse.ArgumentParser
"""
parser
.
add_argument
(
'
--input-edge-host
'
,
help
=
'
ip address of the edge input server
'
)
parser
.
add_argument
(
'
--input-edge-port
'
,
type
=
int
,
help
=
'
port number of the edge input server
'
)
class
EdgeFactory
(
TimeseriesFactory
):
class
EdgeFactory
(
TimeseriesFactory
):
"""
TimeseriesFactory for Edge related data.
"""
TimeseriesFactory for Edge related data.
...
@@ -327,7 +314,6 @@ class EdgeFactory(TimeseriesFactory):
...
@@ -327,7 +314,6 @@ class EdgeFactory(TimeseriesFactory):
data
=
self
.
client
.
getWaveform
(
network
,
station
,
location
,
data
=
self
.
client
.
getWaveform
(
network
,
station
,
location
,
edge_channel
,
starttime
,
endtime
)
edge_channel
,
starttime
,
endtime
)
data
.
merge
()
data
.
merge
()
self
.
_convert_trace_to_decimal
(
data
)
self
.
_set_metadata
(
data
,
self
.
_set_metadata
(
data
,
observatory
,
channel
,
type
,
interval
)
observatory
,
channel
,
type
,
interval
)
return
data
return
data
...
@@ -385,6 +371,7 @@ class EdgeFactory(TimeseriesFactory):
...
@@ -385,6 +371,7 @@ class EdgeFactory(TimeseriesFactory):
Notes: the original timeseries object is changed.
Notes: the original timeseries object is changed.
"""
"""
self
.
_convert_trace_to_decimal
(
timeseries
)
for
trace
in
timeseries
:
for
trace
in
timeseries
:
if
isinstance
(
trace
.
data
,
numpy
.
ma
.
MaskedArray
):
if
isinstance
(
trace
.
data
,
numpy
.
ma
.
MaskedArray
):
trace
.
data
.
set_fill_value
(
numpy
.
nan
)
trace
.
data
.
set_fill_value
(
numpy
.
nan
)
...
...
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