Repository URL to install this package:
|
Version:
0.5.2 ▾
|
po-minijson-connect
/
METADATA
|
|---|
Metadata-Version: 2.1
Name: po-minijson-connect
Version: 0.5.2
Summary: Connector for positions of PO devices which are emitted via publicly accessible minimal json
Home-page: UNKNOWN
Author: Claas Faber, GEOMAR data management
License: NOT FOR PUBLIC USE
Requires-Dist: pandas
Requires-Dist: requests
do not distribute w/o prior consent of author(s)
Description: # po_minijson_connect
Connector for positions of devices mannaged by the physical oceanography
division at GEOMAR. The positions are distributed via publicly accessible URLS
in a minmal JSON Format.
# Connected devices
As of 2019-07-12:
```
data_urls = {
'OG_IFM12': 'https://data.geomar.de/realtime/data/project/ifm12/ifm12_pos.json',
'BGC_Drifter': 'https://data.geomar.de/realtime/data/project/300434063440710/300434063440710_pos.json',
'SVP_001': 'https://data.geomar.de/realtime/data/project/300234068733460/300234068733460_pos.json'
}
```
**Data contact**:
Christian Begler <cbegler@geomar.de>
# Installation
## Release version
```bash
pip install --index-url https://pypi.fury.io/cfgmr/ po-minijson-connect
```
## From source
```bash
git clone git@git.geomar.de:moses/moses_tools/po_minijson_connect.git
cd po_minijson_connect
pip install -e .
```
# Configuration
Data is publicly accessible, no config needed.
# Usage
````python
(venv) [datamanagement@dm-ingest-www bin]$ ipython
Python 3.6.8 (default, Apr 25 2019, 21:02:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import po_minijson_connect
In [2]: po_minijson_connect.get_po_minijson_data()
Out[2]:
lat lon obs_timestamp platform_shortname
0 -12.22700 -78.30800 2017-04-30 23:03:57 OG_IFM12
1 17.99988 -24.33382 2019-07-04 12:00:00 BGC_Drifter
2 21.13000 -20.94540 2019-07-10 14:00:00 SVP_001
``
Platform: UNKNOWN
Requires-Python: >= 3.6