combining foss4g & open hardware for research & monitoring in southern asia

32
FOSS4G - OSHW Yann Chemin Introduction PyWPS+MWS Rationale MWS MWS parts MWS Setup GRASS GIS metaModule pyGRASS PyWPS Road condition Rationale Components System Small Tanks Monitoring Rationale Autoboat RaspberryPI Sensors FOSS4G Conclusions Combining FOSS4G & Open Hardware for Research & Monitoring in Southern Asia Yann Chemin International Water Management Institute University of Moratuwa, Faculty of Architecture

Upload: hirofumi-hayashi

Post on 13-May-2015

708 views

Category:

Technology


0 download

DESCRIPTION

FOSS4G2013 OSAKA 基調講演: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia Dr. Yann Chemin (OSGeo Charter Member, International Water Management Institute (IWMI)

TRANSCRIPT

Page 1: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Combining FOSS4G & Open Hardwarefor

Research & Monitoring in Southern Asia

Yann Chemin

International Water Management Institute

University of Moratuwa, Faculty of Architecture

November 5th, 2013

Page 2: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Contents

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 3: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

CGIAR

Consultative Group for International Agricultural ResearchRatified on October 2nd, 2013Full Open Access & Open SourceResearch data and publication

I International PublicGoods

I Public Domain

I Publications Open Access

I FOSS models andalgorithms

2018: all 15 CG centres, already FOSS4G Lab:(gsl.worldagroforestry.org)

Page 4: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Outline

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 5: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Overview

FOSS4G and Open HardwareDeveloped together in new avenues

I Evapotranspiration calibration & modeling

I Road condition monitoring

I Rural tanks evaporation modeling

Page 6: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Outline

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 7: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Rationale

Page 8: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Rationale

Page 9: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Rationale

Page 10: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Open Source Hardware Micro Weather Station v1Micro Weather Station v1:Temperature Profiler for ET models calibration

I Arduino Pro 3.3V

I Water-proof Digital Temperature Sensors

I Li-ion Battery + Solar Panel

I OpenLog data logger with SD card

I Cost < 100 USD

Page 11: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Open Source Hardware Micro Weather Station v1

OpenLog + Arduino Pro

Page 12: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

MWS Setup

Page 13: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

MWS Setup

Page 14: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

GRASS GIS framework

Page 15: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

metaModule Concept

Pythonizing GRASS:From Shell commands to Python functions

metaModule concept

1. GRASS GIS: Specific image processing modules

2. PyWPS: G modules called by Python

3. GRASS script: G mod. called by Python: metaModule

4. pyGRASS: G mod. called as Python fun.: metaModule

5. PyWPS v4: pyGRASS metaModule used directly(TODO)

Page 16: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

pyGRASS metaModule

Summary for Landsat pyGRASS metaModule

http://grasswiki.osgeo.org/wiki/Python/pygrass

Page 17: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Equity of water use in irrigation systems

Irrigation water monitoring & management

I Map: Uniform colour is equity of water distribution

I Graph: Irrigation system equity (mm/d, daily, 12 years)

Page 18: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

PyWPS

Developed by Jachym Cepicky (http://les-ejk.cz/)

I OGC WPS standard

I Server side

I Written in Python Language

I Version 4 in the making

I v4 Low-level API: integration withGRASS GIS

I v4 Possible pyGRASS support

Page 19: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

PyWPS system used in FESS study

PyWPS v2 style

Page 20: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Outline

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 21: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Road Condition Monitoring

University of Moratuwa, F. of Archit., Urban Planning

I Road condition: chronic issue in Sri Lanka

I RDA: few IMU Vehicles (V. Expensive)

I Challenge: OSHW+FOSS4G < 100 USD/vehicle

I Solution: GDAL/OGR + RaspberryPI

Page 22: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Road Condition Monitoring

System setup on a vehicle:

I RaspberryPI

I + XloBorg Accelerometer

I + GPS

I + Python-OGR

Page 23: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Road Condition Monitoring

Python-OGR reporting Z-axis anomalies into road Shapefilesby integrating Xloborg and GPS data

Page 24: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Outline

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 25: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Rationale

Water Resources Monitoring in Sri LankaTrans-basin water, Jaffna city pipeline, etc.

Characteristics

I Rural tanks (several thousands!)

I Cascade systems (interconnected)

I Water Storage capacity changes regularly

I Evaporative losses less known

Calibration of evaporative lossesand regular monitoring are much needed

Page 26: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Amitomi Autonomous Survey Boat

Amitomi is a 1m-class autonomous sailing boatDesigned to survey small tanks temperature gradientfor calibrating Evaporation models

https://sites.google.com/site/amitomiautoboat

RaspberryPI as AmiTomi Boat itself

Page 27: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

RaspberryPIAmiTomi’s brain is the RaspberyPI python code:

I Skipper: the captain/navigator softwareI Waypoint sorter: optimizer for routeI Sensor datalogger: simultaneous sensingI Mapper: import data and 3D interpolation

RaspberryPI GPIO connectingto temperature sensor

Temperature digital sensors(2m cables)

Page 28: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Evaporation Monitoring Experiment

Page 29: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

FOSS4G software

I Python-gps (GPS data)

I Python-i2ctools (Compass/Temperature data)

I Python-XloBorg (Compass data)

I Python-openopt (Waypoints downwind sortingopenopt.org)

I Python-MotorPiTX (servo control for sails & rudder)

I (py)GRASS (live processing of 3D GIS data)

I If online: PyWPS, SOS/network reporting.

Page 30: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Outline

Introduction

PyWPS+MWSRationaleMWSMWS partsMWS SetupGRASS GISmetaModulepyGRASSPyWPS

Road conditionRationaleComponentsSystem

Small Tanks MonitoringRationaleAutoboatRaspberryPISensorsFOSS4G

Conclusions

Page 31: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Conclusions

FOSS4G natural extension is Open Source Hardware

I RaspberryPI: Small PC (ARM v8, Linux)

I Arduino: Micro-controller

I OpenLog: Data Logger

I GDAL/OGR: Flexible sensor raw data manipulation

I GRASS GIS: Mobile FOSS4G powerhouse

I PyWPS: Online GRASS GIS processing

I Together: Flexible all-in-one sensor-to-map solutions

Page 32: Combining FOSS4G & Open Hardware for research & monitoring in Southern Asia

FOSS4G - OSHW

Yann Chemin

Introduction

PyWPS+MWS

Rationale

MWS

MWS parts

MWS Setup

GRASS GIS

metaModule

pyGRASS

PyWPS

Road condition

Rationale

Components

System

Small TanksMonitoring

Rationale

Autoboat

RaspberryPI

Sensors

FOSS4G

Conclusions

Thank You