Skip to content

Latest commit

 

History

History
127 lines (89 loc) · 3.8 KB

README.md

File metadata and controls

127 lines (89 loc) · 3.8 KB

Python-SOS-Client

Python Sensor Observation Service (SOS) Cilent

Version

Alpha 2.0.0

Depends on

Only tested in Ubuntu 14.04 with python 2.7

  • xmltodict
  • requests
  • dateutil.parser
  • colorama
  • pandas

Other References

  • OGC Open Geospatial Consortium
  • OGC SOS Specifications
  • Python based SOS ISTSOS
  • National Data Buoy Center SOS NDBC
  • Get Capability request for ISTSOS-Demo SOS
  • Get Capability request for NDBC-SOS SOS

Contains

  1. Folder: src
    • sosParseCap.py (SOS GetCapability parser)
    • sosReq.py (SOS Get Observation requests and response parser example)
    • sosTsPandas.py (SOS time series analysis using Pandas )
    • sosParseDSensor.py (SOS Describe sensor parser)
    • sosParseGetObs.py (SOS Get Observation parser)
    • sosTelegramBot.py (SOS integration with Telegram Bot, example1: English)
    • sosTelegramBotMarathi.py (SOS integration with Telegram Bot, example2: English and Marathi)
    • overallFlow.py (overall flow of all processes)
    • fao_eto.py (core function to estiamte reference Evapotranspiration (ETo))
    • sosETCalc.py (SOS based function to estimate ETo)
    • sosTelegramBotIWC.py (SOS based use case for IWC project)

Advantages

1. Python based SOS client to support Telegram Bot/s.

Limitations

1. Some sections are hardcoaded in SOS response parsers.

Installation

A. Download

  • Clone from GitHub
$ git clone https://github.com/suryakant54321/Python-SOS-Client 
  • Install dependencies
$ cd Python-SOS-Client
$ pip install -r requirements.txt 

B. Usage of Python-SOS-Client

Add to environment path
or
Just import the required workflow
$ python
>>> import sosParseCap as spc
>>> help(spc)
>>> import sosReq as sr
>>> help(sr) 
>>> import sosTsPandas stp
>>> help(stp)

C. Other SOS Clients

  • Refer PHP-istSOS-client PHP based client for IST Sensor Observation Service (SOS)
  • Refer sos4R sos4R is an extension for the R environment for statistical computing and visualization. Designed by 52°North.
  • Refer sos-js a JavaScript library to browse, visualise, and access, data from an Open Geospatial Consortium (OGC) Sensor Observation Service (SOS). Designed by 52°North.

Snapshots

Snapshot 1

Snapshot 2

Snapshot 3

TODO

  1. Add irrigation scheduling component.
  2. Write detailed documentation using Sphinix.