Index of /ftp/co2sys/CO2SYS_calc_MATLAB

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [TXT] CO2SYS.m 11-Jun-2009 12:14 73K [   ] CO2SYS_CDIAC_1.01.zip 12-Jun-2009 10:07 24K [TXT] CO2SYSexample1.m 11-Jun-2009 11:54 2.2K [TXT] CO2SYSexample2.m 29-May-2009 08:05 1.6K [DIR] __MACOSX/ 11-Jun-2009 12:24 -
CITATION:
van Heuven, S., D. Pierrot, E. Lewis, and D. W. R. Wallace. 2009.
MATLAB Program Developed for CO2 System Calculations. ORNL/CDIAC-105b.
Carbon Dioxide Information Analysis Center, Oak Ridge National Laboratory, U.S.
Department of Energy, Oak Ridge, Tennessee.

ABOUT CO2SYS:
This is a MATLAB-version of the original CO2SYS for DOS. CO2SYS calculates and returns a 
detailed state of the carbonate system of oceanographic water samples, if supplied with 
enough input. It is also used to convert between different pH scales. Use this function 
as you would use any other Matlab inline funtion: a=func(b,c). For extended details on 
using the function, please refer to the enclosed help by typing "help CO2SYS" in Matlab. 
For details on the internal workings of the function, please refer to the original  
publication of Lewis and Wallace at http://cdiac.ornl.gov/oceans/co2rprt.html. Note that 
this function allows for the input of vectors. This means that you can calculate many samples 
(or conditions) at once. Each of these samples can be processed with individual salinities, 
temperatures, pHscales, dissociation constants, etc.


HISTORY:
Original version for DOS was written by Lewis and Wallace. This was converted to MATLAB by 
Denis Pierrot at CIMAS, University of Miami, Miami, Florida. Vectorization, internal 
refinements and speed improvements were added by Steven van Heuven, University of Groningen, 
The Netherlands. Although functionality has been added, the output of the function has not 
changed. All versions of co2sys available at CDIAC (DOS, ExcelWIN, ExcelMAX, MATLAB) should 
yield (near-) identical results when supplied with identical input. If you discover that they 
don't or you have a more general bug reports, please email me, Denis Pierrot or Alex Kozyr 
(svheuven@gmail.com, Denis.Pierrot@noaa.gov, kozyra@ornl.gov). 

*** Several coding errors (typo's, etc.) were discovered in the initial versions of this MATLAB
routine, which have all been corrected before version 1.00 was released on CDIAC in June 2009.
It is now considered to be fully conforming to the version for Excel and DOS, meaning that
results obtained using the diffent packages should be indentical for identical input.

INSTALLING:
Download the m-file "CO2SYS.m" and, optionally, the two examples. Place the file(s) in a 
location that Matlab can see (or add the location of the file(s) to Matlab's search path). 
Run either of the examples in Matlab, or start using the main routine straight away.