DreqPy¶
developed by Martin Juckes (NCAS BADC).
Official Link
Installation¶
There are two ways to install DreqPy, via svn (Subversion) and via pip (Python Package Index):
Official Installation Instructions
Installation via subversion (svn)¶
Dependencies:¶
- Python 2.6.6 or greater, Python 2.7.x, Python 3.x
- Subversion
- Python Library 'pysetuptools'
- Python Library 'xlsxwriter'
Installation Procedure:¶
Download via subversion:
svn co http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreq/tags/latest
Install using pysetuptools:
python setup.py build
python setup.py install
If a "Permission Denied" error shows up, run as superuser:
sudo python setup.py build
sudo python setup.py install
Update using subversion:
Navigate to the install directory and use below command, afterwards re-run the installation from above:
svn update
Installation via PyPi (pip)¶
Dependencies:¶
Installation:¶
Install from commandline using pip (for 'dreqPy==01.00.18' enter the newest version instead):
pip install -i https://testpypi.python.org/pypi [--user] dreqPy==01.00.18
Documentation¶
Documentation in pdf-format is included in the official dreqPy repository (Installation Instructions see above) and downloadable from the official website.It encompasses the following Basic Information:
- Basic usage of the Python API including an alternative approach via the Python xml-library
- Command line tool and example use cases
- XML document and schema
HowTo¶
You find an (interactive) IPython Notebook attached that- introduces the dreqPy Library
- gives basic and advanced examples
- shows how to calculate the estimated data volume for a customized data request
- etc.
IPython Notebook: dreqpy_ipynb.zip
Alternatively you find attached the non-interactive html Version (open with browser): DreqPy_Intro.html
To view the interactive Notebook:
Download the attached zip-archive and extract its content to your dreqPy installation folder.
To view the notebook you have to install the IPython Package: Installation Instructions
Then start a local IPython Notebook server ('ipython notebook' in command line), navigate to your notebook and open it.
Feedback to schupfner@dkrz.de
Attachments¶