Skip to content
Snippets Groups Projects
Commit d1fad83c authored by Wilbur, Spencer Franklin's avatar Wilbur, Spencer Franklin
Browse files

Resolved comments regarding previous merge request.

parent 1b7e22e4
No related branches found
No related tags found
1 merge request!286Updates to IRISFactory and channel conversions when using ASL variometers
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment