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
TransferFunctionKernelTransferFunctionKernel.all_fcs_already_existTransferFunctionKernel.apply_clock_zero()TransferFunctionKernel.check_if_fcs_already_exist()TransferFunctionKernel.configTransferFunctionKernel.datasetTransferFunctionKernel.dataset_dfTransferFunctionKernel.export_tf_collection()TransferFunctionKernel.get_mth5_file_open_mode()TransferFunctionKernel.initialize_mth5s()TransferFunctionKernel.is_valid_dataset()TransferFunctionKernel.kernel_datasetTransferFunctionKernel.memory_check()TransferFunctionKernel.mth5_objsTransferFunctionKernel.processing_configTransferFunctionKernel.processing_summaryTransferFunctionKernel.processing_typeTransferFunctionKernel.show_processing_summary()TransferFunctionKernel.update_dataset_df()TransferFunctionKernel.update_processing_summary()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
ApodizationWindowApodizationWindow.S1ApodizationWindow.S2ApodizationWindow.apodization_factorApodizationWindow.coherent_gainApodizationWindow.enbw()ApodizationWindow.make()ApodizationWindow.nenbwApodizationWindow.num_samples_windowApodizationWindow.summaryApodizationWindow.taperApodizationWindow.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
WindowingSchemeWindowingScheme.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.dtWindowingScheme.duration_advanceWindowingScheme.frequency_axis()WindowingScheme.left_hand_window_edge_indices()WindowingScheme.linear_spectral_density_calibration_factorWindowingScheme.num_samples_advanceWindowingScheme.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
TransferFunctionTransferFunction.emtf_tf_headerTransferFunction.frequency_index()TransferFunction.maximum_periodTransferFunction.minimum_periodTransferFunction.num_bandsTransferFunction.num_channels_inTransferFunction.num_channels_outTransferFunction.period_index()TransferFunction.periodsTransferFunction.set_tf()TransferFunction.tfTransferFunction.tf_header
- aurora.transfer_function.emtf_z_file_helpers module
- aurora.transfer_function.kernel_dataset module
- aurora.transfer_function.transfer_function_collection module
TransferFunctionCollectionTransferFunctionCollection.channel_listTransferFunctionCollection.check_all_channels_present()TransferFunctionCollection.get_merged_dict()TransferFunctionCollection.headerTransferFunctionCollection.local_station_idTransferFunctionCollection.number_of_decimation_levelsTransferFunctionCollection.remote_station_idTransferFunctionCollection.rho_phi_plot()TransferFunctionCollection.total_number_of_channelsTransferFunctionCollection.total_number_of_frequencies
- Module contents
TransferFunctionCollectionTransferFunctionCollection.channel_listTransferFunctionCollection.check_all_channels_present()TransferFunctionCollection.get_merged_dict()TransferFunctionCollection.headerTransferFunctionCollection.local_station_idTransferFunctionCollection.number_of_decimation_levelsTransferFunctionCollection.remote_station_idTransferFunctionCollection.rho_phi_plot()TransferFunctionCollection.total_number_of_channelsTransferFunctionCollection.total_number_of_frequencies
- 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:
dictHelper 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.replace_in_file(file_path: Path, old: str, new: str) None[source]¶
Replace all instances of ‘old’ with ‘new’ in the given file. :param file_path: Path to the file where replacements should be made.
- 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