Skip to content

Commit 7a05ddb

Browse files
antoine250catsch
authored andcommitted
fix typo in B2 exponent (#2)
* fix typo in B2 exponent previous: B2 = 1.03410e-3 corrected: B2 = 1.03410e-2 * fix typo in B2 exponent previous: B2 = 1.03410e-3 corrected: B2 = 1.03410e-2
1 parent 1c75bf5 commit 7a05ddb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DOXY_to_PPOX.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sca_T=log((298.15-TEMP_DOXY)/(273.15+TEMP_DOXY))
2929

3030
# O2 solubility separated in Scorr and Tcorr (SCOR WG 142 coefficients: Garcia and Gordon 1992, Benson and Krause 1984 refit )
3131
TCorr <- 44.6596*(exp(2.00907+3.22014*sca_T+4.05010*sca_T^2+4.94457*sca_T^3-2.56847e-1*sca_T^4+3.88767*sca_T^5))
32-
Scorr <- exp(PSAL_DOXY*(-6.24523e-3-7.37614e-3*sca_T-1.03410e-3*sca_T^2-8.17083e-3*sca_T^3)-4.88682e-7*PSAL_DOXY^2)
32+
Scorr <- exp(PSAL_DOXY*(-6.24523e-3-7.37614e-3*sca_T-1.03410e-2*sca_T^2-8.17083e-3*sca_T^3)-4.88682e-7*PSAL_DOXY^2)
3333

3434

3535
PPOX=1013.25*DOXY*(xO2*(atm_press-pH2Osatsal))/(TCorr*Scorr)*exp(Vm*PRES_DOXY/(R*(TEMP_DOXY+273.15))) # en mbar

PPOX_to_DOXY.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sca_T=log((298.15-TEMP_DOXY)/(273.15+TEMP_DOXY))
3232

3333
# O2 solubility separated in Scorr and Tcorr (SCOR WG 142 coefficients: Garcia and Gordon 1992, Benson and Krause 1984 refit )
3434
TCorr <- 44.6596*(exp(2.00907+3.22014*sca_T+4.05010*sca_T^2+4.94457*sca_T^3-2.56847e-1*sca_T^4+3.88767*sca_T^5))
35-
Scorr <- exp(PSAL_DOXY*(-6.24523e-3-7.37614e-3*sca_T-1.03410e-3*sca_T^2-8.17083e-3*sca_T^3)-4.88682e-7*PSAL_DOXY^2)
35+
Scorr <- exp(PSAL_DOXY*(-6.24523e-3-7.37614e-3*sca_T-1.03410e-2*sca_T^2-8.17083e-3*sca_T^3)-4.88682e-7*PSAL_DOXY^2)
3636

3737
DOXY=PPOX*(TCorr*Scorr)/(exp(Vm*PRES_DOXY/(R*(TEMP_DOXY+273.15)))*(xO2*(atm_press-pH2Osatsal))) # (DOXY en micromol / l)
3838

0 commit comments

Comments
 (0)