-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docstrings to classes for documentation
- Loading branch information
1 parent
da74155
commit 89b414d
Showing
6 changed files
with
161 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,5 @@ | ||
``StormEvent`` | ||
============== | ||
``StormEvent`` class | ||
==================== | ||
|
||
The ``StormEvent`` class can be used to retrieve data related to any arbitrary named storm event. | ||
You can instantiate a new ``StormEvent`` object from the NHC storm name and year | ||
(i.e. ``FLORENCE 2018``, the NHC storm code (i.e. ``AL062018``), or the USGS flood event ID (i.e. ``304``). | ||
|
||
.. code-block:: python | ||
from stormevents import StormEvent | ||
florence2018 = StormEvent('florence', 2018) | ||
paine2016 = StormEvent.from_nhc_code('EP172016') | ||
sally2020 = StormEvent.from_usgs_id(304) | ||
You can then retrieve track data from NHC, high-water mark data from USGS, and water level products from CO-OPS for this storm. | ||
By default, these functions operate within the time interval defined by the NHC best track. | ||
|
||
.. code-block:: python | ||
from stormevents import StormEvent | ||
florence2018 = StormEvent('florence', 2018) | ||
track = florence2018.track() | ||
high_water_marks = florence2018.high_water_marks() | ||
water_levels = florence2018.tidal_data_within_isotach(isotach=34) | ||
.. autoclass:: stormevents.stormevent.StormEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.