Python wrapper for the Johns Hopkins turbulence database library
Project description
=======
pyJHTDB
=======
Python wrapper for the JHU Turbulence Database Cluster library.
More information can be found at http://turbulence.pha.jhu.edu/.
Installing pypi version (RECOMMENDED)
=======================
If you have ``pip``, you can simply do this:
.. code:: bash
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:
.. code:: bash
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:
.. code:: bash
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:
.. code:: bash
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
The procedures are similar in MacOS.
Basic usage
===========
On first contact with this library, we recommend that you first run
``test_plain``. To be more specific:
.. code:: python
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyJHTDB-20190210.4.tar.gz
(300.2 kB
view details)
Built Distribution
File details
Details for the file pyJHTDB-20190210.4.tar.gz
.
File metadata
- Download URL: pyJHTDB-20190210.4.tar.gz
- Upload date:
- Size: 300.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1ed42052abee6583f981f59866707ab1946b36c4ff59faea8e48dba6b6fb56 |
|
MD5 | 482c75e1a076aa2d534c4ef8fdd83a17 |
|
BLAKE2b-256 | d5b0e2c355cf0cea2766cac527794734bbaa1f248a2bdea7188e5e561b61e670 |
File details
Details for the file pyJHTDB-20190210.4-cp37-cp37m-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pyJHTDB-20190210.4-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 354.1 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b00e16b520765c42d25bf42c154f2f8c6341d399e6010b13c10982a5bec0ed3 |
|
MD5 | 8fd7103edadc3a7c4f88f44052836f08 |
|
BLAKE2b-256 | c0baf9628d1adfd08c03085d2088fc6ffc37a4c63b96509a15155f4f86113cd3 |