Dear Statalist,
I am working on my research project that involves relating climate and Subnational level Population Weighted Density (PWD) data for the year 2000. I have obtained the following files
(1) Weather files:
http://climate.geog.udel.edu/~climat...oad.html#P2017
From here I get, precip_2017.tar.gz (284MB) --> precip_2017 --> precip.2000
(2) Subnational level Population Weighted Density (PWD) files:
https://hub.worldpop.org/geodata/summary?id=50576
From here I get, PWD_1km_sub_national_SHP.zip (2.20 MB) --> PWD_1km_sub_national_SHP --> PWD_2000_sub_national_1km.shp
(3) As the PWD files are produced using GADM (version 3.6) level 1 administrative unit boundaries, these files have been obtained from:
https://data.biogeo.ucdavis.edu/data...levels_shp.zip
From here I get, gadm36_levels_shp.zip --> gadm36_levels_shp --> gadm36_0.shp (shapefile of country boundaries), gadm36_1.shp (shapefile using in PWD)
To relate the ID of the points of PWD_2000_sub_national_1km.shp with the spatial data of precip.2000, I have done the following
When executing the Code, it tells me "a polygon must start with missing coordinates" How can I make the ID of PWD appear in precip.2000?
I'm hoping someone who has experience working with this kind of data and might have a solution.
Thank you!
Pedro
I am working on my research project that involves relating climate and Subnational level Population Weighted Density (PWD) data for the year 2000. I have obtained the following files
(1) Weather files:
http://climate.geog.udel.edu/~climat...oad.html#P2017
From here I get, precip_2017.tar.gz (284MB) --> precip_2017 --> precip.2000
(2) Subnational level Population Weighted Density (PWD) files:
https://hub.worldpop.org/geodata/summary?id=50576
From here I get, PWD_1km_sub_national_SHP.zip (2.20 MB) --> PWD_1km_sub_national_SHP --> PWD_2000_sub_national_1km.shp
(3) As the PWD files are produced using GADM (version 3.6) level 1 administrative unit boundaries, these files have been obtained from:
https://data.biogeo.ucdavis.edu/data...levels_shp.zip
From here I get, gadm36_levels_shp.zip --> gadm36_levels_shp --> gadm36_0.shp (shapefile of country boundaries), gadm36_1.shp (shapefile using in PWD)
To relate the ID of the points of PWD_2000_sub_national_1km.shp with the spatial data of precip.2000, I have done the following
Code:
** The shapefile for the points * To install: ssc install shp2dta shp2dta using "PWD_1km_sub_national_SHP/PWD_2000_sub_national_1km.shp", /// data("PWD_2000_points_data.dta") coor("PWD_2000_points_coor.dta") replace ** Import weather data one time period infile lon lat p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p2000 /// using "precip_2017/precip.2000", clear ** Reduce to grid coordinates and data keep lat lon p2000 order lat lon p2000 isid lat lon, sort ** Match grid coordinates to points of countries * To install: ssc install geoinpoly geoinpoly lat lon using "PWD_2000_points_coor.dta"
I'm hoping someone who has experience working with this kind of data and might have a solution.
Thank you!
Pedro
Comment