razorback.io package
helper functions to read/write files
- razorback.io.clean_whitespace(separator)
- razorback.io.load_ats(filenames, calibrations=None)
return a SyncSignal from multiples ats files
- razorback.io.load_mth5(filename, tag_template, clean_field=None)
return a SignalSet iterable from mth5 file
- Parameters:
filename (str | Path) – path to the mth5 file
tag_template (str) –
template string for generating tags the fields used for the template are:
survey
station
channel
clean_field (function) – a function that takes a string and returns a string use to clean the fields before passing to tag_template
- Yields:
razorback.SignalSet – each SignalSet contains one channel of one station of one survey.