Installing TRACE¶
TRACE is presently available for MATLAB (as TRACEv1) and Python (as TRACE-Python). Both interfaces produce identical estimates and inventories within machine precision, and operate with comprable speed.
Ensure pip and python are installed in a virtual environment (we suggest this method, but any of the mainline methods should work). Activate your virtual environment. Download and install the most current release then run the following in a terminal emulator:
pip install git+https://github.com/d-sandborn/TRACE.git@v<current_release_here>
Alternatively, download and unzip a release from the TRACE-Python repository. Navigate to the unzipped directory of TRACE and run the following in a terminal emulator to install an editable copy:
python -m pip install -e .
pip and conda
TRACE will be made available via PyPI once PyCO2SYS >=2 is available there. PyCO2SYS >= v2 is required for speed and stability, and a beta version is installed by default using the command above. More information on that package can be found here. TRACE is not yet available via conda-forge, but this is a target for future development if interest warrants it.
Finished installing? Learn how to use TRACE-Python here.
Download and unzip a release from the TRACEv1 repository to your computer and extract to a location on your MATLAB path (or add the location to your path). Ensure the TRACEv1.m function and the private directory are in the same folder. Several toolboxes may need to be installed if they are not already.
Finished installing? Learn how to use TRACEv1 here.