Published online by Cambridge University Press: 01 September 2010
In response to several requests, this edition includes a description of a collection of C++ routines for implementing the TAS classification for volcanic rocks (p.33–39). As parts of the TAS classification require the use of the CIPW norm calculation, this code is also included.
The package is only intended as a basic development kit with which to write other programs suited to specific needs.
The source code is not included in the book but can be downloaded from the Cambridge University Press website – see section C.5, p.236.
INTRODUCTION
Wherever possible the code has been written in a style which is largely self-explanatory so that readers who are not experts in programming techniques should be able to follow what is happening and get the package working without too much trouble.
Data input
The package expects to read analyses in tab-delimited format in which each item in a row or line is separated from the next by a tab character (entered by the tab key from the keyboard). Each analysis is then one row of a table. Such data can easily be produced from virtually all spreadsheet and word-processing programs, by saving the data in text-only format, and database programs by saving the data in tab-delimited format. The first item of each row must be the specimen name, which can be up to 128 characters long, followed by up to 26 oxide values.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.