Data analysis platform for CogniCity
$ cd pier
$ npm install
$ npm link
- Node >= v4.4.5
- NPM >= 3.10.5
- Local copy of cognicity-rem Postgres database
$ pier get-floodstate 2016-03-09
Get historical extents of flooding from the Risk Evaluation Matrix database as geojson.
- Day must be specified as a ISO 8601 date [YYYY-MM-DD]
- -e --explode Explode time series into multiple attributes
- -s --suppress Suppress areas where floods have receded (recommended)
- geojson feature collection representing polygons of all districts which experienced flooding on the specified day
- data is written to stdout
- Flood state is downsampled to hourly interval
- Polygon attribute flood_state lists flood heights for each hour over the 24 hour period
- Data specification: https://petajakarta.org/banjir/en/data/v2/#flooded