test_process ============ .. py:module:: test_process .. autoapi-nested-parse:: Test the preprocessing functions which include standardization and rotation .. note:: Pysep.preprocess() is almost all ObsPy functions so we don't test that as we expect ObsPy to be testing their own functionality Functions --------- .. autoapisummary:: test_process.test_event test_process.test_inv test_process.test_st test_process.test_trim_start_end_times test_process.test_merge_data_gaps test_process.test_merge_data_gap_fraction test_process.test_resample_data test_process.test_format_streams_for_rotation test_process.test_rotate_to_uvw test_process.test_append_back_azimuth_to_stats test_process.test_rotate_streams_fail test_process.test_rotate_streams test_process.test_rotate_streams_enz test_process.test_rotate_streams_12z Module Contents --------------- .. py:function:: test_event() Pre-saved event object .. py:function:: test_inv() Pre-saved event object .. py:function:: test_st(test_event, test_inv) Pre-saved event object .. py:function:: test_trim_start_end_times(test_st) Make sure we can trim per-station waveforms to their shortest component and also merge existing waveforms, dropping those with data gaps .. py:function:: test_merge_data_gaps(test_st) Make sure merging data gaps works for a few different options. Does not check values, just runs through the function .. py:function:: test_merge_data_gap_fraction(test_st) Try out the fraction percentage function .. py:function:: test_resample_data(test_st) Resample data to a lower sampling rate .. py:function:: test_format_streams_for_rotation(test_st) Check that we can add null traces if we're missing data streams .. py:function:: test_rotate_to_uvw(test_st) Test orientation UVW rotation TODO test function and get better assertions .. py:function:: test_append_back_azimuth_to_stats(test_st, test_inv, test_event) Check that back azimuth values are appended correctly .. py:function:: test_rotate_streams_fail(test_st, test_inv, test_event) Ensure that stream rotation does not go ahead if no back azimuth values are specified .. py:function:: test_rotate_streams(test_st, test_inv, test_event) Ensure that stream rotation works as expected after we format SAC headers .. py:function:: test_rotate_streams_enz(test_st, test_inv) Test that streams rotate from ENZ even if components are already ENZ .. py:function:: test_rotate_streams_12z() Test that 12Z components can be rotated to ZNE