45
46
This table shows some function names in the gibbs library and the corresponding function names in the csiro library.
47
+---------------------------------------+-------------------------------+-------------------------------------------------------+
48
| **Variable** | **SeaWater (EOS 80)** | **Gibbs SeaWater (GSW TEOS 10)** |
49
+---------------------------------------+-------------------------------+-------------------------------------------------------+
50
| Absolute Salinity | NA | gsw.SA_from_SP(SP,p,long,lat) |
51
+---------------------------------------+-------------------------------+-------------------------------------------------------+
52
| Conservative Temperature | NA | gsw.CT_from_t(SA,t,p) |
53
+---------------------------------------+-------------------------------+-------------------------------------------------------+
54
| density (i.e. in situ density) | sw.dens(SP,t,p) | gsw.rho_CT(SA,CT,p), or gsw.rho(SA,t,p), or |
55
| | | gsw.rho_CT25(SA,CT,p) |
56
+---------------------------------------+-------------------------------+-------------------------------------------------------+
57
| potential density | sw.pden(SP,t,p,pr) | gsw.rho_CT(SA,CT,pr), or |
58
| | | gsw.rho_CT25(SA,CT,pr) |
59
+---------------------------------------+-------------------------------+-------------------------------------------------------+
60
| potential temperature | sw.ptmp(SP,t,p,pr) | gsw.pt_from_t(SA,t,p,pr) |
61
+---------------------------------------+-------------------------------+-------------------------------------------------------+
62
| $\sigma_0$, using | sw.dens(SP, $\theta_o$, 0) | gsw.sigma0_CT(SA,CT) |
63
| $\theta_o$ = sw.ptmp(SP,t,p,0) | -1000 kg m :sup:`-3` | |
64
+---------------------------------------+-------------------------------+-------------------------------------------------------+
65
| $\sigma_2$, using | sw.dens(SP,$\theta_2$, 2000) | gsw.sigma2_CT(SA,CT) |
66
| $\theta_2$ = sw.ptmp(SP,t,p,2000) | -1000 kg m :sup:`-3` | |
67
+---------------------------------------+-------------------------------+-------------------------------------------------------+
68
| $\sigma_4$, using | sw.dens(SP,$\theta_4$, 4000) | gsw.sigma2_CT(SA,CT) |
69
| $\theta_4$ = sw.ptmp(SP,t,p,2000) | -1000 kg m :sup:`-3` | |
70
+---------------------------------------+-------------------------------+-------------------------------------------------------+
71
| specific volume anomaly | sw.svan(SP,t,p) | gsw.specvol_anom_CT(SA,CT,p) or |
72
| | | gsw.specvol_anom_CT25(SA,CT,p) |
73
+---------------------------------------+-------------------------------+-------------------------------------------------------+
74
| dynamic height anomaly | -sw.gpan(SP,t,p) | gsw.geo_strf_dyn_height(SA,CT,p,delta_p,interp_style) |
75
+---------------------------------------+-------------------------------+-------------------------------------------------------+
76
| geostrophic velocity | sw.gvel(ga,lat,long) | gsw.geostrophic_velocity(geo_str,long,lat,p) |
77
+---------------------------------------+-------------------------------+-------------------------------------------------------+
78
| N :sup:`2` | sw.bfrq(SP,t,p,lat) | gsw.Nsquared_CT25(SA,CT,p,lat) |
79
+---------------------------------------+-------------------------------+-------------------------------------------------------+
80
| pressure from height | sw.pres(-z,lat) | gsw.p_from_z(z,lat) |
81
| (SW uses depth, not height) | | |
82
+---------------------------------------+-------------------------------+-------------------------------------------------------+
83
| height from pressure | z = -sw.dpth(p,lat) | gsw.z_from_p(p,lat) |
84
| (SW outputs depth, not height) | | |
85
+---------------------------------------+-------------------------------+-------------------------------------------------------+
86
| in situ temperature from pt | sw.temp(SP,pt,p,pr) | gsw.pt_from_t(SA,pt,pr,p) |
87
+---------------------------------------+-------------------------------+-------------------------------------------------------+
88
| sound speed | sw.svel(SP,t,p) | gsw.sound_speed(SA,t,p) |
89
+---------------------------------------+-------------------------------+-------------------------------------------------------+
90
| isobaric heat capacity | sw.cp(SP,t,p) | gsw.cp(SA,t,p) |
91
+---------------------------------------+-------------------------------+-------------------------------------------------------+
92
| adiabatic lapse rate* | sw.adtg(SP,t,p) | gsw.adiabatic_lapse_rate(SA,t,p) |
93
+---------------------------------------+-------------------------------+-------------------------------------------------------+
94
| SP from cndr, (PSS 78) | sw.salt(cndr,t,p) | gsw.SP_from_cndr(cndr,t,p) |
95
+---------------------------------------+-------------------------------+-------------------------------------------------------+
96
| cndr from SP, (PSS 78) | sw.cndr(SP,t,p) | gsw.cndr_from_SP(SP,t,p) |
97
+---------------------------------------+-------------------------------+-------------------------------------------------------+
98
| distance | sw.dist(lat,long,units) | gsw.distance(long,lat,p) |
99
+---------------------------------------+-------------------------------+-------------------------------------------------------+
100
| gravitational acceleration | sw.g(lat,z) | gsw.grav(lat,p) |
101
+---------------------------------------+-------------------------------+-------------------------------------------------------+
102
| Coriolis parameter | sw.f(lat) | gsw.f(lat) |
103
+---------------------------------------+-------------------------------+-------------------------------------------------------+
104
| testing of all functions | sw.test() | gsw.test() |
105
+---------------------------------------+-------------------------------+-------------------------------------------------------+
48
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
49
| **Variable** | **SeaWater (EOS 80)** | **Gibbs SeaWater (GSW TEOS 10)** |
50
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
51
| Absolute Salinity | NA | gsw.SA_from_SP(SP,p,long,lat) |
52
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
53
| Conservative Temperature | NA | gsw.CT_from_t(SA,t,p) |
54
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
55
| density (i.e. in situ density) | sw.dens(SP,t,p) | gsw.rho_CT(SA,CT,p), or gsw.rho(SA,t,p), or |
56
| | | gsw.rho_CT25(SA,CT,p) |
57
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
58
| potential density | sw.pden(SP,t,p,pr) | gsw.rho_CT(SA,CT,pr), or |
59
| | | gsw.rho_CT25(SA,CT,pr) |
60
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
61
| potential temperature | sw.ptmp(SP,t,p,pr) | gsw.pt_from_t(SA,t,p,pr) |
62
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
63
| :math:`\sigma_0`, using | sw.dens(SP, :math:`\theta_o`, 0) | gsw.sigma0_CT(SA,CT) |
64
| :math:`\theta_o` = sw.ptmp(SP,t,p,0) | -1000 kg m :sup:`-3` | |
65
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
66
| :math:`\sigma_2`, using | sw.dens(SP,:math:`\theta_2`, 2000) | gsw.sigma2_CT(SA,CT) |
67
| :math:`\theta_2` = sw.ptmp(SP,t,p,2000) | -1000 kg m :sup:`-3` | |
68
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
69
| :math:`\sigma_4`, using | sw.dens(SP,:math:`\theta_4`, 4000) | gsw.sigma2_CT(SA,CT) |
70
| :math:`\theta_4` = sw.ptmp(SP,t,p,2000) | -1000 kg m :sup:`-3` | |
71
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
72
| specific volume anomaly | sw.svan(SP,t,p) | gsw.specvol_anom_CT(SA,CT,p) or |
73
| | | gsw.specvol_anom_CT25(SA,CT,p) |
74
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
75
| dynamic height anomaly | -sw.gpan(SP,t,p) | gsw.geo_strf_dyn_height(SA,CT,p,delta_p,interp_style) |
76
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
77
| geostrophic velocity | sw.gvel(ga,lat,long) | gsw.geostrophic_velocity(geo_str,long,lat,p) |
78
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
79
| N :sup:`2` | sw.bfrq(SP,t,p,lat) | gsw.Nsquared_CT25(SA,CT,p,lat) |
80
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
81
| pressure from height | sw.pres(-z,lat) | gsw.p_from_z(z,lat) |
82
| (SW uses depth, not height) | | |
83
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
84
| height from pressure | z = -sw.dpth(p,lat) | gsw.z_from_p(p,lat) |
85
| (SW outputs depth, not height) | | |
86
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
87
| in situ temperature from pt | sw.temp(SP,pt,p,pr) | gsw.pt_from_t(SA,pt,pr,p) |
88
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
89
| sound speed | sw.svel(SP,t,p) | gsw.sound_speed(SA,t,p) |
90
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
91
| isobaric heat capacity | sw.cp(SP,t,p) | gsw.cp(SA,t,p) |
92
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
93
| adiabatic lapse rate* | sw.adtg(SP,t,p) | gsw.adiabatic_lapse_rate(SA,t,p) |
94
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
95
| SP from cndr, (PSS 78) | sw.salt(cndr,t,p) | gsw.SP_from_cndr(cndr,t,p) |
96
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
97
| cndr from SP, (PSS 78) | sw.cndr(SP,t,p) | gsw.cndr_from_SP(SP,t,p) |
98
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
99
| distance | sw.dist(lat,long,units) | gsw.distance(long,lat,p) |
100
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
101
| gravitational acceleration | sw.g(lat,z) | gsw.grav(lat,p) |
102
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
103
| Coriolis parameter | sw.f(lat) | gsw.f(lat) |
104
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
105
| testing of all functions | sw.test() | gsw.test() |
106
+-------------------------------------------+-------------------------------------+-------------------------------------------------------+
107
108
\* The SW and GSW functions output the adiabatic lapse rate in different units, being K (dbar) :sup:`-1` and K Pa :sup:`-1` respectively.