IsoSpike -- Python Standalone

IsoSpike includes standalone code that can do double-spike corrections on arbitrary data. It is not a complete data reduction framework, but can be used for static double-spike correction or as a module in a data processing routine.

This will guide you through installation and setup, with some simple examples using platinum isotopes.

Requirements

  • Python
  • Libraries:
    • Scipy
    • Numpy
    • Pandas

Installation

Install from .zip file

You can download the files in a zip archive from GitHub. Extract the downloaded .zip. The Python files are in the IsoSpike_python folder.

Install with Git
git clone https://github.com/thisisjohnc/isospike isospike/ && cd isospike/IsoSpike_python

This will clone the isospike files into the folder isospike/ and then move to the folder with the standalone Python files.

Usage

Manual ratio entry

This version takes measured ratios as arguments from the command line, and outputs double-spike corrected ratios.

Usage: python dsPy_cmd [input_ratio1] [input_ratio2] [input_ratio3]

Example: python dsPy_cmd 1.0792 1.0861 2.3592.

Output: corrected_ratio1 corrected_ratio2 corrected_ratio3

Processing data files

This version will parse .FIN2 files (given as arguments from the command line), load the data into a pandas dataframe, compute raw ratios from the input data, and then apply the double-spike correction. For each input file, this will output a CSV file with the same name containing double-spike corrected ratios.

Usage: python dsPy_fin2 [File]...

Example: python dsPy_cmd 001_IRMM.FIN2 002_Allende.FIN2 003_IRMM.FIN2.

Output: 001_IRMM.CSV 002_Allende.CSV 003_IRMM.CSV