Skip to content

Python Module

Chang-Goo Kim edited this page Dec 7, 2018 · 1 revision

Python Installation

If you are new to python, consider installing python2.7 using the conda package. I recommend you to start with miniconda. Following commands will enable you to install basic python packages.

> wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
> bash Miniconda2-latest-Linux-x86_64.sh

Princeton Specific: If you are using tigressdata, consider installing python under /tigress/username/. (your home directory quota is small!)

Dependency

This module depends on

  • matplotlib
  • numpy
  • pandas
  • astropy
  • yt (only for yt_analysis module; to be integrated)
  • healpy (only for synthetic_observation module)

Recommended setup can be done by calling:

> conda config --add channels conda-forge
> conda install matplotlib numpy astropy pandas yt healpy xarray netCDF4

Also, jupyter notebook is a recommended tool for running python codes (see Notebooks). conda installs it easily

> conda install jupyter

Python modules

Basic python modules for TIGRESS simulations can be found under python/pyathena. More extended modules can be found from Chang-Goo's pyathena repo.

Clone this wiki locally