mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
readme fix for pipy rendering of rst
This commit is contained in:
parent
6a0c4bd115
commit
158ce8c5c9
1 changed files with 11 additions and 39 deletions
50
README.rst
50
README.rst
|
@ -1,17 +1,17 @@
|
||||||
Python Data Access Framework for AWIPS II
|
Python Data Access Framework for AWIPS II
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
.. _Jupyter Notebook examples: http://nbviewer.jupyter.org/github/Unidata/python-awips/tree/master/examples/notebooks
|
|PyPI| |PyPIDownloads| |LatestDocs|
|
||||||
|
|
||||||
.. image:: https://img.shields.io/pypi/v/python-awips.svg
|
.. |PyPI| image:: https://img.shields.io/pypi/v/python-awips.svg
|
||||||
:target: https://pypi.python.org/pypi/python-awips/
|
:target: https://pypi.python.org/pypi/python-awips/
|
||||||
:alt: PyPI Package
|
:alt: PyPI Package
|
||||||
|
|
||||||
.. image:: https://img.shields.io/pypi/dm/python-awips.svg
|
.. |PyPIDownloads| image:: https://img.shields.io/pypi/dm/python-awips.svg
|
||||||
:target: https://pypi.python.org/pypi/python-awips/
|
:target: https://pypi.python.org/pypi/python-awips/
|
||||||
:alt: PyPI Downloads
|
:alt: PyPI Downloads
|
||||||
|
|
||||||
.. image:: https://readthedocs.org/projects/pip/badge/?version=latest
|
.. |LatestDocs| image:: https://readthedocs.org/projects/pip/badge/?version=latest
|
||||||
:target: http://python-awips.readthedocs.org/en/latest/
|
:target: http://python-awips.readthedocs.org/en/latest/
|
||||||
:alt: Latest Doc Build Status
|
:alt: Latest Doc Build Status
|
||||||
|
|
||||||
|
@ -21,28 +21,28 @@ Install
|
||||||
- pip install python-awips
|
- pip install python-awips
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
-------------
|
------------
|
||||||
|
|
||||||
- Python 2.7 minimum
|
- Python 2.7 minimum
|
||||||
- pip install numpy shapely
|
- pip install numpy shapely
|
||||||
- pip install metpy enum34 - to run `Jupyter Notebook examples`_
|
- pip install metpy enum34 - to run Jupyter Notebook examples
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
------------------
|
-------------
|
||||||
|
|
||||||
* http://python-awips.readthedocs.org/en/latest/
|
* http://python-awips.readthedocs.org/en/latest/
|
||||||
* `Jupyter Notebook examples`_
|
* http://nbviewer.jupyter.org/github/Unidata/python-awips/tree/master/examples/notebooks
|
||||||
|
|
||||||
Install from Github
|
Install from Github
|
||||||
-----------
|
-------------------
|
||||||
|
|
||||||
- git clone https://github.com/Unidata/python-awips.git
|
- git clone https://github.com/Unidata/python-awips.git
|
||||||
- cd python-awips
|
- cd python-awips
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
|
|
||||||
|
|
||||||
Install for AWIPS Python (/awips2/python)
|
Install for AWIPS (/awips2/python)
|
||||||
--------------------
|
-----------------------------------------
|
||||||
|
|
||||||
AWIPS II >=15.1.3 (March 2016) has `python-awips` bundled with the awips2-server and awips2-cave groups, as well as a full meteorological data stack (metpy, matplotlib, numpy, etc).
|
AWIPS II >=15.1.3 (March 2016) has `python-awips` bundled with the awips2-server and awips2-cave groups, as well as a full meteorological data stack (metpy, matplotlib, numpy, etc).
|
||||||
|
|
||||||
|
@ -51,31 +51,3 @@ Easy install on an AWIPS system
|
||||||
- wget https://bootstrap.pypa.io/ez_setup.py -O - | /awips2/python/bin/python
|
- wget https://bootstrap.pypa.io/ez_setup.py -O - | /awips2/python/bin/python
|
||||||
- /awips2/python/bin/easy_install pip
|
- /awips2/python/bin/easy_install pip
|
||||||
- /awips2/python/bin/pip install python-awips
|
- /awips2/python/bin/pip install python-awips
|
||||||
|
|
||||||
Grid Inventory
|
|
||||||
--------------
|
|
||||||
|
|
||||||
A short script to request available grid names from an EDEX server::
|
|
||||||
|
|
||||||
#!python
|
|
||||||
from awips.dataaccess import DataAccessLayer
|
|
||||||
|
|
||||||
# Set host
|
|
||||||
DataAccessLayer.changeEDEXHost("edex-cloud.unidata.ucar.edu")
|
|
||||||
|
|
||||||
# Init data request
|
|
||||||
request = DataAccessLayer.newDataRequest()
|
|
||||||
|
|
||||||
# Set datatype
|
|
||||||
request.setDatatype("grid")
|
|
||||||
|
|
||||||
#
|
|
||||||
# getAvailableLocationNames method will return a list of all available models
|
|
||||||
#
|
|
||||||
# LocationNames mean different things to different plugins beware...radar is icao,
|
|
||||||
# satellite is sector, etc
|
|
||||||
#
|
|
||||||
available_grids = DataAccessLayer.getAvailableLocationNames(request)
|
|
||||||
for grid in available_grids:
|
|
||||||
print grid
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue