Getting Started¶
Set-Up¶
The MATS code was orginally developed using the Enthought Canopy python package distribution. However, further development will use Anaconda. Example scripts have typically been written and run using jupyter notebooks (run in jupyter lab), as this allows for code to be run in segments and for iteration on certain code segments. Any python package distribution should work with the code as long as the dependent packages are installed.
Main Packages¶
HITRAN Application Programming Interface (HAPI) The v1.1.1.0 was tested and is available in the MATS repository.
Dependent Packages¶
MATS is not written as a basic package, meaning that there are several dependent packages that need to be installed.
If a desired package is not installed then the following command will install it. Many python package distributions have integrated package managers and required packages can also be installed through that mechanism.
pip install package_name
There is commonly a delay in the most recent package releases available in python package distribution package managers compared to that available through pip install. The following command line script will update to the newest release if a package is already installed. This should only be necessary if there is an error when running MATS with the currently installed version.
python -m pip install --upgrade package_name --user
Below are a list of the packages used in MATS.
numpy - python’s fundamental scientific computing package
pandas - python data structure package
os, sys - system variables
lmfit - non-linear least-squares minimization and curve-fitting for python
matplotlib - python plotting
seaborn - pretty plotting
scipy.fftpack - provides fft functionality
jupyter lab - web-based user interface for Project Jupyter