Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Python wrapper for the JHU Turbulence Database Cluster library. More information can be found at http://turbulence.pha.jhu.edu/.

Installing pypi version

If you have pip, you can simply do this:

pip install pyJHTDB

If you’re running unix (i.e. some MacOS or GNU/Linux variant), you will probably need to have a sudo in front of the pip command. If you don’t have pip on your system, it is quite easy to get it following the instructions at http://pip.readthedocs.org/en/latest/installing.html.

Cutout/local data functionality

If you want to use the cutout functionality, you will need to install h5py before you install pyJHTDB, with:

pip install h5py

If you would like to use the local data functionality, you will need a full installation of the HDF5 libraries, see http://www.hdfgroup.org/HDF5/ for instructions.

Installing from source

ubuntu 14.04

Bare-bone installation:

sudo apt-get install build-essential gfortran
sudo apt-get install python-setuptools
sudo apt-get install python-dev
sudo easy_install numpy
python update_turblib.py
sudo python setup.py install

Note that doing this should, in principle, also install sympy on your system, since it’s used by pyJHTDB.

Happy fun installation:

sudo apt-get install build-essential gfortran
sudo apt-get install python-setuptools
sudo apt-get install python-dev
sudo apt-get install libpng-dev libfreetype6-dev
sudo apt-get install libhdf5-dev
sudo easy_install numpy
sudo easy_install h5py
sudo easy_install matplotlib
python update_turblib.py
sudo python setup.py install

I haven’t tested the installation on any other system, but I think reasonable variations on the above should work for the minimal installation on all unix systems (i.e. for MacOS as well). If you manage to get it working (i.e. you import test_plain like the README says and you can run it), please let me know what steps you needed to take for your system, so I can append the instructions to this file.

Basic usage

On first contact with this library, we recommend that you first run test_plain. To be more specific:

from pyJHTDB import test_plain
test_plain()

The code that is executed can be found in “pyJHTDB/test.py”, and it’s the simplest example of how to access the turbulence database.

Configuration

While our service is open to anyone, we would like to keep track of who is using the service, and how. To this end, we would like each user or site to obtain an authorization token from us: http://turbulence.pha.jhu.edu/help/authtoken.aspx For simple experimentation, the default token included in the package should be valid.

If you do obtain an authorization token, please write it in the file auth_token.txt, in the folder .config/JHTDB from your home folder. This folder should be generated automatically upon first importing the package.

The .config/JHTDB folder is also used to store data used by the pyJHTDB.interpolator.spline_interpolator class, including shared libraries. If you do not plan on using the local interpolation functionality, no data files will be generated.

Metadata

Release files for pyJHTDB 20180607

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyJHTDB 20180607
File Size Uploaded
pyJHTDB-20180607.tar.gz 282.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyJHTDB 20180607
File Interpreter ABI Platform
pyJHTDB-20180607-cp27-cp27m-macosx_10_6_x86_64.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ x86-64 Details

Total release size: 611.6 kB

Release files / pyJHTDB-20180607.tar.gz

Download URL pyJHTDB-20180607.tar.gz
Size 282.1 kB
Tags Source
SHA-256 checksum
How to use checksums
79d0d4d1d8a4d0ca6e1072507112a42a369ea55707f6daaf2056e608d7cfbc6c
BLAKE2b-256 checksum
How to use checksums
723ab6bb5eb1ff3454a70db096733c00793b4a8ad8452de2ca2e0d0d6b7eb29e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyJHTDB-20180607-cp27-cp27m-macosx_10_6_x86_64.whl

Download URL pyJHTDB-20180607-cp27-cp27m-macosx_10_6_x86_64.whl
Size 329.5 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ x86-64
SHA-256 checksum
How to use checksums
906cb9bf339dbb80a53d56cb922151d2cb131fef17f501608b98c6cc73e6f9f5
BLAKE2b-256 checksum
How to use checksums
5a51d08e150db2fb6a046726812e9a93a778a529ba0dc7bc6700419a78d0f805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page