Skip to content

Commit

Permalink
python-awips 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjames-upc committed Mar 11, 2016
1 parent 63ae234 commit ffcb14f
Show file tree
Hide file tree
Showing 53 changed files with 70 additions and 75 deletions.
Empty file added LISCENSE.txt
Empty file.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,7 @@

### Install

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

### Use

#### GRID

./data/grid/gridInventory.csh HRRR T

#### Radar

python data/radar/a2invradStub.py --icao kftg --date 2015-06-22 --time 17:09

#### Obs

python data/metar/a2gtmtrStub.py -b "2015-06-18 21:40" -e "2015-06-18 22:00" -s KCLK
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 09/30/08 chammack Initial Creation.
# 11/03/10 5849 cjeanbap Moved to ufpy package from
# 11/03/10 5849 cjeanbap Moved to awips package from
# com.raytheon.uf.tools.cli
# 01/07/11 5645 cjeanbap Added audio file to Status Message.
# 05/27/11 3050 cjeanbap Added if-statement to check Priority
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ufpy/__init__.py → awips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#
# __init__.py for ufpy package
# __init__.py for awips package
#
#
# SOFTWARE HISTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#
# Published interface for ufpy.dataaccess package
# Published interface for awips.dataaccess package
#
#
# SOFTWARE HISTORY
Expand Down Expand Up @@ -53,7 +53,7 @@
import JepRouter
router = JepRouter
else:
from ufpy.dataaccess import ThriftClientRouter
from awips.dataaccess import ThriftClientRouter
router = ThriftClientRouter.ThriftClientRouter(THRIFT_HOST)
USING_NATIVE_THRIFT = True

Expand Down
2 changes: 1 addition & 1 deletion ufpy/dataaccess/PyData.py → awips/dataaccess/PyData.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#
#

from ufpy.dataaccess import IData
from awips.dataaccess import IData

class PyData(IData):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#
#

from ufpy.dataaccess import IGeometryData
from ufpy.dataaccess import PyData
from awips.dataaccess import IGeometryData
from awips.dataaccess import PyData

class PyGeometryData(IGeometryData, PyData.PyData):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
import numpy
import warnings

from ufpy.dataaccess import IGridData
from ufpy.dataaccess import PyData
from awips.dataaccess import IGridData
from awips.dataaccess import PyData

