aurora package¶
Subpackages¶
- aurora.config package
- aurora.pipelines package
- Submodules
- aurora.pipelines.fourier_coefficients module
- aurora.pipelines.helpers module
- aurora.pipelines.process_mth5 module
- aurora.pipelines.run_summary module
- aurora.pipelines.time_series_helpers module
- aurora.pipelines.transfer_function_helpers module
- aurora.pipelines.transfer_function_kernel module
TransferFunctionKernel
TransferFunctionKernel.all_fcs_already_exist
TransferFunctionKernel.apply_clock_zero()
TransferFunctionKernel.check_if_fcs_already_exist()
TransferFunctionKernel.config
TransferFunctionKernel.dataset
TransferFunctionKernel.dataset_df
TransferFunctionKernel.export_tf_collection()
TransferFunctionKernel.get_mth5_file_open_mode()
TransferFunctionKernel.initialize_mth5s()
TransferFunctionKernel.is_valid_dataset()
TransferFunctionKernel.kernel_dataset
TransferFunctionKernel.make_processing_summary()
TransferFunctionKernel.memory_check()
TransferFunctionKernel.mth5_objs
TransferFunctionKernel.processing_config
TransferFunctionKernel.processing_summary
TransferFunctionKernel.processing_type
TransferFunctionKernel.show_processing_summary()
TransferFunctionKernel.update_dataset_df()
TransferFunctionKernel.valid_decimations()
TransferFunctionKernel.validate()
TransferFunctionKernel.validate_decimation_scheme_and_dataset_compatability()
TransferFunctionKernel.validate_processing()
TransferFunctionKernel.validate_save_fc_settings()
mth5_has_fcs()
station_obj_from_row()
- Module contents
- aurora.sandbox package
- Subpackages
- Submodules
- aurora.sandbox.debug_mt_metadata_issue_85 module
- aurora.sandbox.mth5_channel_summary_helpers module
- aurora.sandbox.mth5_helpers module
- aurora.sandbox.obspy_helpers module
- aurora.sandbox.plot_helpers module
- aurora.sandbox.triage_metadata module
- Module contents
- aurora.test_utils package
- Subpackages
- aurora.test_utils.mth5 package
- aurora.test_utils.parkfield package
- aurora.test_utils.synthetic package
- Submodules
- aurora.test_utils.synthetic.make_mth5_from_asc module
- aurora.test_utils.synthetic.make_processing_configs module
- aurora.test_utils.synthetic.paths module
- aurora.test_utils.synthetic.processing_helpers module
- aurora.test_utils.synthetic.rms_helpers module
- aurora.test_utils.synthetic.station_config module
- Module contents
- Submodules
- aurora.test_utils.dataset_definitions module
- Module contents
- Subpackages
- aurora.time_series package
- Submodules
- aurora.time_series.apodization_window module
ApodizationWindow
ApodizationWindow.S1
ApodizationWindow.S2
ApodizationWindow.apodization_factor
ApodizationWindow.coherent_gain
ApodizationWindow.enbw()
ApodizationWindow.make()
ApodizationWindow.nenbw
ApodizationWindow.num_samples_window
ApodizationWindow.summary
ApodizationWindow.taper
ApodizationWindow.test_linear_spectral_density_factor()
- aurora.time_series.decorators module
- aurora.time_series.frequency_band_helpers module
- aurora.time_series.spectrogram module
- aurora.time_series.time_axis_helpers module
- aurora.time_series.window_helpers module
- aurora.time_series.windowed_time_series module
- aurora.time_series.windowing_scheme module
WindowingScheme
WindowingScheme.apply_fft()
WindowingScheme.apply_sliding_window()
WindowingScheme.apply_taper()
WindowingScheme.available_number_of_windows()
WindowingScheme.cast_windowed_data_to_xarray()
WindowingScheme.clone()
WindowingScheme.downsample_time_axis()
WindowingScheme.dt
WindowingScheme.duration_advance
WindowingScheme.frequency_axis()
WindowingScheme.left_hand_window_edge_indices()
WindowingScheme.linear_spectral_density_calibration_factor
WindowingScheme.num_samples_advance
WindowingScheme.window_duration
window_scheme_from_decimation()
- aurora.time_series.xarray_helpers module
- Module contents
- aurora.transfer_function package
- Subpackages
- aurora.transfer_function.plot package
- aurora.transfer_function.regression package
- Submodules
- aurora.transfer_function.regression.RME module
- aurora.transfer_function.regression.RME_RR module
- aurora.transfer_function.regression.base module
- aurora.transfer_function.regression.helper_functions module
- aurora.transfer_function.regression.iter_control module
- aurora.transfer_function.regression.m_estimator module
- Module contents
- aurora.transfer_function.weights package
- Submodules
- aurora.transfer_function.TTFZ module
- aurora.transfer_function.base module
TransferFunction
TransferFunction.emtf_tf_header
TransferFunction.frequency_index()
TransferFunction.maximum_period
TransferFunction.minimum_period
TransferFunction.num_bands
TransferFunction.num_channels_in
TransferFunction.num_channels_out
TransferFunction.period_index()
TransferFunction.periods
TransferFunction.set_tf()
TransferFunction.tf
TransferFunction.tf_header
- aurora.transfer_function.emtf_z_file_helpers module
- aurora.transfer_function.kernel_dataset module
- aurora.transfer_function.transfer_function_collection module
TransferFunctionCollection
TransferFunctionCollection.channel_list
TransferFunctionCollection.check_all_channels_present()
TransferFunctionCollection.get_merged_dict()
TransferFunctionCollection.header
TransferFunctionCollection.local_station_id
TransferFunctionCollection.number_of_decimation_levels
TransferFunctionCollection.remote_station_id
TransferFunctionCollection.rho_phi_plot()
TransferFunctionCollection.total_number_of_channels
TransferFunctionCollection.total_number_of_frequencies
- Module contents
- Subpackages
Submodules¶
aurora.general_helper_functions module¶
This module contains from miscellaneous functions and some global paths.
- class aurora.general_helper_functions.DotDict[source]¶
Bases:
dict
Helper function for debugging, casts a dict so that its values can be accessed via dict.key as well as dict[“key”]
Usage: dot_dict = DotDict(basic_dict)
Methods
clear
()copy
()fromkeys
(iterable[, value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
items
()keys
()pop
(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised
popitem
(/)Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
update
([E, ]**F)If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
()
- aurora.general_helper_functions.count_lines(file_name)[source]¶
acts like wc -l in unix, raise FileNotFoundError: if file_name does not exist.
- Parameters:
file_name (str or pathlib.Path) – The file to apply line counting to
- Returns:
num_lines – Number of lines present in fileName or -1 if file does not exist
- Return type:
- aurora.general_helper_functions.execute_subprocess(cmd, **kwargs)[source]¶
A wrapper for subprocess.call
- Parameters:
cmd (string) – command as it would be typed in a terminal
kwargs (denotes keyword arguments that would be passed to subprocess) –
- aurora.general_helper_functions.get_test_path() Path [source]¶
Gets the path to where the test are.
- Returns:
test_path – Object that points to where aurora’s tests are.
- Return type:
- aurora.general_helper_functions.save_to_mat(data, variable_name, filename)[source]¶
Saves numpy array in matlab format.
Example Usage: x = X.to_array(dim=”channel”) save_to_mat(x.data, “x”, “x.mat”)
Reading into matlab or Octave: tmp = load(“x.mat”); data = tmp.x;
- Parameters:
data (numpy array) – the data to save to file. its fine if this is complex-valued.
variable_name (string) – The name that we use to reference the variable within the struct in the matfile.
filename (string) – The filepath to output