Skip to content

Commit

Permalink
abs salinity lat lon swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
lukegre committed Apr 22, 2020
1 parent a5fa295 commit 65c5b40
Show file tree
Hide file tree
Showing 3 changed files with 2,801 additions and 2,329 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ target/
**/.DS_Store
.DS_Store
junit.xml
**/.ipynb_checkpoints/**
4 changes: 2 additions & 2 deletions glidertools/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from gsw import alpha as alpha_thermal, beta as beta_saline
except ImportError:
_gsw_avail = False
from seawater import alpha as alpha_thermal, beta as beta_saline
from seawater import alpha as alpha_thermal, beta as beta_saline # noqa

message = (
"'gsw' could not be imported (Python 2.x is not compatible "
Expand Down Expand Up @@ -133,7 +133,7 @@ def potential_density(salt_PSU, temp_C, pres_db, lat, lon, pres_ref=0):
try:
import gsw

salt_abs = gsw.SA_from_SP(salt_PSU, pres_db, lat, lon)
salt_abs = gsw.SA_from_SP(salt_PSU, pres_db, lon, lat)
temp_pot = gsw.t_from_CT(salt_abs, temp_C, pres_db)
pot_dens = gsw.pot_rho_t_exact(salt_abs, temp_pot, pres_db, pres_ref)
except ImportError:
Expand Down
Loading

0 comments on commit 65c5b40

Please sign in to comment.