NO_UNIT_CONVERT_WARNING = """
The ability to unit convert grid data is not currently available in this version of the Data Access Framework.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import GetOptionalIdentifiersRequest
from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import GetSupportedDatatypesRequest

from ufpy import ThriftClient
from ufpy.dataaccess import PyGeometryData
from ufpy.dataaccess import PyGridData
from awips import ThriftClient
from awips.dataaccess import PyGeometryData
from awips.dataaccess import PyGridData


class ThriftClientRouter(object):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#
# __init__.py for ufpy.dataaccess package
# __init__.py for awips.dataaccess package
#
#
# SOFTWARE HISTORY
Expand Down
2 changes: 1 addition & 1 deletion ufpy/gfe/IFPClient.py → awips/gfe/IFPClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# further licensing information.
##

from ufpy import ThriftClient
from awips import ThriftClient

from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import ParmID
Expand Down
2 changes: 1 addition & 1 deletion ufpy/gfe/__init__.py → awips/gfe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#
# __init__.py for ufpy.gfe package
# __init__.py for awips.gfe package
#
#
# SOFTWARE HISTORY
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ufpy/test/Test → awips/test/Test
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

import os
import logging
from ufpy import AlertVizHandler
from awips import AlertVizHandler
import Record

avh = AlertVizHandler.AlertVizHandler(host=os.getenv("BROKER_ADDR","localhost"), port=9581, category='LOCAL', source='ANNOUNCER', level=logging.NOTSET)
Expand Down
2 changes: 1 addition & 1 deletion ufpy/test/__init__.py → awips/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#
# __init__.py for ufpy package
# __init__.py for awips package
#
#
# SOFTWARE HISTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, hostname, portNumber, topicName):
threading.Thread.__init__(self)

def run(self):
from ufpy import QpidSubscriber
from awips import QpidSubscriber
self.qs = QpidSubscriber.QpidSubscriber(self.hostname, self.portNumber, True)
self.qs.topicSubscribe(self.topicName, self.receivedMessage)

Expand Down
2 changes: 1 addition & 1 deletion data/acars/a2acarsStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/aireppirep/a2airepStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange


Expand Down
2 changes: 1 addition & 1 deletion data/aireppirep/a2pirepStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange


Expand Down
2 changes: 1 addition & 1 deletion data/grid/a2invmdlStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy
import sys

from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer

def get_args():
parser = argparse.ArgumentParser(conflict_handler="resolve")
Expand Down
2 changes: 1 addition & 1 deletion data/grid/a2rdmdlCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import DataTime
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

Expand Down
2 changes: 1 addition & 1 deletion data/maritime/a2cvboyStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/maritime/a2gtboyStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/metar/a2cvmtrStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/metar/a2gtmtrStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/profiler/a2gtprofStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/radar/a2invradStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from datetime import datetime
from datetime import timedelta

from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level

Expand Down
4 changes: 2 additions & 2 deletions data/radar/a2radcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@

from datetime import datetime
from datetime import timedelta
from ufpy import ThriftClient
from awips import ThriftClient

from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.radar.request import GetRadarDataRecordRequest

def get_default_host():
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
return DataAccessLayer.THRIFT_HOST


Expand Down
2 changes: 1 addition & 1 deletion data/raobs/a2gtraobStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import sys

from datetime import datetime
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
2 changes: 1 addition & 1 deletion data/satellite/a2invsatStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import numpy
import sys

from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer

def get_args():
parser = argparse.ArgumentParser(conflict_handler="resolve")
Expand Down
2 changes: 1 addition & 1 deletion data/satellite/a2rdsatStub.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

from datetime import datetime
from datetime import timedelta
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange

def get_args():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#


from ufpy.dataaccess import IDataRequest
from awips.dataaccess import IDataRequest

from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level
Expand Down
8 changes: 4 additions & 4 deletions examples/GISOperations.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```python
#!python
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
from shapely.geometry import Polygon,Point
from datetime import datetime

Expand Down Expand Up @@ -64,19 +64,19 @@ DAF query to get all states took 21.915029 seconds

```python
Filter state objects to one that contains polygon took 0.382097 seconds
[<ufpy.dataaccess.PyGeometryData.PyGeometryData object at 0x2bebdd0>]
[<awips.dataaccess.PyGeometryData.PyGeometryData object at 0x2bebdd0>]
Polygon is in the state of Oklahoma
```

```python
Filter state objects to one that contains point took 0.2028 seconds
[<ufpy.dataaccess.PyGeometryData.PyGeometryData object at 0x2beb9d0>]
[<awips.dataaccess.PyGeometryData.PyGeometryData object at 0x2beb9d0>]
Point is in the state of Iowa
```

```python
Filter state objects to the ones that intersect polygon took 0.4032 seconds
[<ufpy.dataaccess.PyGeometryData.PyGeometryData object at 0x2beb610>, <ufpy.dataaccess.PyGeometryData.PyGeometryData object at 0x2bebdd0>]
[<awips.dataaccess.PyGeometryData.PyGeometryData object at 0x2beb610>, <awips.dataaccess.PyGeometryData.PyGeometryData object at 0x2bebdd0>]
Polygon intersects the state of Texas
Polygon intersects the state of Oklahoma
```
2 changes: 1 addition & 1 deletion examples/GetBufrUA.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/awips2/python/bin/python
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer


# set everything up
Expand Down
4 changes: 2 additions & 2 deletions examples/GetGFEData.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```python
#!python
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer
import numpy as np

request = DataAccessLayer.newDataRequest()
Expand Down Expand Up @@ -70,7 +70,7 @@ May 12 15 12:00:00 GMT (May 12 15 12:00:00 , May 12 15 13:00:00 )
```

```python
[<ufpy.dataaccess.PyGridData.PyGridData object at 0x26f9690>]
[<awips.dataaccess.PyGridData.PyGridData object at 0x26f9690>]
```

```python
Expand Down
2 changes: 1 addition & 1 deletion examples/GetGridNames.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```python
#!python
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer

#Initiate a new DataRequest
request = DataAccessLayer.newDataRequest()
Expand Down
2 changes: 1 addition & 1 deletion examples/GetGridTimes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```python
#!python
import numpy as np
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer

#Initiate a new DataRequest
request = DataAccessLayer.newDataRequest()
Expand Down
4 changes: 2 additions & 2 deletions examples/GetObs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```python
#!python
from ufpy.dataaccess import DataAccessLayer
from awips.dataaccess import DataAccessLayer

request = DataAccessLayer.newDataRequest()
request.setDatatype("obs")
Expand Down Expand Up @@ -33,7 +33,7 @@ print "Dewpoint is",ob.getString("dewpoint")
```

```python
[<ufpy.dataaccess.PyGeometryData.PyGeometryData object at 0x19718d0>]
[<awips.dataaccess.PyGeometryData.PyGeometryData object at 0x19718d0>]
```

```python
Expand Down
Loading

0 comments on commit ffcb14f

Please sign in to comment.