Skip to content

Update read_local to handle comma-delimited SCNL inputs and add verbose flag#39

Open
darren-tpk wants to merge 4 commits into
masterfrom
read_local_update
Open

Update read_local to handle comma-delimited SCNL inputs and add verbose flag#39
darren-tpk wants to merge 4 commits into
masterfrom
read_local_update

Conversation

@darren-tpk

Copy link
Copy Markdown
Collaborator
  • Added verbose flag, similar to gather_waveforms.
  • Added ability to parse comma-delimited SCNL inputs (e.g., station = 'CERB,CESW,CEPE') for miniSEED file pattern matching, using itertools.product. This follows the behavior of obspy.clients.fdsn.client.get_waveforms().

@darren-tpk

Copy link
Copy Markdown
Collaborator Author

do we also want to swap out merge=True with merge_fill_value=0, and introduce _safe_merge similar to gather_waveforms?

to accommodate different miniseed naming patterns (some include a minute field, or have channels with extra dots and letters) and trailing file names (e.g., .mseed)
1. Currently coord_file must contain a dictionary mapping station codes to latitude, longitude and elevation in a tuple.
2. Infrasound arrays typically contain sensors that share the same station code but have different location codes and coordinates.
3. I would argue for the dictionary to use tr.id as keys instead of just the station code, and for the coordinates assignment to not be fatal.
4. Current commit allows for a coord_file=None backdoor. Perhaps coord_file should be an optional argument that defaults to None. Just in case other codes depend on the current position of coord_file as the 2nd input, I am not moving it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants