Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Oct 4, 2024
1 parent 5641430 commit ae4bc22
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions eo_tides/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def tide_stats(
For more information about the tidal statistics computed by this
function, refer to Figure 8 in Bishop-Taylor et al. 2018:
https://www.sciencedirect.com/science/article/pii/S0272771418308783#fig8
<https://www.sciencedirect.com/science/article/pii/S0272771418308783#fig8>
Parameters
----------
Expand Down Expand Up @@ -99,34 +99,26 @@ def tide_stats(
Returns
-------
A pandas.Series object containing the following statistics:
tidepost_lat: latitude used for modelling tide heights
tidepost_lon: longitude used for modelling tide heights
observed_min_m: minimum tide height observed by the satellite
all_min_m: minimum tide height from all available tides
observed_max_m: maximum tide height observed by the satellite
all_max_m: maximum tide height from all available tides
observed_range_m: tidal range observed by the satellite
all_range_m: full astronomical tidal range based on all
available tides
spread_m: proportion of the full astronomical tidal range observed
by the satellite (see Bishop-Taylor et al. 2018)
low_tide_offset: proportion of the lowest tides never observed
by the satellite (see Bishop-Taylor et al. 2018)
high_tide_offset: proportion of the highest tides never observed
by the satellite (see Bishop-Taylor et al. 2018)
A `pandas.Series` containing the following statistics:
- `tidepost_lat`: latitude used for modelling tide heights
- `tidepost_lon`: longitude used for modelling tide heights
- `observed_min_m`: minimum tide height observed by the satellite
- `all_min_m`: minimum tide height from all available tides
- `observed_max_m`: maximum tide height observed by the satellite
- `all_max_m`: maximum tide height from all available tides
- `observed_range_m`: tidal range observed by the satellite
- `all_range_m`: full astronomical tidal range based on all available tides
- `spread_m`: proportion of the full astronomical tidal range observed by the satellite (see Bishop-Taylor et al. 2018)
- `low_tide_offset`: proportion of the lowest tides never observed by the satellite (see Bishop-Taylor et al. 2018)
- `high_tide_offset`: proportion of the highest tides never observed by the satellite (see Bishop-Taylor et al. 2018)
If `linear_reg = True`, the output will also contain:
observed_slope: slope of any relationship between observed tide
heights and time
all_slope: slope of any relationship between all available tide
heights and time
observed_pval: significance/p-value of any relationship between
observed tide heights and time
all_pval: significance/p-value of any relationship between
all available tide heights and time
- `observed_slope`: slope of any relationship between observed tide heights and time
- `all_slope`: slope of any relationship between all available tide heights and time
- `observed_pval`: significance/p-value of any relationship between observed tide heights and time
- `all_pval`: significance/p-value of any relationship between all available tide heights and time
"""
# Verify that only one tide model is provided
Expand Down

0 comments on commit ae4bc22

Please sign in to comment.