Dear all,
I have 3 sets of data - the first is 565,000 gridpoint observations of rainfall, with latitude and longitude and date, the second dataset is 700k gridpoint observations of temperature, latitude and longitude and also date . My third dataset has data on centroids of districts within states, 76 districts within 5 states.
I wish to use the geodist function to find the distance between each gridpoint (565,000 / 700,000 ) and each district (76).
My purpose of doing this is so that I can find out which gridpoint is within 100km of the district centroid, and then finally merge/collapse into a coherent panel dataset where i can calculate weighted average daily rainfall
Each dataset looks like this
Latitude Longitude Rainfall year month day edate
Latitude Longitude Temperature year month day edate
Statename Districtname District ID centroidlatitude centroidlongitude
Would appreciate ideas on how this can be done efficiently, and how to go about it (a mix of collapse, merge and geodist)
Thanks.
Related Posts with Geodist datasets into a panel
Reshape Best to Worst datasetDear all, I turn to you for a second request for help linked to the question at the link: https://ww…
Export first stage results using esttab with ivprobit and birprobitIs there a way to export first-stage results from -ivprobit- and -biprobit- using -esttab-? I know o…
Wald exogeneity test with -biprobit-Dear Statalisters Is there an in-built command/option with -biprobit- which shows the result for Wal…
Meta forestplot and Meta summarizeDear Stata Users, I am working in a meta analysis of prior 20 studies. In several studies I have co…
spmatrix -same coordinatesDear all, I tried to create an inverse spatial weight matrix, but without success. I rely on a cros…
Subscribe to:
Post Comments (Atom)
0 Response to Geodist datasets into a panel
Post a Comment