Required
project| Type: | salvus.project.Project |
| Description: | The project to attach the waveform component to. |
DATA_TYPE:NAME. The NAME
part is a user defined string. If no data type/namespace is given it will
default to SYNTHETIC_DATA.SYNTHETIC_DATA: Synthetically computed waveforms. These are always
computed within the project structure.EXTERNAL_DATA: Observed or externally computed waveform data.PROCESSED_DATA: Any processed data. The data can originate from
synthetic, external or even other processed data but a function sits in
between that processed the data in some fashion.simulation_5Hz (or equivalently
SYNTHETIC_DATA:simulation_5Hz), EXTERNAL_DATA:raw_observed,
PROCESSED_DATA:observed_highpass_5Hz, and so on."EXTERNAL_DATA:raw_data | bandpass(1.0, 2.0) | normalize" as the data
name. We recommend to use this largely for exploratory purposes and turn
them into a proper processing function for longer-term uses.time_shift({SHIFT})normalizescale({FACTOR})flipbandpass({FREQ_MIN}, {FREQ_MAX}[, zerophase][, corners={CORNERS}])class WaveformComponent(builtins.object):
def __init__(self, project: salvus.project.Project): ...| Type: | salvus.project.Project |
| Description: | The project to attach the waveform component to. |
def add_external(
self,
data_name: str,
event: Event | str,
data_filename: pathlib.Path | None = None,
data: xr.Dataset | xr.DataArray | None = None,
add_receivers_to_project_event: bool = False,
receiver_fields: list[str] | None = None,
add_event_to_project: bool = False,
) -> None: ...| Type: | str |
| Description: | Name of the data set. |
| Type: | Event | str |
| Description: | The event to add it to. |
| Type: | pathlib.Path | None |
| Default value: | None |
| Description: | The path to the data. |
| Type: | xr.Dataset | xr.DataArray | None |
| Default value: | None |
| Description: | Alternatively pass the data as an xarray data structure. Either data_filename or data must be set. |
| Type: | bool |
| Default value: | False |
| Description: | If this is true, the receivers in the file will be added to the event in the project. This only works if the project does not yet have any receivers. If the event already has receivers |
| Type: | list[str] | None |
| Default value: | None |
| Description: | Receiver fields for the new receivers to be added. |
| Type: | bool |
| Default value: | False |
| Description: | If True, this will attempt to add the event to project. In this case the event argument must be an Event object. |
def add_external_data_proxy(
self, data_name: str, data_proxy: EventDataCollectionProxy
) -> None: ...| Type: | str |
| Description: | Name of the data. |
| Type: | EventDataCollectionProxy |
| Description: | Data proxy object. |
def get(
self,
data_name: str,
events: (
str
| typing.Sequence[str]
| Event
| typing.Sequence[Event]
| EventCollection
),
data_selection_configuration: str | None = None,
) -> EventDataCollection: ...| Type: | str |
| Description: | Data source name. |
| Type: | str | typing.Sequence[str] | Event | typing.Sequence[Event] | EventCollection |
| Description: | One or more events. |
| Type: | str | None |
| Default value: | None |
| Description: | Name of the optionally to be applied data selection configuration. If given it will be applied to the data. |
def has_data(self, data_name: str, event: str | Event) -> bool: ...| Type: | str |
| Description: | The waveform data name. |
| Type: | str | Event |
| Description: | The event to check if it has data for. |
def list_external_data_proxies(self) -> list[str]: ...