-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
816f8ec
commit 2da295e
Showing
14 changed files
with
552 additions
and
56 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 +1,58 @@ | ||
Example use cases | ||
Examples | ||
======== | ||
|
||
A sample dataset is provided | ||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
ex1 | ||
|
||
.. A sample dataset is provided in ``oceans_sf/examples/sample_data`` which we | ||
.. use below to demonstrate oceans_sf functionality. | ||
.. Loading and preparing HDF5 data for oceans_sf | ||
.. ********************************************* | ||
.. .. code-block:: python | ||
.. import h5py | ||
.. f = h5py.File('oceans_sf/examples/sample_data/snapshot1.jld2', 'r') | ||
.. grid = f['grid'] | ||
.. snapshots = f['snapshots'] | ||
.. x = grid['x'] | ||
.. y = grid['y'] | ||
.. u = snapshots['u'] | ||
.. v = snapshots['v'] | ||
.. Advective velocity-based structure functions | ||
.. ******************************************** | ||
.. This snippet returns a dictionary of advective velocity-based structure functions | ||
.. for two directions, meridional and zonal. The separation distances in x and y are also returned. | ||
.. .. code-block:: python | ||
.. import oceans_sf as ocsf | ||
.. sf = ocsf.generate_structure_functions(u,v,x,y) | ||
.. print(sf) | ||
.. Advective velocity structure functions | ||
.. ************************************** | ||
.. .. code-block:: python | ||
.. Z, M, XD, YD = ocsf.advection_velocity(u, v, x, y) | ||
.. Advective vorticity structure functions | ||
.. *************************************** | ||
.. Multiple snapshots of data | ||
.. ************************** | ||
.. Plotting cascade rates | ||
.. ********************** |
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,4 +1,4 @@ | ||
Installation instructions | ||
======================== | ||
========================= | ||
|
||
Install instructions |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Functions | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
oceans_sf |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
oceans\_sf package | ||
|
||
oceans\_sf function documentation | ||
--------------------------------- | ||
|
||
.. automodule:: oceans_sf | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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
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