-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkpoint commit: continuing reorganization of the package
- Loading branch information
Showing
7 changed files
with
96 additions
and
3 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,3 +1,12 @@ | ||
#from ._gsw_ufuncs import * | ||
""" | ||
Python implementation of the Gibbs SeaWater (GSW) Oceanographic | ||
Toolbox of TEOS-10. | ||
""" | ||
|
||
|
||
from ._wrapped_ufuncs import * | ||
from ._pyfunctions import * | ||
|
||
from .stability import * | ||
from . import stability | ||
|
||
from . import conversions |
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,33 @@ | ||
""" | ||
Conversions involving temperature, salinity, entropy, pressure, | ||
and height. | ||
""" | ||
from ._wrapped_ufuncs import ( | ||
adiabatic_lapse_rate_from_CT, | ||
C_from_SP, | ||
CT_from_enthalpy, | ||
CT_from_entropy, | ||
CT_from_pt, | ||
CT_from_rho, | ||
CT_from_t, | ||
deltaSA_from_SP, | ||
entropy_from_pt, | ||
entropy_from_t, | ||
pt0_from_t, | ||
pt_from_CT, | ||
pt_from_entropy, | ||
pt_from_t, | ||
SA_from_rho, | ||
SA_from_SP, | ||
SA_from_Sstar, | ||
SP_from_C, | ||
SP_from_SA, | ||
SP_from_SK, | ||
SP_from_SR, | ||
SP_from_Sstar, | ||
SR_from_SP, | ||
Sstar_from_SA, | ||
Sstar_from_SP, | ||
t_from_CT, | ||
z_from_p, | ||
) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../gsw/_utilities.py |
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,24 @@ | ||
""" | ||
Use 'wrapped_ufuncs.list' and the function names from parsing | ||
Matlab to generate lists of wrapped functions in categories. | ||
""" | ||
|
||
from matlab_parser import get_sigdicts_by_subdir | ||
|
||
sigdicts = get_sigdicts_by_subdir() | ||
with open('wrapped_ufuncs.list') as f: | ||
lines = f.readlines() | ||
uflist = [name.strip() for name in lines] | ||
|
||
def write_basic_conversions(): | ||
out = [] | ||
nlist = [n for n in uflist if 'from' in n] | ||
for name in nlist: | ||
if not('ice' in name or 'freezing' in name or 'exact' in name): | ||
try: | ||
out.append(sigdicts['toolbox'][name]['name']) | ||
except KeyError: | ||
pass | ||
out.append('') | ||
with open('basic_conversions.list', 'w') as f: | ||
f.write(',\n'.join(out)) |
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