Name: bhimeshwor-casualty-map
Owner: Kathmandu Living Labs
Description: null
Created: 2015-06-01 02:08:49.0
Updated: 2015-06-01 02:18:50.0
Pushed: 2015-06-22 19:27:52.0
Homepage: null
Size: 10380
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This map show Casualties in Dolakha district from the April 25th earthquake in Nepal. Casualty data can be found here.
This app frame is built using the Foundation responsive framework and jeykll pages.
Download and install Jekyll
Download and install Topojson, which requires Node.js.
npm install -g topojson
GIT access to KTMLivingLabs
git clone https://github.com/energyapps/app-frame-foundation.git
See if data has been updated here.
Make a copy the most recently created data in /Nepal/quake_casualties and update the name. Naming should be nepal_quake_YY_MM_DD_HH
using military time in NST.
The first page autocopied
contains the data automatically ported over from the gov't website.
names
and population 2011
are static and used for calculating names/totals in casualty and population
. Leave these two alone.
Check casualty and population
sums (at bottom) and ensure that they are calculating the correct totals
Export casualty and population
as a csv named same as above: nepal_quake_YY_MM_DD_HH
. Place in the /data/
Run topojson in your /data/ folder using the following script, inputting your csv name as shown:
topojson -o districts_topo.json –id-property 'vcode, vcode' –external-properties=data.csv –properties='district=vdc_name' –properties='dead=dead' –properties='injured=injured' –properties='GovComplete=GovComplete' –properties='GovPartial=GovPartial' –properties='OthComplete=OthComplete' –properties='OthPartial=OthPartial' –properties='population=population' –properties='deadpercent=deadpercent' –properties='injuredpercent=injuredpercent' – vdcs.geojson;
Update date in index.html, iframe.html (2 places on each page)
Update casualty totals in index.html, iframe.html
Check to make sure that the correct numbers are showing on the map, and there are no errors, on localhost:4000. (i.e. make sure that jekyll has rebuilt the _site/ directory.)
push to gh-pages on github using this commit message “data update Month D, YYYY HHMM NST”
Needs updating. You should mainly be interested in adding data to the /data/ folder and editing the DOM info on index.html and iframe.html