Skip to content

Reads Earth Networks JSON response, and builds a polygon shapefile of stormcell/warning area from coordinates.

Notifications You must be signed in to change notification settings

PIN-Cambodia/EN-Lightning-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LightningDetection.py

VERSION

1.0 - April 02, 2018

AUTHOR

Blake Gardiner for People in Need - [email protected]

PARAMETERS

DEPENDENCIES

ABOUT

This script assesses the JSON/XML response from Earth Networks weather output. By overlaying the 'Warning' polygon (if any) with Cambodian commune boundaries, we can identify at-risk communes within a stormfront area.

Uses GeoPandas open source library to avoid ESRI stack reliance.

LIMITATIONS

  • Ensure both datasets are the same cooridnate reference system, as geopandas does not support on the fly projection.
  • The JSON response contains XML formatted data which is unusual.

KNOWN ISSUES

  • No subscription key currently, just reads storm data from the supplied json file. Module 'getResponse' is sourced from Earth Networks documentation but has not been tested.
  • Some of the test JSON files have data not in the Cambodia area, therefore no overlap will exist. Use QGIS to visualize the outputs.

About

Reads Earth Networks JSON response, and builds a polygon shapefile of stormcell/warning area from coordinates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages