pyatoa.tests.test_asdf_utils

Test the PyASDF ASDFDataSet auxiliary utilities

!!! TO DO: utils.asdf.write tests

Module Contents

Functions

empty_dataset(tmpdir)

Re-used test data pointing to STATIONS file

dataset()

Filled ASDFDataSet

st_obs()

Raw observed waveforms from station NZ.BFZ.HH? for New Zealand event

st_syn()

Synthetic data stream generated using Specfem3D and focal mechanism for

cat()

ObsPy Event Catalog for New Zealand based event with

event(cat)

Event from Catalog

inv()

StationXML information for station NZ.BFZ.HH?

config()

Default Pyatoa Config object

mgmt_pre(config, event, st_obs, st_syn, inv)

A manager filled with data but pre-workflow

mgmt_post(mgmt_pre)

A manager that has completed the full workflow

test_add_misfit_windows(empty_dataset, mgmt_post)

Test adding misfit windows to an ASDFDataSet

test_add_adjoint_sources(empty_dataset, mgmt_post)

Test adding adjoint sources to an ASDFDataSet

test_clean_dataset(empty_dataset, mgmt_post)

Test dataset clean functions. Need to perform tasks on a dataset we create

test_clean_dataset_fix_windows(empty_dataset, mgmt_post)

Test cleaning a dataset but retaining windows

test_load_windows(dataset)

Test the function that returns windows in the Pyflex output format from

test_load_previous_windows(empty_dataset, mgmt_post)

Test the function that returns windows in the Pyflex output format from

test_load_adjsrcs(dataset)

Test the function that returns windows in the Pyflex output format from

pyatoa.tests.test_asdf_utils.empty_dataset(tmpdir)[source]

Re-used test data pointing to STATIONS file

pyatoa.tests.test_asdf_utils.dataset()[source]

Filled ASDFDataSet

pyatoa.tests.test_asdf_utils.st_obs()[source]

Raw observed waveforms from station NZ.BFZ.HH? for New Zealand event 2018p130600 (GeoNet event id)

pyatoa.tests.test_asdf_utils.st_syn()[source]

Synthetic data stream generated using Specfem3D and focal mechanism for 2018p130600. Minimum resolved period roughly 10s.

pyatoa.tests.test_asdf_utils.cat()[source]

ObsPy Event Catalog for New Zealand based event with GeoNet Event ID: 2018p130600

pyatoa.tests.test_asdf_utils.event(cat)[source]

Event from Catalog

pyatoa.tests.test_asdf_utils.inv()[source]

StationXML information for station NZ.BFZ.HH?

pyatoa.tests.test_asdf_utils.config()[source]

Default Pyatoa Config object

pyatoa.tests.test_asdf_utils.mgmt_pre(config, event, st_obs, st_syn, inv)[source]

A manager filled with data but pre-workflow

pyatoa.tests.test_asdf_utils.mgmt_post(mgmt_pre)[source]

A manager that has completed the full workflow

pyatoa.tests.test_asdf_utils.test_add_misfit_windows(empty_dataset, mgmt_post)[source]

Test adding misfit windows to an ASDFDataSet :return:

pyatoa.tests.test_asdf_utils.test_add_adjoint_sources(empty_dataset, mgmt_post)[source]

Test adding adjoint sources to an ASDFDataSet :return:

pyatoa.tests.test_asdf_utils.test_clean_dataset(empty_dataset, mgmt_post)[source]

Test dataset clean functions. Need to perform tasks on a dataset we create here, otherwise we may permanently affect test data if we use a pre-built ASDFDataSet

pyatoa.tests.test_asdf_utils.test_clean_dataset_fix_windows(empty_dataset, mgmt_post)[source]

Test cleaning a dataset but retaining windows :return:

pyatoa.tests.test_asdf_utils.test_load_windows(dataset)[source]

Test the function that returns windows in the Pyflex output format from an ASDFDataSet

pyatoa.tests.test_asdf_utils.test_load_previous_windows(empty_dataset, mgmt_post)[source]

Test the function that returns windows in the Pyflex output format from an ASDFDataSet

pyatoa.tests.test_asdf_utils.test_load_adjsrcs(dataset)[source]

Test the function that returns windows in the Pyflex output format from an ASDFDataSet

Parameters:

dataset

Returns: