Required
data| Type: | xr.Dataset | xr.DataArray |
| Description: | The data to write to the file. |
def external_data_to_hdf5(
data: xr.Dataset | xr.DataArray,
receivers: list[_Base] | list[_BaseReceiver] | list[ReceiverChannel],
output_filename: pathlib.Path | str,
) -> None: ...| Type: | xr.Dataset | xr.DataArray |
| Description: | The data to write to the file. |
| Type: | list[_Base] | list[_BaseReceiver] | list[ReceiverChannel] |
| Description: | The corresponding Salvus receivers or receiver channels in the same order as the data (the first dimension in the data is the receiver index). |
| Type: | pathlib.Path | str |
| Description: | Where to store the file. |
def get_built_in_topo_dataset_name(
file_name: str | pathlib.Path,
radius: float,
edge_length: float,
model_order: int,
) -> str: ...| Type: | str | pathlib.Path |
| Description: | The name of the topography file. |
| Type: | float |
| Description: | The radius of the planet. |
| Type: | float |
| Description: | The maximum edge length at the mesh's top surface. |
| Type: | int |
| Description: | The order of the model representation. |
strdef get_dem(
scale: float,
varname: str,
fname: str | pathlib.Path,
min_phi: float | None = None,
max_phi: float | None = None,
min_theta: float | None = None,
max_theta: float | None = None,
) -> tuple[npt.NDArray, npt.NDArray, npt.NDArray]: ...| Type: | float |
| Description: | Radius scale. |
| Type: | str |
| Description: | Variable to get. |
| Type: | str | pathlib.Path |
| Description: | The filename. |
| Type: | float | None |
| Default value: | None |
| Description: | Minimum phi value. |
| Type: | float | None |
| Default value: | None |
| Description: | Maximum phi value |
| Type: | float | None |
| Default value: | None |
| Description: | Minimum theta value. |
| Type: | float | None |
| Default value: | None |
| Description: | Maximum theta value. |
tuple[npt.NDArray, npt.NDArray, npt.NDArray]None) which instructs the
subsequent call to get_dem to ignore the partial read optimization and
instead consider the entire file.def manage_topo_bounds(
euler_angles: tuple[typing.Any, typing.Any, typing.Any],
min_phi: float | None,
max_phi: float | None,
min_theta: float | None,
max_theta: float | None,
) -> tuple[float | None, float | None, float | None, float | None]: ...| Type: | tuple[typing.Any, typing.Any, typing.Any] |
| Description: | The euler angles provided by the user. |
| Type: | float | None |
| Description: | The computed minimum phi value of the bounding box. |
| Type: | float | None |
| Description: | The computed maximum phi value of the bounding box. |
| Type: | float | None |
| Description: | The computed minimum theta value of the bounding box. |
| Type: | float | None |
| Description: | The computed maximum theta value of the bounding box. |
tuple[float | None, float | None, float | None, float | None]None, or if it nonzero, reset the phi / theta values to None as well, otherwise return the phi / theta values as they were.def read_built_in_topo_dataset(
d: domain.dim3.SphericalDomain,
file_name: str | pathlib.Path,
dataset_name: str,
radius: float,
) -> xr.DataArray: ...| Type: | domain.dim3.SphericalDomain |
| Description: | The domain. |
| Type: | str | pathlib.Path |
| Description: | The topography file name. |
| Type: | str |
| Description: | The dataset name in the file. |
| Type: | float |
| Description: | The radius of the spherical domain. |
xr.DataArraydef validate_external_data(data: xr.Dataset) -> xr.Dataset: ...| Type: | xr.Dataset |
| Description: | Dataset to validate. |
xr.Dataset