Mirror of Unidata's PyAWIPS
Find a file
2016-05-24 15:29:46 -05:00
awips awips/ufpy ncep_15.1.1-n -> ncep_16.1.4-n 2016-03-24 16:43:44 -05:00
dataaccess ncep_16.1.4-n dataaccess files 2016-03-24 16:46:49 -05:00
docs notebook and build updates pre-release 0.9.4 2016-05-24 15:29:46 -05:00
dynamicserialize Reftime and Fcstsec methods in GetGridInfoRequest 2016-04-01 19:12:11 -05:00
examples notebook and build updates pre-release 0.9.4 2016-05-24 15:29:46 -05:00
thrift whitespace 2016-03-16 16:32:17 -05:00
.gitignore notebook and build updates pre-release 0.9.4 2016-05-24 15:29:46 -05:00
LISCENSE.txt python-awips 0.9.1 2016-03-11 15:05:01 -07:00
README.rst whitespace 2016-03-16 16:32:17 -05:00
setup.cfg cleanup and config changes 2016-03-16 10:28:37 -05:00
setup.py build 0.9.3 2016-03-16 20:03:29 -05:00

Python Data Access Framework for AWIPS II
=========================================

.. image:: https://img.shields.io/pypi/v/python-awips.svg
        :target: https://pypi.python.org/pypi/python-awips/
        :alt: PyPI Package

.. image:: https://img.shields.io/pypi/dm/python-awips.svg
        :target: https://pypi.python.org/pypi/python-awips/
        :alt: PyPI Downloads

.. image:: https://readthedocs.org/projects/pip/badge/?version=latest
        :target: http://python-awips.readthedocs.org/en/latest/
        :alt: Latest Doc Build Status

Install
-------

- pip install python-awips

Requirements
-------------

- Python 2.7 or later
- pip install numpy shapely

From Github
-----------

- git clone https://github.com/Unidata/python-awips.git
- cd python-awips
-  python setup.py install


Install for AWIPS II Python
--------------------

AWIPS II >=15.1.3 (March 2016) has `python-awips` installed in /awips2/python, as well as a full meteorological data stack (metpy, matplotlib, numpy, etc).

For AWIPS II systems 15.1.2 and lower:

- wget https://bootstrap.pypa.io/ez_setup.py -O - | /awips2/python/bin/python
- /awips2/python/bin/easy_install pip
- /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

Documentation
------------------

* http://python-awips.readthedocs.org/en/latest/
* `Jupyter Notebook Examples <http://nbviewer.jupyter.org/github/Unidata/python-awips/tree/master/examples/notebooks/>`_