Skip to content

Commit

Permalink
Modify FDSN logic to acknowledge multiple channels
Browse files Browse the repository at this point in the history
There was a hardcoded assumption in get_inventory_from_df that
only one valid value of channel instance should be added to the list
of returned channels from a station.

This is not only false in the case of wildcards (e.g. *F*, *Q*),
it is also false when a channel has been broken into multiple runs.

CAS04 is a good example of this.

See mth5 issue #157, and aurora 277 for more details.
  • Loading branch information
kkappler committed Jul 29, 2023
1 parent 896d771 commit dbc5ca1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mth5/clients/fdsn.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,12 @@ def get_inventory_from_df(self, df, client=None, data=True):
channel=ch_row.channel,
level="response",
)
returned_chan = cha_inv.networks[0].stations[0].channels[0]
returned_sta.channels.append(returned_chan)
# 2023-07-28: Try acknowledge multiple channel runs
# See issue mth5 issue #157 and aurora #277
for returned_chan in cha_inv.networks[0].stations[0].channels:
returned_sta.channels.append(returned_chan)
#returned_chan = cha_inv.networks[0].stations[0].channels[0]
#returned_sta.channels.append(returned_chan)

# -----------------------------
# get data if desired
Expand Down

0 comments on commit dbc5ca1

Please sign in to comment.