Index
subsurfaceio.site_investigation.analysis
Site investigation analysis (aggregation, parametric).
Classes:
| Name | Description |
|---|---|
DepthArrange |
Evenly spaced depth vector for aggregation. |
DepthDiscrete |
Explicit list of depths for aggregation. |
DepthDiscreteItem |
Single discrete depth for aggregation. |
InSituTestParametricAnalysis |
Parametric liquefaction analysis over PGA and magnitude grids. |
InSituTestsAggregation |
Aggregate in-situ test profiles onto a common depth vector. |
DepthArrange
pydantic-model
Bases: BaseModel
Evenly spaced depth vector for aggregation.
Fields:
-
type(Literal['arrange']) -
depth_from(float) -
depth_to(float) -
depth_step(float)
DepthDiscrete
pydantic-model
Bases: BaseModel
Explicit list of depths for aggregation.
Fields:
-
type(Literal['discrete']) -
depth(list[DepthDiscreteItem])
DepthDiscreteItem
pydantic-model
InSituTestParametricAnalysis
pydantic-model
Bases: Model
Parametric liquefaction analysis over PGA and magnitude grids.
Fields:
-
x_field(Literal['peak_ground_acceleration']) -
x_range(RangeParameters) -
y_field(Literal['moment_magnitude']) -
y_range(RangeParameters)
meshgrid
property
PGA and magnitude mesh from x_range and y_range.
Raises:
| Type | Description |
|---|---|
ValueError
|
When the mesh exceeds |
x_field
pydantic-field
calculate
Run liquefaction over the PGA–magnitude grid and store results.
Returns:
| Type | Description |
|---|---|
Self
|
This analysis spec, with |
get_results_figure
get_results_figure(
field: Literal[
"lateral_displacement_index_sum",
"lateral_spread_displacement_sum",
"liquefaction_settlement_sum",
"liquefaction_potential_index_sum",
"liquefaction_severity_number_sum",
"thickness_non_liquefiable_layer",
"thickness_liquefiable_layer",
] = "liquefaction_potential_index_sum",
) -> go.Figure
Surface plot of a liquefaction scalar over the PGA–magnitude grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
field
|
Literal['lateral_displacement_index_sum', 'lateral_spread_displacement_sum', 'liquefaction_settlement_sum', 'liquefaction_potential_index_sum', 'liquefaction_severity_number_sum', 'thickness_non_liquefiable_layer', 'thickness_liquefiable_layer']
|
Result field to plot on the z-axis. |
'liquefaction_potential_index_sum'
|
Returns:
| Type | Description |
|---|---|
Figure
|
Plotly 3-D surface figure. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
set_parent
Bind this analysis to an in-situ test that supports liquefaction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
test
|
InSituTestWithLiquefaction
|
Parent test whose liquefaction settings and data are used. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
This analysis spec. |
InSituTestsAggregation
pydantic-model
Bases: Model
Aggregate in-situ test profiles onto a common depth vector.
Fields:
-
test_type(Literal['BORH', 'CPT', 'DMT', 'IST']) -
aggregation(Aggregation) -
quantile(NullableFloat) -
depths(DepthArrange | DepthDiscrete) -
aggregated_test(InSituTest | None)
test_type_site_investigation
property
Copy of the bound site containing only tests of test_type.
aggregate
Bin and aggregate source traces onto depth_vector.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to the bin-aggregation helper. |
{}
|
Returns:
| Type | Description |
|---|---|
Self
|
This spec, with |
attach_site
Bind this aggregation spec to a site investigation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
site
|
SiteInvestigation
|
Site whose tests of |
required |
Returns:
| Type | Description |
|---|---|
Self
|
This aggregation spec. |
plot
Plot source tests in gray with the aggregated test overlaid in black.
Builds a temporary site copy so the attached site is not mutated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plot_module
|
Literal['plotly', 'mpl']
|
Figure backend. |
'plotly'
|
Returns:
| Type | Description |
|---|---|
Any
|
Plotly or matplotlib figure from |
Any
|
Raises:
| Type | Description |
|---|---|
ValueError
|
When |