## Convert pHNBS to pHSWS
pHNBS = 8.0 # pH on the NBS scale
pHSWS = pHnbs2sws(pHNBS, T=25, S=35) # pH on the SWS scale
print(pHSWS)
## Check value: the result should be 7.853336
Run the code above in your browser using DataLab