The MATLAB-version of the original Program Developed for CO2 System Calculations (CO2SYS for DOS)

The program is now available from CDIAC: http://cdiac.ornl.gov/oceans/co2rprt.html

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 function: 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, pH scales, dissociation constants, etc.

The original version for DOS was written by Lewis and Wallace (CDIAC-105). 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, ExcelMAC, MATLAB) should yield (near-) identical results when supplied with identical input.

Alex Kozyr, Carbon Dioxide Information Analysis Center, CO2SYS web site.

0 Responses to “The MATLAB-version of the original Program Developed for CO2 System Calculations (CO2SYS for DOS)”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Subscribe to the RSS feed

Powered by FeedBurner

Follow AnneMarin on Twitter

Blog Stats

  • 725,316 hits

Ocean acidification in the IPCC AR5 WG II

OUP book


Follow

Get every new post delivered to your Inbox.

Join 823 other followers