pycoastkit.impacts¶
Link storms to the beach response they cause (erosion of shoreline and volume).
survey_before
¶
Last valid survey on or before when (within max_days).
Returns (survey_time, value) or (NaT, NaN) if none is close enough.
Source code in src/pycoastkit/impacts.py
survey_after
¶
First valid survey on or after when (within max_days).
Source code in src/pycoastkit/impacts.py
storm_beach_response
¶
Beach change across each storm (or storm cluster).
For every event the pre-storm survey is the last valid survey on or
before start_time - days_before (calendar day), and the post-storm
survey is the first valid survey on or after end_time + days_after.
Using whole days before and after avoids surveys taken during the storm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storms
|
DataFrame
|
Output of :func: |
required |
beach
|
Series or DataFrame
|
Time-indexed beach indicators, e.g. |
required |
days_before
|
float
|
Offset from the storm start/end to the target survey day. |
1
|
days_after
|
float
|
Offset from the storm start/end to the target survey day. |
1
|
max_search_days
|
float
|
How far to search for a valid survey; otherwise the result is NaN. |
7
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
|