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