thomaspeugeot / tkv

10 000
MIT License
0 stars 0 forks source link

Input landscan data for population density #9

Closed thomaspeugeot closed 5 years ago

thomaspeugeot commented 6 years ago

As is : population density data is from CIESIN. Free but inacurate in some places.

To be : use landscan. Format is ESRI

thomaspeugeot commented 6 years ago

https://github.com/jonas-p/go-shp

thomaspeugeot commented 6 years ago

image

thomaspeugeot commented 6 years ago

image

thomaspeugeot commented 6 years ago

https://landscan.ornl.gov/sample-data

cyprus is available as a sample ownload the sample data file sample_LS2016_cyprus.zip” (52KB) Open ESRI ArcMap Click the “add data” button Select the “cyprus_2016.lyr” layer file

thomaspeugeot commented 5 years ago

gdal_translate -sds -a_nodata 0 -ot Int32 -of AAIGrid /Users/thomaspeugeot/tmp/Haiti-2014/Population/lspop2014/ "/Users/thomaspeugeot/tmp/hti.asc"

special thks to Guilhem Vellut

thomaspeugeot commented 5 years ago

problem : the as-is grump-reader only takes density data organized according to CIESIN. That is a directory hti_grumpv1_pcount_00_ascii_30 with inside a file htiup00ag.asc. also, the no value is different "-2147483647" instead of 0

go run grump-reader.go -country=hti -tkvdata=/Users/thomaspeugeot/tmp

pop total -110855243345056 ????

thomaspeugeot commented 5 years ago

It worked for haiti

thomaspeugeot commented 5 years ago

With the runtime server, locations seems one degree west screenshot 2018-12-08 at 09 38 47

thomaspeugeot commented 5 years ago

With the runtime server, locations seems one degree west by looking into the original file, one sees xllcorner -74.483333333334 yllcorner 18.025000000000 wetther the conf.hit.coord is

"XllCorner": -74,
"YllCorner": 18