-
Notifications
You must be signed in to change notification settings - Fork 3
Python Module
Chang-Goo Kim edited this page Dec 7, 2018
·
1 revision
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!)
This module depends on
matplotlibnumpypandasastropy-
yt(only foryt_analysismodule; to be integrated) -
healpy(only forsynthetic_observationmodule)
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
Basic python modules for TIGRESS simulations can be found under python/pyathena. More extended modules can be found from Chang-Goo's pyathena repo.