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
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
d1fad83c
Commit
d1fad83c
authored
1 year ago
by
Wilbur, Spencer Franklin
Browse files
Options
Downloads
Patches
Plain Diff
Resolved comments regarding previous merge request.
parent
1b7e22e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!286
Updates to IRISFactory and channel conversions when using ASL variometers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/edge/IRISFactory.py
+3
-8
3 additions, 8 deletions
geomagio/edge/IRISFactory.py
with
3 additions
and
8 deletions
geomagio/edge/IRISFactory.py
+
3
−
8
View file @
d1fad83c
...
...
@@ -151,7 +151,7 @@ class IRISFactory(MiniSeedFactory):
TimeseriesUtility
.
pad_and_trim_trace
(
trace
=
data
[
0
],
starttime
=
starttime
,
endtime
=
endtime
)
# Beneath is necessary code to check the reported azimuth
# Beneath is necessary code to check the reported azimuth
# for the LF1 (E or Y) and LF2 (H or X) channels and determine if intstrument axes have been reversed.
azi
,
dip
=
self
.
_get_orientations
(
data
[
0
],
starttime
)
...
...
@@ -238,7 +238,6 @@ class IRISFactory(MiniSeedFactory):
network
=
trace
.
stats
.
network
,
location
=
trace
.
stats
.
location
,
)
FDSN
=
FDSNClient
(
"
IRIS
"
)
inv
=
FDSN
.
get_stations
(
...
...
@@ -248,20 +247,16 @@ class IRISFactory(MiniSeedFactory):
level
=
"
channel
"
,
)
# Construct the channel code using the current trace's information
channel_code
=
(
f
"
{
sncl
.
network
}
.
{
sncl
.
station
}
.
{
sncl
.
location
}
.
{
sncl
.
channel
}
"
)
channel_code
=
f
"
{
sncl
.
network
}
.
{
sncl
.
station
}
.
{
sncl
.
location
}
.
{
sncl
.
channel
}
"
# Get orientation for the constructed channel code and time
orient
=
inv
.
get_orientation
(
channel_code
,
starttime
)
azimuth
=
orient
[
"
azimuth
"
]
dip
=
orient
[
"
dip
"
]
# Return both azimuth and dip
# Return both azimuth and dip
return
azimuth
,
dip
return
0.0
# Default azimuth if metadata is not available
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